Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Firecrawl Batch Scrape

Tài liệu 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.

Giá
Từ $0.0075USD / lượt gọi
Phương thức
POST
Phản hồi
JSON bất đồng bộ
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
List of URLs to scrape.
Output formats for each page.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
FirecrawlTừ $0.0075 mỗi lần gọiJSON bất đồng bộ
FirecrawlTừ $0.0075 mỗi lần gọiJSON bất đồng bộ
Firecrawl$0.0075 mỗi lần gọiJSON
Firecrawl$0.0075 mỗi lần gọiJSON
Firecrawl$0.015 mỗi lần gọiJSON

Hướng dẫn:Firecrawl alternative: pay per page or a planURL to Markdown: Firecrawl, Exa and Tavily comparedExa vs Tavily vs Firecrawl for AI agents

Câu hỏi

FAQ

Làm thế nào để dùng API Firecrawl Batch Scrape?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/firecrawl/batch/scrape với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Firecrawl Batch Scrape có giá bao nhiêu?

Từ $0.0075 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Firecrawl Batch Scrape chấp nhận những tham số nào?

Bắt buộc: urls (array). Tùy chọn: formats (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Firecrawl Batch Scrape trả về gì?

Kết quả JSON. Endpoint này chạy bất đồng bộ, nên phản hồi sẽ cho bạn biết cách lấy kết quả hoàn tất. README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Firecrawl không?

Không. Firecrawl Batch Scrape chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Firecrawl.