urlsarrayจำเป็น
List of URLs to scrape.
https://api.sandbase.ai/v1/api/firecrawl/batch/scrapeScrape multiple URLs in a single batch job. Submit a list of URLs and poll for results as each page completes.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
markdown in one call to feed a search index or an LLM.links of a set of known pages to see where each one points.html or rawHtml snapshots of a fixed list of pages for later comparison.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.
| Name | Type | Required | Description |
|---|---|---|---|
urls | array | Yes | List of URLs to scrape. |
formats | array | No | Output formats for each page. |
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
}
| Field | Meaning |
|---|---|
status / success | Job state. completed with success set to true means the batch finished. |
total / completed | Number of URLs submitted and number of pages finished so far. Compare them while polling. |
data[].markdown | Page content as markdown. It appears when markdown is in formats. |
data[].metadata.scrapeId | Unique ID of the scrape for this page. |
data[].metadata.language / contentType | Language code detected for the page and the content type of the response. |
data[].metadata.cacheState / cachedAt | Whether the page came from cache (hit in the example) and the time it was cached. |
data[].metadata.proxyUsed | Type of proxy used for the fetch, such as basic. |
creditsUsed / data[].metadata.creditsUsed | Credits used by the whole job and by each page. |
createdAt / completedAt / expiresAt | ISO 8601 UTC timestamps for job creation, job completion, and when the job result expires. |
duration | Duration value for the job, 0.5 in the example. |
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.formats values are markdown, html, rawHtml, links and screenshot.data matches one URL. Check completed against total to see how many pages are done.expiresAt time, so save the data you need before then.Billed at the actual cost of each call, about $0.0075 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/firecrawl/batch/scrape" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
urlsarrayจำเป็นList of URLs to scrape.
formatsarrayOutput formats for each page.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Firecrawl Batch ScrapeAPI นี้ Firecrawl | เริ่มต้นที่ $0.0075 ต่อครั้ง | Async JSON |
Firecrawl | เริ่มต้นที่ $0.0075 ต่อครั้ง | Async 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/firecrawl/batch/scrape โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0075 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: urls (array). ตัวเลือก: formats (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Firecrawl Batch Scrape ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Firecrawl API แยกต่างหาก