Skip to main content
GET
/
v1
/
tasks
/
runs
/
{run_id}
/
result
from parallel import Parallel

client = Parallel(api_key="API Key")

# If task run has beta output fields
task_run_result = client.beta.task_run.result(
run_id="run_id",
betas=["mcp-server-2025-07-17"]
)
print(task_run_result.output)
{
  "run": {
    "run_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
    "status": "completed",
    "is_active": false,
    "processor": "core",
    "metadata": {
      "my_key": "my_value"
    },
    "created_at": "2025-04-23T20:21:48.037943Z",
    "modified_at": "2025-04-23T20:21:48.037943Z"
  },
  "output": {
    "basis": [],
    "type": "json",
    "content": {
      "gdp": "$3.1 trillion (2023)"
    }
  }
}

Authorizations

x-api-key
string
header
required

Headers

parallel-beta
string | null

Path Parameters

run_id
string
required

Query Parameters

timeout
integer
default:600

Response

Successful Response

  • TaskRunResult
  • BetaTaskRunResult

Result of a task run.

run
object
required

Task run object with status 'completed'. Status of a task run.

output
object
required

Output from the task conforming to the output schema. Output from a task that returns text.

  • TaskRunTextOutput
  • TaskRunJsonOutput
I