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.0075JSON
Firecrawl每次呼叫 $0.0075 起非同步 JSON
Firecrawl每次呼叫 $0.0075 起非同步 JSON
Firecrawl每次呼叫 $0.0075JSON
Firecrawl每次呼叫 $0.015JSON

指南: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?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/firecrawl/scrape。您也可以直接在本頁的 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 金鑰嗎?

不需要。Firecrawl Page Scraper 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Firecrawl API 存取權。

我要如何使用 Firecrawl Scrape API 將已知 URL 轉成 Markdown?

將公開的 HTTPS url 和 proxy: "basic" 傳送到這個端點。現行 README 將 Markdown 描述為預設輸出;formats 為選用,但平台 schema 沒有列出每個供應商格式。請依照目前 SandBase 參考文件操作,不要直接複製供應商額外的選項。這是單頁擷取,不是爬蟲或搜尋。

Markdown 與來源中繼資料在回應的哪裡?

目前 README 將 Firecrawl 的業務 payload 放在 SandBase 的 outputs[0].data 裡。請在該 payload 內讀取 data.markdown 與 data.metadata。保留 sourceURL、頁面狀態與快取資訊(若有),並與要求的 URL 分開處理。缺少的來源資料仍屬未知;URL 或 Markdown 文件都不能證明主張正確或最新。

這裡可以把 proxy 值設成 stealth 或 auto 嗎?

目前 SandBase 輸入 schema 需要 proxy,且只列出 basic。請使用此端點接受的值,不要使用供應商獨立 API 所宣傳的值。不要用抓取來存取私有頁面或繞過存取限制。