# 查看任务

GET/v1/jobs/{id}

查看任务进度、冻结金额和已收费用。

## 价格

- 价格: 不收费

这个接口不收费，所以不接受 Idempotency-Key 和 X-Max-Price；带了会返回 invalid_params。

## 参数

`id` 编号（UUID） 必填

任务编号。

## 请求头

`Authorization` 必填

Bearer 加你的 API Key。

## 返回

成功时返回 HTTP 200，数据在 `data.item`，是一个 `Job`。字段一直都在： `[]` 是这次没有， `null` 是平台不提供或看不出来。

| 字段 | 类型 | 说明 |
| --- | --- | --- |
| `id` | `string` | 任务编号 |
| `status` | `"queued" \| "running" \| "completed" \| "partial" \| "failed"` | queued 还没开始；running 进行中；completed 都完成了；partial 有一部分没采到；failed 都没采到 |
| `total` | `integer` | 一共多少条回答 |
| `counts` | `{ answered: integer, no_answer: integer, refused: integer, failed: integer, pending: integer }` | 每种状态各有几条。pending 是还没完成的 |
| `max_charge` | `string` | 最多收多少，也就是提交时冻结的金额 |
| `held` | `string` | 现在还冻结着多少 |
| `charged` | `string` | 已经收了多少 |
| `prompt_set` | `{ name: string, version: string \| null } \| null` | 提交时写的题集。没写就是 null |
| `tags` | `string[]` | 提交时写的标签 |
| `created_at` | `string` | 提交时间 |
| `completed_at` | `string \| null` | 都完成的时间。还没完成是 null |
| `retry_after_seconds` | `integer \| null` | 建议隔多少秒再查。任务结束后是 null |

## 常见错误

返回错误就没有收费，只有 `settlement_unknown`：它表示暂时不知道有没有扣费，要用同一个 Idempotency-Key 再查。[查看每个错误码](https://www.askcrawl.com/zh/docs/errors/)。

| 错误 | HTTP | 意思 | 收费吗 |
| --- | --- | --- | --- |
| [`not_found`](https://www.askcrawl.com/zh/docs/errors/#not_found) | 404 | 对象不存在、私密或已删除 | 没有收费 |
| [`invalid_params`](https://www.askcrawl.com/zh/docs/errors/#invalid_params) | 400 | 参数不合法 | 没有收费 |
| [`unauthorized`](https://www.askcrawl.com/zh/docs/errors/#unauthorized) | 401 | 没有带凭证，或凭证无效、已停用、已过期 | 没有收费 |
| [`rate_limited`](https://www.askcrawl.com/zh/docs/errors/#rate_limited) | 429 | 请求过快，或同时进行的调用过多 | 没有收费 |

```
curl https://api.askcrawl.com/v1/jobs/$JOB_ID \
  -H <b>"Authorization: Bearer $API_KEY"</b>
```

返回 200（示意）

```
{
  <b>"code"</b>: <b>"ok"</b>,
  <b>"request_id"</b>: <b>"…"</b>,
  <b>"data"</b>: {
    <b>"item"</b>: {
      <b>"id"</b>: <b>"2f6c1c0e-5b7a-4d1e-9a53-0c8e4f7b21a6"</b>,
      <b>"status"</b>: <b>"queued"</b>,
      <b>"total"</b>: 6,
      <b>"counts"</b>: {
        <b>"answered"</b>: 0,
        <b>"no_answer"</b>: 0,
        <b>"refused"</b>: 0,
        <b>"failed"</b>: 0,
        <b>"pending"</b>: 6
      },
      <b>"max_charge"</b>: <b>"0.1236"</b>,
      <b>"held"</b>: <b>"0.1236"</b>,
      <b>"charged"</b>: <b>"0"</b>,
      <b>"prompt_set"</b>: null,
      <b>"tags"</b>: [],
      <b>"created_at"</b>: <b>"2026-12-01T08:00:00.000Z"</b>,
      <b>"completed_at"</b>: null,
      <b>"retry_after_seconds"</b>: 10
    }
  }
}
```

上一级

[接口参考](https://www.askcrawl.com/zh/docs/api/)

相近的页面

[提交采集任务](https://www.askcrawl.com/zh/docs/api/answers-create/)

[提交前报价](https://www.askcrawl.com/zh/docs/api/answers-quote/)

[取任务的回答](https://www.askcrawl.com/zh/docs/api/answers-list/)

[取一条回答](https://www.askcrawl.com/zh/docs/api/answers-get/)

依据

[错误和收费](https://www.askcrawl.com/zh/docs/errors/)

[费用、冻结和结算](https://www.askcrawl.com/zh/docs/billing/)

接着做

[快速开始](https://www.askcrawl.com/zh/docs/quickstart/)

[连接 AI 助手](https://www.askcrawl.com/zh/docs/mcp/)

> 网页：https://www.askcrawl.com/zh/docs/api/jobs-get/ · 内容日期：2026-12-01
