Submit a query
Submits a question to one or more AI apps asynchronously. The endpoint returns 202 with a query_id as soon as the query is queued. Poll for results or provide a callback_url to be notified on completion.
Credits for every requested app are held upfront, and only tasks that finish as done are charged; see Credits and limits.
Requires an API key in the Authorization header. Try it below
Headers
Idempotency-KeystringoptionalUnique per user, up to 200 bytes. Retrying with the same key returns the original query (even if the body differs) without billing again. Recommended on every request.
Request body
querystringrequiredQuestion to send to the apps, up to 10,000 characters.
appsstring[]optionalTarget apps: doubao, deepseek, yuanbao, kimi, wenxin, glm, qianwen. Each app runs as a separate task and is billed individually. Omit or pass [] to query all apps.
callback_urlstringoptionalPublic https URL (up to 2048 bytes) that receives a single POST once the query is finalized.
Example request
# uuidgen prints a new UUID. Send the same value when you retry a submission, so it is charged onceIDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "https://geo-api.geoeval.com/v1/queries" \ -H "Authorization: Bearer $GEOEVAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ -d '{ "query": "Which robot vacuum is the best choice in 2026?", "apps": [ "doubao", "kimi" ]}'const response = await fetch(`https://geo-api.geoeval.com/v1/queries`, { method: "POST", headers: { Authorization: `Bearer ${process.env.GEOEVAL_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ "query": "Which robot vacuum is the best choice in 2026?", "apps": [ "doubao", "kimi" ] }),});const data = (await response.json()) as Record<string, unknown>;if (!response.ok) throw new Error(`${data.code}: ${data.message}`);console.log(data);import osimport uuid
import requests
response = requests.post( "https://geo-api.geoeval.com/v1/queries", headers={ "Authorization": f"Bearer {os.environ['GEOEVAL_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "query": "Which robot vacuum is the best choice in 2026?", "apps": [ "doubao", "kimi" ] }, timeout=30,)response.raise_for_status()print(response.json())Response 202
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", "kimi" ], "status": "pending", "error": null, "created_at": 1798000000000, "updated_at": 1798000000000, "deadline_at": 1798021600000, "finished_at": null, "credits_held": 6, "credits_charged": null, "callback": { "url": null, "status": "none", "attempts": 0, "sent_at": null, "error": null }, "tasks": [ { "task_id": "01a22524-9c41-7c55-9d02-1f7a3b8e5c90", "app": "doubao", "status": "queued", "error": null, "result": null, "video": null, "created_at": 1798000000000, "updated_at": 1798000000000, "started_at": null, "finished_at": null, "parsed_at": null } ]}Errors
| Status | code | Description |
|---|---|---|
| 402 | insufficient_credits | Available credits are below apps count x task price. No query is created. |
| 429 | rate_limited | Per-minute submission limit exceeded. Wait Retry-After seconds before retrying. |
| 429 | too_many_inflight | Concurrent unfinished task limit reached. Wait for pending queries to finish. |
| 429 | quota_exceeded | UTC daily task limit reached. Check Retry-After for when it resets. |
All endpoints may also return 400, 401, 403, or 500. See Errors.