Get a query
Returns a query’s current status and per-app results. Any API key on your account can read any of your queries, and each call returns freshly signed recording URLs. See Result object for the full result schema.
Requires an API key in the Authorization header. Try it below
Path parameters
query_idstringrequiredquery_id returned when the query was submitted.
Example request
curl "https://geo-api.geoeval.com/v1/queries/$QUERY_ID" \ -H "Authorization: Bearer $GEOEVAL_API_KEY"const queryId = process.env.QUERY_ID;
const response = await fetch(`https://geo-api.geoeval.com/v1/queries/${queryId}`, { headers: { Authorization: `Bearer ${process.env.GEOEVAL_API_KEY}`, },});const data = (await response.json()) as Record<string, unknown>;if (!response.ok) throw new Error(`${data.code}: ${data.message}`);console.log(data);import os
import requests
query_id = os.environ["QUERY_ID"]response = requests.get( f"https://geo-api.geoeval.com/v1/queries/{query_id}", headers={ "Authorization": f"Bearer {os.environ['GEOEVAL_API_KEY']}", }, timeout=30,)response.raise_for_status()print(response.json())Response 200
query_idstringQuery ID used to fetch status and results.
querystringSubmitted question with leading and trailing whitespace trimmed.
appsstring[]Deduplicated list of target apps.
statusstringStarts as pending, then transitions permanently to completed (all tasks reached done, failed, or unavailable), timeout (deadline passed first), or failed (could not be queued; see error).
errorstring | nullFailure reason when status is failed.
created_atinteger (ms)When the query was accepted.
updated_atinteger (ms)Last update timestamp.
deadline_atinteger (ms) | nullCutoff timestamp when unfinished tasks time out, roughly 6 hours after submission. null until queued.
finished_atinteger (ms) | nullWhen the query left pending.
credits_heldnumberCredits reserved while the query is pending. Resets to 0 once finalized.
credits_chargednumber | nullTotal credits billed. null while pending; only done tasks are charged.
callbackobjectCallback delivery status.
Fields of callback
urlstring | nullcallback_url provided on submission.
statusstringnone (no callback_url provided), pending, sent, or failed (delivery abandoned).
attemptsintegerNumber of delivery attempts made.
sent_atinteger (ms) | nullWhen the callback was delivered.
errorstring | nullFailure reason from the latest attempt.
tasksobject[]One task per target app. May be empty immediately after submission while the query is being queued.
Fields of tasks
task_idstringTask ID.
appstringTarget app for this task.
statusstringLifecycle states: queued, running, uploaded, parsing, ending in done, failed, or unavailable.
errorstring | nullHuman-readable reason when status is failed or unavailable. Free-form text; do not parse or match on it.
resultobject | nullAnswer payload. null until status is done.
Fields of result
schema_versionintegerResult schema version. Currently 4.
task_idstringMatches tasks[].task_id.
query_idstringMatches the parent query_id.
appstringAnswering app.
querystringQuestion sent to the app.
answer_markdownstringFull answer in Markdown. Never empty.
reasoningstring | nullReasoning text shown before the answer, or null if not shown or unavailable.
citationsobject[] | nullSources cited by the app, in display order. [] means none were cited; null means unavailable.
Fields of citations
positioninteger1-based index in the app's source list, unique per result.
urlstringAbsolute http(s) URL of the source, returned verbatim.
titlestring | nullPage title displayed by the app.
site_namestring | nullPublisher name displayed by the app, or null if not shown.
domainstringLowercase source hostname without port. Retains subdomains, including www.
snippetstring | nullPage snippet displayed by the app.
cited_in_answerboolean | nulltrue if referenced inline in the answer; false if listed only in sources; null if indistinguishable for this app.
productsobject[] | nullProduct cards shown with the answer, in display order. Uses the same [] and null semantics as citations.
Fields of products
product_idstring | nullProduct ID assigned by the shopping platform.
namestringProduct name shown on the card.
brandstring | nullBrand name.
urlstring | nullDestination link of the card. May be an app deep link rather than an http(s) URL.
image_urlstring | nullProduct image URL.
storestring | nullStore selling the product.
price_textstring | nullRaw price text shown on the card. Returned as a string because values may be masked or ranges.
ratingnumber | nullRating shown on the card.
review_countinteger | nullReview count shown on the card.
descriptionstring | nullAdditional card text, such as the full listing title.
suggested_followupsstring[] | nullFollow-up questions suggested by the app. Uses the same [] and null semantics as citations.
capture_channelstringResult channel: share (all fields) or copy (answer text only; reasoning, citations, products, and suggested_followups are null). network and a11y are reserved.
started_atinteger (ms) | nullWhen the app started processing the task.
finished_atinteger (ms) | nullWhen the app finished responding.
videoobject | nullScreen recording, available only for done tasks and retained for 30 days.
Fields of video
urlstringSigned download URL for the MP4 screen recording. Expires at expires_at; fetch the query again for a fresh URL.
poster_urlstring | null540 px wide JPEG of the recording's first frame.
expires_atinteger (ms)Expiration timestamp for both URLs, roughly 1 hour after the read.
size_bytesinteger | nullVideo file size in bytes.
created_atinteger (ms)Task creation timestamp.
updated_atinteger (ms)Last update timestamp.
started_atinteger (ms) | nullWhen execution started.
finished_atinteger (ms) | nullWhen execution finished.
parsed_atinteger (ms) | nullWhen result parsing completed.
Example response
{ "query_id": "01a22524-9c1e-7a3b-8f21-6b0d4c9e1a27", "query": "Which robot vacuum is the best choice in 2026?", "apps": [ "doubao" ], "status": "completed", "error": null, "created_at": 1798000000000, "updated_at": 1798000095000, "deadline_at": 1798021600000, "finished_at": 1798000095000, "credits_held": 0, "credits_charged": 3, "callback": { "url": null, "status": "none", "attempts": 0, "sent_at": null, "error": null }, "tasks": [ { "task_id": "01a22524-9c41-7c55-9d02-1f7a3b8e5c90", "app": "doubao", "status": "done", "error": null, "result": { "schema_version": 4, "task_id": "01a22524-9c41-7c55-9d02-1f7a3b8e5c90", "query_id": "01a22524-9c1e-7a3b-8f21-6b0d4c9e1a27", "app": "doubao", "query": "Which robot vacuum is the best choice in 2026?", "answer_markdown": "## Short answer\n\nFor most homes ...", "reasoning": null, "citations": [ { "position": 1, "url": "https://www.example.com/robot-vacuum-review", "title": "Robot vacuum review", "site_name": "Example Reviews", "domain": "www.example.com", "snippet": "We tested 12 models ...", "cited_in_answer": null } ], "products": [], "suggested_followups": [ "Which one is best for pet hair?" ], "capture_channel": "share", "started_at": 1798000021000, "finished_at": 1798000063000 }, "video": { "url": "https://geoeval.example/tasks/.../video.mp4?Expires=...", "poster_url": "https://geoeval.example/tasks/.../video.mp4?x-oss-process=...", "expires_at": 1798003695000, "size_bytes": 1843200 }, "created_at": 1798000000000, "updated_at": 1798000095000, "started_at": 1798000021000, "finished_at": 1798000063000, "parsed_at": 1798000094000 } ]}Errors
| Status | code | Description |
|---|---|---|
| 404 | query_not_found | Query not found under your account. |
| 429 | rate_limited | Read rate limit exceeded for this key (300 per minute). |
| 503 | upstream_unavailable | Result temporarily unavailable. Retry shortly. |
All endpoints may also return 400, 401, 403, or 500. See Errors.