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

Firecrawl Page Scraper

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

Scrapes content from target web pages with automatic handling of JavaScript rendering. Returns extracted page data based on specified formats and proxy settings.

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

Playground

输入
The HTTPS URL to scrape.
Proxy tier.
Output formats.
输出示例
响应outputs · 749 B · 22 行
{
  "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 中。

API README

Firecrawl Page Scraper API

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 cases

  • Turn web pages into Markdown for LLM context or RAG.
  • Extract article text without writing a parser per site.
  • Capture a screenshot of a page.

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.

Request

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.

Parameters

NameTypeRequiredDescription
proxystringYesProxy tier.
urlstringYesThe HTTPS URL to scrape.
formatsarrayNoOutput formats.

Example response

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
}

Response fields

FieldMeaning
data.markdownPage content as Markdown (default format).
data.html / data.links / data.screenshotReturned when requested in formats.
data.metadatatitle, description, language, sourceURL, statusCode and contentType of the page.
successtrue when the page was scraped.

Notes

  • The current SandBase Scrape input schema requires proxy and accepts basic. Use proxy: "basic" with an HTTPS url. Other proxy values are not listed for this SandBase endpoint; do not copy them from provider documentation without platform confirmation.
  • Pages that require login or return errors fail and are not charged.

Pricing

$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.

探索更多

相关 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 Page Scraper API?

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

Firecrawl Page Scraper API 的价格是多少?

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

Firecrawl Page Scraper API 接受哪些参数?

必填:url (string) 和 proxy(basic 之一)。 可选:formats (array)。 Parameters 表和本页的 Playground 列出了每个字段。

Firecrawl Page Scraper API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

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

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

如何用 Firecrawl Scrape API 将已知 URL 转成 Markdown?

向该端点发送公开的 HTTPS url 和 proxy: "basic"。当前 README 将 Markdown 描述为默认输出;formats 是可选项,但平台 schema 并未枚举所有提供方格式。请遵循当前 SandBase 参考文档,不要照搬额外的提供方选项。这是单页提取,不是 crawl 也不是 search。

响应中的 Markdown 和来源元数据在哪里?

当前 README 将 Firecrawl 业务载荷放在 SandBase 的 outputs[0].data 中。请在该载荷里读取 data.markdown 和 data.metadata。在存在的情况下,保留 sourceURL、页面状态和缓存信息,并与请求的 URL 分开。缺失的来源数据仍然未知;URL 或 Markdown 文档都不能证明某个说法正确或最新。

这里可以把 proxy 值设为 stealth 或 auto 吗?

当前 SandBase 输入 schema 要求 proxy,且只列出 basic。请使用此端点接受的值,不要使用提供方独立 API 宣传的值。不要利用抓取去访问私密页面或绕过访问限制。