urlstringจำเป็น
The HTTPS URL to scrape.
https://api.sandbase.ai/v1/api/firecrawl/scrapeScrapes content from target web pages with automatic handling of JavaScript rendering. Returns extracted page data based on specified formats and proxy settings.
{
"data": {
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
"metadata": {
"cacheState": "hit",
"cachedAt": "2026-08-09T08:27:14.661Z",
"concurrencyLimited": false,
"contentType": "text/html",
"creditsUsed": 1,
"favicon": "data:,",
"language": "en",
"proxyUsed": "basic",
"scrapeId": "019fe5a4-79e9-75d9-9d28-b641240aea02",
"sourceURL": "https://example.com",
"statusCode": 200,
"title": "Example Domain",
"url": "https://example.com/",
"viewport": "width=device-width, initial-scale=1"
}
},
"success": true
}เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Scrape any public web page and get clean Markdown, HTML, links or a screenshot, with page metadata such as title, language and HTTP status. JavaScript-rendered pages are handled, and the proxy tier controls how hard-to-reach sites are fetched.
Use this single-page endpoint when you already have a public HTTPS URL and want Markdown plus source metadata. Search is a separate discovery step; a Scrape does not discover or traverse an entire website. See the known-URL Markdown recipe in our API selection guide before using the content in an agent.
curl -X POST "https://api.sandbase.ai/v1/api/firecrawl/scrape" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "proxy": "basic"}'
The result is returned in outputs[0].data.
The sample below shows the Firecrawl business payload inside SandBase's outputs[0].data, not a complete SandBase response envelope. Inside that payload, Markdown is data.markdown and source metadata is data.metadata. Check the wrapper and the business result separately; a saved sample is not a fresh request made by this page.
| Name | Type | Required | Description |
|---|---|---|---|
proxy | string | Yes | Proxy tier. |
url | string | Yes | The HTTPS URL to scrape. |
formats | array | No | Output formats. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"markdown": "This domain is for use in documentation examples without needing permission. Thi…",
"metadata": {
"cacheState": "hit",
"cachedAt": "2026-11-03T01:40:17.140Z",
"concurrencyLimited": false,
"contentType": "text/html; charset=utf-8",
"favicon": "data:,",
"language": "en",
"proxyUsed": "basic",
"scrapeId": "01a19f12-61d9-71bf-87c0-52a9fef97a83",
"sourceURL": "https://example.com",
"statusCode": 200,
"title": "Example Domain",
"url": "https://example.com/"
}
},
"success": true
}
| Field | Meaning |
|---|---|
data.markdown | Page content as Markdown (default format). |
data.html / data.links / data.screenshot | Returned when requested in formats. |
data.metadata | title, description, language, sourceURL, statusCode and contentType of the page. |
success | true when the page was scraped. |
$0.0075 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/firecrawl/scrape" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://static.sandbase.ai/examples/b8c8d1dc-773a-4e08-adcb-eb014dd7b5eb/input/106170b7-0b8c-46ad-a429-067f9a3139ab.com",
"proxy": "basic"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
urlstringจำเป็นThe HTTPS URL to scrape.
proxystringจำเป็นProxy tier.
ค่าเริ่มต้น: "basic"
ค่าที่เป็นไปได้: basic
formatsarrayOutput formats.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
{
"data": {
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
"metadata": {
"cacheState": "hit",
"cachedAt": "2026-08-09T08:27:14.661Z",
"concurrencyLimited": false,
"contentType": "text/html",
"creditsUsed": 1,
"favicon": "data:,",
"language": "en",
"proxyUsed": "basic",
"scrapeId": "019fe5a4-79e9-75d9-9d28-b641240aea02",
"sourceURL": "https://example.com",
"statusCode": 200,
"title": "Example Domain",
"url": "https://example.com/",
"viewport": "width=device-width, initial-scale=1"
}
},
"success": true
}สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Firecrawl Page ScraperAPI นี้ Firecrawl | $0.0075 ต่อการเรียก | JSON |
Firecrawl | เริ่มต้นที่ $0.0075 ต่อครั้ง | Async JSON |
Firecrawl | เริ่มต้นที่ $0.0075 ต่อครั้ง | Async 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/scrape โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.0075 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: url (string) และ proxy (หนึ่งใน basic). ตัวเลือก: formats (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Firecrawl Page Scraper ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Firecrawl API แยกต่างหาก
ส่ง public HTTPS url และ proxy: "basic" ไปยัง endpoint นี้ README ปัจจุบันระบุว่า Markdown เป็นผลลัพธ์เริ่มต้น formats เป็นตัวเลือกเสริม แต่ platform schema ไม่ได้แจกแจงทุก provider format ทำตาม reference ปัจจุบันของ SandBase แทนการคัดลอกตัวเลือกเพิ่มเติมของ provider นี่คือการดึงข้อมูลหน้าเดียว ไม่ใช่การ crawl หรือการค้นหา
README ปัจจุบันวาง payload ธุรกิจของ Firecrawl ไว้ภายใน outputs[0].data ของ SandBase ให้อ่าน data.markdown และ data.metadata ภายใน payload นั้น เก็บ sourceURL, page status และข้อมูล cache ไว้ตามที่มี โดยแยกจาก URL ที่ร้องขอ ข้อมูลต้นทางที่หายไปยังคงไม่ทราบ; URL หรือเอกสาร Markdown ไม่ได้พิสูจน์ว่าข้อความนั้นถูกต้องหรือเป็นปัจจุบัน
input schema ปัจจุบันของ SandBase ต้องใช้ proxy และระบุไว้เพียง basic ใช้ค่าที่ endpoint นี้รองรับ ไม่ใช่ค่าที่โฆษณาไว้สำหรับ API แยกของ provider อย่าใช้การ scraping เพื่อเข้าถึงหน้าส่วนตัวหรือเลี่ยงข้อจำกัดการเข้าถึง