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.
开始构建
具备统一身份验证和使用情况跟踪的平台 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 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_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 | $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
问题
向 https://api.sandbase.ai/v1/api/firecrawl/scrape 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.0075,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:url (string) 和 proxy(basic 之一)。 可选:formats (array)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Firecrawl Page Scraper 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Firecrawl API 访问权限。
向该端点发送公开的 HTTPS url 和 proxy: "basic"。当前 README 将 Markdown 描述为默认输出;formats 是可选项,但平台 schema 并未枚举所有提供方格式。请遵循当前 SandBase 参考文档,不要照搬额外的提供方选项。这是单页提取,不是 crawl 也不是 search。
当前 README 将 Firecrawl 业务载荷放在 SandBase 的 outputs[0].data 中。请在该载荷里读取 data.markdown 和 data.metadata。在存在的情况下,保留 sourceURL、页面状态和缓存信息,并与请求的 URL 分开。缺失的来源数据仍然未知;URL 或 Markdown 文档都不能证明某个说法正确或最新。
当前 SandBase 输入 schema 要求 proxy,且只列出 basic。请使用此端点接受的值,不要使用提供方独立 API 宣传的值。不要利用抓取去访问私密页面或绕过访问限制。