Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Firecrawl Web Search

API 文件
https://api.sandbase.ai/v1/api/firecrawl/search

Searches the web using a text query and returns relevant pages with their titles, descriptions, and source URLs. Supports adjusting result counts.

價格
$0.015美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填

Playground

輸入
The search query.
1100
Maximum number of results to return. 範圍:1 到 100。
輸出範例
回應outputs · 1.4 KB · 27 行
{
  "creditsUsed": 2,
  "data": {
    "web": [
      {
        "description": "OpenAI | Research & Deployment\n\n## Recent news\n[Advancing the price-performance frontier with GPT‑5.6\\\n\\\nProductJul 30, 2026](https://openai.com/index/advancing-the-price-performance-frontier-with-gpt-5-6/)\n\n[David Vélez and Robin Vince join OpenAI boards\\\n\\\nCompanyJul 21, 2026](https://openai.com/index/david-velez-robin-vince-join-openai-boards/)\n\n## Latest research\n[An OpenAI model has disproved a central conjecture in discrete geometry\\\n\\\nResearchMay 20, 2026](https://openai.com/index/model-disproves-discrete-geometry-conjecture/)",
        "position": 1,
        "title": "OpenAI | Research & Deployment",
        "url": "https://openai.com/"
      },
      {
        "description": "OpenAI is an AI research and deployment company dedicated to ensuring that general-purpose artificial intelligence benefits all of humanity.",
        "position": 2,
        "title": "OpenAI",
        "url": "https://www.linkedin.com/company/openai"
      },
      {
        "position": 3,
        "title": "Black Hat USA 2026 - The OpenAI–Hugging Face Incident",
        "url": "https://www.reddit.com/r/LocalLLaMA/comments/1vhv8ka/black_hat_usa_2026_the_breaking_news_the/"
      },
      "… 7 more items in the full response"
    ]
  },
  "id": "019fe65c-b356-769c-9e1f-a9960ff7c770",
  "success": true
}

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Firecrawl Web Search API

Returns a ranked list of web pages that match a text query. Each result has a title, a description, a source URL, and its rank. The only required input is query, and limit caps the number of results.

Use cases

  • Collect source URLs and snippets for a research topic before reading the pages.
  • Feed search results into an LLM pipeline as context for a question.
  • Check which sites rank for a brand name such as OpenAI.
  • Build a list of URLs to pass to a scraper or crawler.

Request

curl -X POST "https://api.sandbase.ai/v1/api/firecrawl/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesThe search query.
limitintegerNoMaximum number of results to return.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "web": [
      {
        "description": "OpenAI | Research & Deployment\n\n## Latest research\n[An OpenAI model proposes a s…",
        "position": 1,
        "title": "OpenAI | Research & Deployment",
        "url": "https://openai.com/"
      }
    ]
  },
  "id": "01a1a053-d894-7766-8468-2b045150832c",
  "success": true
}

Response fields

FieldMeaning
data.web[]List of search results, in ranked order.
data.web[].positionRank of the result in the list. 1 is the first result.
data.web[].titleTitle of the web page.
data.web[].urlSource URL of the page.
data.web[].descriptionText taken from the page. It can be a short summary or raw page text with Markdown, links, and line breaks.
successtrue when the search call worked.
idUnique ID of this search response, in UUID format.

Notes

  • query can be up to 500 characters. limit accepts whole numbers from 1 to 100.
  • The description value can contain Markdown and image links, so clean it before showing it to users.
  • To read the full content of a result, pass its url to Firecrawl Page Scraper.
  • To list other pages on the same site, pass the url to Firecrawl URL Discovery.

Pricing

$0.015 per successful call. Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
Firecrawl每次呼叫 $0.015JSON
Firecrawl每次呼叫 $0.0075 起非同步 JSON
Firecrawl每次呼叫 $0.0075 起非同步 JSON
Firecrawl每次呼叫 $0.0075JSON
Firecrawl每次呼叫 $0.0075JSON

指南:Firecrawl alternative: pay per page or a planURL to Markdown: Firecrawl, Exa and Tavily comparedExa vs Tavily vs Firecrawl for AI agents

問題

常見問題

我要如何使用 Firecrawl Web Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/firecrawl/search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Firecrawl Web Search API 的費用是多少?

每次 $0.015,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Firecrawl Web Search API 接受哪些參數?

必要:query (string)。 選填:limit (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Firecrawl Web Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Firecrawl 開發者帳號或 API 金鑰嗎?

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