Skip to content

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.

POSThttps://geo-api.geoeval.com/v1/queries

Requires an API key in the Authorization header. Try it below

Headers

  • Idempotency-Keystringoptional

    Unique 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

  • querystringrequired

    Question to send to the apps, up to 10,000 characters.

  • appsstring[]optional

    Target 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_urlstringoptional

    Public 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 once
IDEMPOTENCY_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"
]
}'

Response 202

  • query_idstring

    Query ID used to fetch status and results.

  • querystring

    Submitted question with leading and trailing whitespace trimmed.

  • appsstring[]

    Deduplicated list of target apps.

  • statusstring

    Starts 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 | null

    Failure reason when status is failed.

  • created_atinteger (ms)

    When the query was accepted.

  • updated_atinteger (ms)

    Last update timestamp.

  • deadline_atinteger (ms) | null

    Cutoff timestamp when unfinished tasks time out, roughly 6 hours after submission. null until queued.

  • finished_atinteger (ms) | null

    When the query left pending.

  • credits_heldnumber

    Credits reserved while the query is pending. Resets to 0 once finalized.

  • credits_chargednumber | null

    Total credits billed. null while pending; only done tasks are charged.

  • callbackobject

    Callback delivery status.

    Fields of callback
    • urlstring | null

      callback_url provided on submission.

    • statusstring

      none (no callback_url provided), pending, sent, or failed (delivery abandoned).

    • attemptsinteger

      Number of delivery attempts made.

    • sent_atinteger (ms) | null

      When the callback was delivered.

    • errorstring | null

      Failure 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_idstring

      Task ID.

    • appstring

      Target app for this task.

    • statusstring

      Lifecycle states: queued, running, uploaded, parsing, ending in done, failed, or unavailable.

    • errorstring | null

      Human-readable reason when status is failed or unavailable. Free-form text; do not parse or match on it.

    • resultobject | null

      Answer payload. null until status is done.

      Fields of result
      • schema_versioninteger

        Result schema version. Currently 4.

      • task_idstring

        Matches tasks[].task_id.

      • query_idstring

        Matches the parent query_id.

      • appstring

        Answering app.

      • querystring

        Question sent to the app.

      • answer_markdownstring

        Full answer in Markdown. Never empty.

      • reasoningstring | null

        Reasoning text shown before the answer, or null if not shown or unavailable.

      • citationsobject[] | null

        Sources cited by the app, in display order. [] means none were cited; null means unavailable.

        Fields of citations
        • positioninteger

          1-based index in the app's source list, unique per result.

        • urlstring

          Absolute http(s) URL of the source, returned verbatim.

        • titlestring | null

          Page title displayed by the app.

        • site_namestring | null

          Publisher name displayed by the app, or null if not shown.

        • domainstring

          Lowercase source hostname without port. Retains subdomains, including www.

        • snippetstring | null

          Page snippet displayed by the app.

        • cited_in_answerboolean | null

          true if referenced inline in the answer; false if listed only in sources; null if indistinguishable for this app.

      • productsobject[] | null

        Product cards shown with the answer, in display order. Uses the same [] and null semantics as citations.

        Fields of products
        • product_idstring | null

          Product ID assigned by the shopping platform.

        • namestring

          Product name shown on the card.

        • brandstring | null

          Brand name.

        • urlstring | null

          Destination link of the card. May be an app deep link rather than an http(s) URL.

        • image_urlstring | null

          Product image URL.

        • storestring | null

          Store selling the product.

        • price_textstring | null

          Raw price text shown on the card. Returned as a string because values may be masked or ranges.

        • ratingnumber | null

          Rating shown on the card.

        • review_countinteger | null

          Review count shown on the card.

        • descriptionstring | null

          Additional card text, such as the full listing title.

      • suggested_followupsstring[] | null

        Follow-up questions suggested by the app. Uses the same [] and null semantics as citations.

      • capture_channelstring

        Result 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) | null

        When the app started processing the task.

      • finished_atinteger (ms) | null

        When the app finished responding.

    • videoobject | null

      Screen recording, available only for done tasks and retained for 30 days.

      Fields of video
      • urlstring

        Signed download URL for the MP4 screen recording. Expires at expires_at; fetch the query again for a fresh URL.

      • poster_urlstring | null

        540 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 | null

        Video file size in bytes.

    • created_atinteger (ms)

      Task creation timestamp.

    • updated_atinteger (ms)

      Last update timestamp.

    • started_atinteger (ms) | null

      When execution started.

    • finished_atinteger (ms) | null

      When execution finished.

    • parsed_atinteger (ms) | null

      When 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

StatuscodeDescription
402insufficient_creditsAvailable credits are below apps count x task price. No query is created.
429rate_limitedPer-minute submission limit exceeded. Wait Retry-After seconds before retrying.
429too_many_inflightConcurrent unfinished task limit reached. Wait for pending queries to finish.
429quota_exceededUTC daily task limit reached. Check Retry-After for when it resets.

All endpoints may also return 400, 401, 403, or 500. See Errors.