跳转到主要内容
GET
/
batch
/
scrape
/
{id}
获取批量抓取作业状态
curl --request GET \
  --url https://api.firecrawl.dev/v2/batch/scrape/{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

用于获取下一个 10 MB 数据的 URL。如果批量抓取未完成,或响应内容超过 10 MB,则会返回该字段。

data
object[]

批量爬取的数据。