跳转到主要内容
GET
/
crawl
/
{id}
获取爬取任务状态
curl --request GET \
  --url https://api.firecrawl.dev/v2/crawl/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "total": 123,
  "completed": 123,
  "creditsUsed": 123,
  "expiresAt": "2023-11-07T05:31:56Z",
  "next": "<string>",
  "data": [
    {
      "markdown": "<string>",
      "html": "<string>",
      "rawHtml": "<string>",
      "links": [
        "<string>"
      ],
      "screenshot": "<string>",
      "metadata": {
        "title": "<string>",
        "description": "<string>",
        "language": "<string>",
        "sourceURL": "<string>",
        "keywords": "<string>",
        "ogLocaleAlternate": [
          "<string>"
        ],
        "<any other metadata> ": "<string>",
        "statusCode": 123,
        "error": "<string>"
      }
    }
  ]
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string<uuid>
必填

爬取任务的 ID

响应

成功的响应

status
string

当前爬取任务的状态。状态可能为 scrapingcompletedfailed

total
integer

尝试爬取的页面总数。

completed
integer

已成功爬取的页面数量。

creditsUsed
integer

本次爬取所使用的积分数量。

expiresAt
string<date-time>

此抓取任务的到期日期和时间。

next
string | null

用于获取后续 10MB 数据的 URL。当抓取尚未完成,或响应内容超过 10MB 时,会返回该字段。

data
object[]

本次爬取的数据。