跳转到内容

查询单个 query

返回指定 query 的状态和各 App 的结果。同一用户名下的任意 Key 均可读取已提交的 query。每次读取都会重新签发录屏链接。result 字段说明见结果结构。

GEThttps://geo-api.geoeval.com/v1/queries/{query_id}

需在 Authorization 请求头中传入 API Key。 前往下方在线调试

路径参数

  • query_idstring必填

    提交 query 时返回的 query_id。

请求示例

curl "https://geo-api.geoeval.com/v1/queries/$QUERY_ID" \
-H "Authorization: Bearer $GEOEVAL_API_KEY"

响应 200

  • query_idstring

    query 的 ID,用于查询状态和结果。

  • querystring

    提交的问题内容 (已去除首尾空白)。

  • appsstring[]

    去重后的目标 App 列表。

  • statusstring

    初始为 pending,随后永久变为 completed (所有任务均已进入 done、failed 或 unavailable)、timeout (到达截止时间仍有任务未结束) 或 failed (入队失败,原因见 error)。

  • errorstring | null

    status 为 failed 时的失败原因。

  • created_atinteger (ms)

    提交时间。

  • updated_atinteger (ms)

    最后更新时间。

  • deadline_atinteger (ms) | null

    超时截止时间,约为提交后 6 小时,超时未结束记为 timeout;入队前为 null。

  • finished_atinteger (ms) | null

    离开 pending 状态的时间。

  • credits_heldnumber

    query 进行期间冻结的积分,结束后为 0。

  • credits_chargednumber | null

    实际扣除的积分,结束前为 null。仅对 done 状态的任务计费。

  • callbackobject

    回调投递状态。

    子字段: callback
    • urlstring | null

      提交时传入的 callback_url。

    • statusstring

      none (未传 callback_url)、pending、sent 或 failed (放弃投递)。

    • attemptsinteger

      已尝试投递的次数。

    • sent_atinteger (ms) | null

      投递成功的时间。

    • errorstring | null

      最近 1 次投递失败的原因。

  • tasksobject[]

    每个 App 对应 1 个任务;刚提交且尚未入队时可能为空数组。

    子字段: tasks
    • task_idstring

      任务 ID。

    • appstring

      该任务提问的 App。

    • statusstring

      状态依次为 queued、running、uploaded、parsing,终态为 done、failed 或 unavailable。

    • errorstring | null

      任务处于 failed 或 unavailable 时的原因说明。仅供人工阅读的自由文本,请勿在代码中匹配其内容。

    • resultobject | null

      回答结果;status 变为 done 前为 null。

      子字段: result
      • schema_versioninteger

        结果结构版本号,当前为 4。

      • task_idstring

        与 tasks[].task_id 相同。

      • query_idstring

        与外层 query_id 相同。

      • appstring

        作答的 App。

      • querystring

        发送给 App 的问题。

      • answer_markdownstring

        Markdown 格式的完整回答正文,不为空。

      • reasoningstring | null

        回答前展示的思考过程;App 未展示或不可用时为 null。

      • citationsobject[] | null

        App 引用的来源,按展示顺序排列。[] 表示无引用,null 表示不可用。

        子字段: citations
        • positioninteger

          在 App 来源列表中的序号,从 1 开始,单条结果内唯一。

        • urlstring

          来源网页的 http(s) 绝对地址,原样返回。

        • titlestring | null

          App 展示的网页标题。

        • site_namestring | null

          App 展示的站点名称;未展示时为 null,不会以域名代替。

        • domainstring

          来源主机名,全小写、不含端口,保留子域名 (含 www.)。

        • snippetstring | null

          App 展示的网页摘要。

        • cited_in_answerboolean | null

          回答正文直接引用该来源时为 true;仅出现在来源列表中为 false;该 App 无法区分时为 null。

      • productsobject[] | null

        随回答展示的商品卡片,按展示顺序排列。[] 与 null 的含义同 citations。

        子字段: products
        • product_idstring | null

          电商平台的商品 ID。

        • namestring

          卡片展示的商品名称。

        • brandstring | null

          品牌。

        • urlstring | null

          卡片跳转地址,可能是 App deep link 而非 http(s) 链接。

        • image_urlstring | null

          商品图片地址。

        • storestring | null

          店铺名称。

        • price_textstring | null

          卡片展示的价格原文;可能包含掩码或价格区间,因此为字符串。

        • ratingnumber | null

          卡片展示的评分。

        • review_countinteger | null

          卡片展示的评价数。

        • descriptionstring | null

          卡片上的附加文字,例如商品完整标题。

      • suggested_followupsstring[] | null

        App 推荐的追问。[] 与 null 的含义同 citations。

      • capture_channelstring

        结果通道标识:share 返回完整字段;copy 仅返回回答正文 (reasoning、citations、products、suggested_followups 均为 null)。network 与 a11y 保留未用。

      • started_atinteger (ms) | null

        App 开始处理任务的时间。

      • finished_atinteger (ms) | null

        App 完成回答的时间。

    • videoobject | null

      录屏信息,仅 done 状态的任务提供,保留 30 天。

      子字段: video
      • urlstring

        录屏 (MP4) 的签名下载链接,在 expires_at 失效;重新读取 query 可获取新链接。

      • poster_urlstring | null

        录屏第 1 帧的 JPEG 封面图 (宽 540 像素)。

      • expires_atinteger (ms)

        url 与 poster_url 的过期时间,约为读取后 1 小时。

      • size_bytesinteger | null

        视频文件大小 (字节)。

    • created_atinteger (ms)

      任务创建时间。

    • updated_atinteger (ms)

      任务最后更新时间。

    • started_atinteger (ms) | null

      开始执行的时间。

    • finished_atinteger (ms) | null

      执行结束的时间。

    • parsed_atinteger (ms) | null

      结果解析完成的时间。

响应示例

{
"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
}
]
}

错误

状态码code说明
404query_not_found当前账号下不存在该 query。
429rate_limited该 Key 读取过于频繁 (上限每分钟 300 次)。
503upstream_unavailable结果暂时无法读取,请稍后重试。

所有接口还可能返回 400、401、403 或 500,详见错误.