Claude LLM Responses: Task Get
Beta/v1/ai/claude/llm_responses/task_get/{id}Claude LLM Responses: modes
Beta. The parser for this endpoint was written from the upstream format and has not yet been checked against a live response. Field shapes may change; tell us if you see a mismatch.
On this page
Price
Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to.
Description
Pass the task id from task_post or tasks_ready. Returns 40602 while the task is queued (including while its batch is processing) and 40601 while it runs. A format segment is accepted and ignored: task_get/regular/{id} and task_get/advanced/{id} return the same result. Free: the task was billed when it returned an answer.
Request
- Endpoint
- GET https://api.dataforgaio.com/v1/ai/claude/llm_responses/task_get/{id}
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- No request bodyMode: Task Get
Fields
- The task id returned by task_post.Example
7f8d2c1e-4b5a-4c3d-9e8f-0a1b2c3d4e5f
Response
Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.
- versionstringResponse format version, for example
0.1.20261203.Example0.1.20261203 - status_codeintegerStatus of the request as a whole. 20000 when it was accepted; each task has its own
status_code.Example20000 - status_messagestringPlain-language request status.Example
Ok. - timestringTime the whole request took, for example
1.8410 sec.Example0.4210 sec. - costnumberSum of every task's
cost, in USD.Example0.02008 - tasks_countintegerNumber of tasks in
tasks.Example1 - tasks_errorintegerTasks whose
status_codeis 40000 or higher.Example0 - tasksarray<object>One entry per task you sent, in the order you sent them.
Show 38 child fieldsHide child fields
- idstringTask id (a UUID). For task_post, use it with task_get.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - status_codeintegerOutcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.Example
20000 - status_messagestringPlain-language status. For 40501 it names the field that failed.Example
Ok. - timestringTime this task took on our side, for example
1.8203 sec.Example0.4210 sec. - costnumberWhat this task was charged, in USD. 0 when it returned no data.Example
0.02008 - result_countintegerNumber of entries in
result.Example1 - patharray<string>The route this task ran on, split into segments, starting with
v1.Example["v1","ai","claude"] - dataobjectThe task you sent, echoed back. Utility routes echo their query parameters.Example
{"user_prompt":"Which running shoe brands are best for wide feet?","model_name":"claude-sonnet-4-6","web_search":true,"web_search_country_iso_code":"US"} - resultarray<object>|nullOne answer.
Show 24 child fieldsHide child fields
- model_namestringThe model that answered.Example
claude-sonnet-4-6 - input_tokensintegerPrompt tokens the model read, including search results it was given.Example
1240 - output_tokensintegerTokens in the answer.Example
412 - reasoning_tokensintegerReasoning tokens, for reasoning models; 0 otherwise.Example
0 - web_searchbooleanWhether the model was allowed to search the web.Example
true - money_spentnumberToken and search cost at the model's list price, in USD. The task's
costis this plus our base fee.Example0.0199 - datetimestringWhen the answer was produced,
YYYY-MM-DD HH:MM:SS +00:00.Example2026-12-03 10:42:18 +00:00 - itemsarray<object>The answer. One
messageitem.Show 10 child fieldsHide child fields
- typestringAlways
message.Examplemessage - sectionsarray<object>Parts of the message. One
textsection.Show 8 child fieldsHide child fields
- typestringAlways
text.Exampletext - textstringThe answer text, as the model wrote it (often Markdown).Example
For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are l... - annotationsarray<object>|nullSources the answer cited. Null when web search was off.
Show 5 child fieldsHide child fields
- titlestring|nullTitle of the cited page.Example
Best running shoes for wide feet - urlstring|nullURL of the cited page.Example
https://www.example-reviews.com/gear/wide-running-shoes - start_indexinteger|nullStart of the cited span in
text, when the model reports it.Example0 - end_indexinteger|nullEnd of the cited span in
text.Example98 - textstring|nullThe cited passage, when the model reports it.Example
brands that make most models in a wide (2E) fit
- fan_out_queriesarray<string>|nullSearch queries the model ran. Null when web search was off.Example
["best running shoes for wide feet"] - search_resultsarray<object>|nullPages the searches returned, cited or not. Null when web search was off.
Show 4 child fieldsHide child fields
- titlestring|nullPage title.Example
Best running shoes for wide feet - urlstring|nullPage URL.Example
https://www.example-reviews.com/gear/wide-running-shoes - datestring|nullPublication date, when reported.Example
2026-11-20 - snippetstring|nullSnippet, when reported.Example
We measured toe-box width on 40 shoes.
- receipt_idstring|nullId of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.Example
744695e7-dd8a-5016-bb2b-2d314ea9ef81 - fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotected - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
false - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade. - cache_hitbooleanTrue when the data came from the shared result cache instead of a new fetch.Example
false
Errors
| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with Retry-After). |
| 40401 | No task with this id in your organization. |
| 40602 | The task is still queued. |
| 40601 | The task is running. |
Migrating
Replaces DataForSEO /v3/ai_optimization/claude/llm_responses/task_get. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.
Related endpoints
- POSTClaude LLM Responses: LiveOne answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used.
- POSTClaude LLM Responses: Task PostQueue prompts for a Claude model at the lower queued base fee, then collect the answers.
- GETClaude LLM Responses: Tasks ReadyList finished answers you haven't collected yet.
- GETClaude LLM Responses: Tasks FixedSame list as tasks_ready, kept for clients that call tasks_fixed.
- GETClaude LLM Responses: ModelsThe Claude model ids you can send as `model_name`.