Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Firecrawl Batch Scrape

API 文档
https://api.sandbase.ai/v1/api/firecrawl/batch/scrape

Scrape multiple URLs in a single batch job. Submit a list of URLs and poll for results as each page completes.

价格
起价 $0.0075美元 / 次调用
方法
POST
响应
异步 JSON
参数
1 个必填 · 1 个可选

Playground

输入
List of URLs to scrape.
Output formats for each page.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Firecrawl Batch Scrape API

Scrapes a list of web pages in one batch job and returns the content of each page in the formats you pick, such as markdown. It needs a urls array and takes an optional formats array.

Use cases

  • Pull the text of many articles or docs pages as markdown in one call to feed a search index or an LLM.
  • Collect the links of a set of known pages to see where each one points.
  • Save html or rawHtml snapshots of a fixed list of pages for later comparison.
  • Check the language and content type of many pages at once.

Request

curl -X POST "https://api.sandbase.ai/v1/api/firecrawl/batch/scrape" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com"], "formats": ["markdown"]}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlsarrayYesList of URLs to scrape.
formatsarrayNoOutput formats for each page.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "completed": 1,
  "completedAt": "2026-11-03T07:33:32.124Z",
  "createdAt": "2026-11-03T07:33:31.624Z",
  "creditsUsed": 1,
  "data": [
    {
      "markdown": "This domain is for use in documentation examples without needing permission. Thi…",
      "metadata": {
        "cacheState": "hit",
        "cachedAt": "2026-11-03T07:33:19.669Z",
        "contentType": "text/html; charset=utf-8",
        "creditsUsed": 1,
        "favicon": "data:,",
        "language": "en",
        "proxyUsed": "basic",
        "scrapeId": "01a1a053-d76c-72e9-abc3-54d02183e9e6"
      }
    }
  ],
  "duration": 0.5,
  "expiresAt": "2026-11-04T07:33:41.000Z",
  "status": "completed",
  "success": true,
  "total": 1
}

Response fields

FieldMeaning
status / successJob state. completed with success set to true means the batch finished.
total / completedNumber of URLs submitted and number of pages finished so far. Compare them while polling.
data[].markdownPage content as markdown. It appears when markdown is in formats.
data[].metadata.scrapeIdUnique ID of the scrape for this page.
data[].metadata.language / contentTypeLanguage code detected for the page and the content type of the response.
data[].metadata.cacheState / cachedAtWhether the page came from cache (hit in the example) and the time it was cached.
data[].metadata.proxyUsedType of proxy used for the fetch, such as basic.
creditsUsed / data[].metadata.creditsUsedCredits used by the whole job and by each page.
createdAt / completedAt / expiresAtISO 8601 UTC timestamps for job creation, job completion, and when the job result expires.
durationDuration value for the job, 0.5 in the example.

Notes

  • The call is asynchronous. It returns a run id with status pending. Poll GET https://api.sandbase.ai/v1/run/{id} until the status is completed, then read the result from outputs[0].data.
  • Allowed formats values are markdown, html, rawHtml, links and screenshot.
  • Each item in data matches one URL. Check completed against total to see how many pages are done.
  • The result has an expiresAt time, so save the data you need before then.

Pricing

Billed at the actual cost of each call, about $0.0075 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Firecrawl每次调用从 $0.0075 起异步 JSON
Firecrawl每次调用从 $0.0075 起异步 JSON
Firecrawl$0.0075 每次调用JSON
Firecrawl$0.0075 每次调用JSON
Firecrawl$0.015 每次调用JSON

指南:Firecrawl alternative: pay per page or a planURL to Markdown: Firecrawl, Exa and Tavily comparedExa vs Tavily vs Firecrawl for AI agents

问题

常见问题

如何使用 Firecrawl Batch Scrape API?

向 https://api.sandbase.ai/v1/api/firecrawl/batch/scrape 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Firecrawl Batch Scrape API 的价格是多少?

起价每次调用 $0.0075,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Firecrawl Batch Scrape API 接受哪些参数?

必填:urls (array)。 可选:formats (array)。 Parameters 表和本页的 Playground 列出了每个字段。

Firecrawl Batch Scrape API 返回什么?

JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。 本页的 README 包含一个示例响应。

我需要 Firecrawl 开发者账户或 API key 吗?

不需要。Firecrawl Batch Scrape 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Firecrawl API 访问权限。