跳转到内容

query 列表

按时间倒序列出已提交的 query,可用于找回 query_id 或查看进行中的请求。翻页时将 next 作为下一次请求的 before 传入。

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

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

查询参数

  • limitinteger可选

    每页条数,默认 50,最大 200。

  • beforestring可选

    只返回早于该 ID 的记录,传入上页的 next。

请求示例

curl "https://geo-api.geoeval.com/v1/queries?limit=20" \
-H "Authorization: Bearer $GEOEVAL_API_KEY"

响应 200

  • queriesobject[]

    账号下所有 Key 提交的 query,按时间倒序排列,不含任务和结果。

    子字段: queries
    • query_idstring

      query 的 ID。

    • api_key_idstring

      提交该 query 的 API Key ID。

    • querystring

      问题内容。

    • appsstring[]

      目标 App 列表。

    • statusstring

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

    • errorstring | null

      status 为 failed 时的原因。

    • created_atinteger (ms)

      提交时间。

    • finished_atinteger (ms) | null

      结束时间。

    • credits_heldnumber

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

    • credits_chargednumber | null

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

  • nextstring | null

    下页游标,传给 before 参数获取下页;末页为 null。

响应示例

{
"queries": [
{
"query_id": "01a22524-9c1e-7a3b-8f21-6b0d4c9e1a27",
"api_key_id": "01a22524-6869-7d2d-bdab-b3a29b49ccc2",
"query": "Which robot vacuum is the best choice in 2026?",
"apps": [
"doubao"
],
"status": "completed",
"error": null,
"created_at": 1798000000000,
"finished_at": 1798000095000,
"credits_held": 0,
"credits_charged": 3
}
],
"next": null
}

错误

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