POST
/
search
curl --request POST \
  --url https://api.firecrawl.dev/v0/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "pageOptions": {
    "onlyMainContent": false,
    "fetchPageContent": true,
    "includeHtml": false,
    "includeRawHtml": false
  },
  "searchOptions": {
    "limit": 123
  }
}'
{
  "success": true,
  "data": [
    {
      "url": "<string>",
      "markdown": "<string>",
      "content": "<string>",
      "metadata": {
        "title": "<string>",
        "description": "<string>",
        "language": "<string>",
        "sourceURL": "<string>"
      }
    }
  ]
}

搜索端点结合了搜索 API 和 Firecrawl 的强大功能,为任何查询提供强大的搜索体验。

它会自动在网络中搜索查询内容,并以 Markdown 格式返回来自顶级页面的最相关结果。此端点的优势在于它实际上会抓取顶级结果中的每个网站,因此您始终可以获得完整的内容。

此端点目前处于 Beta 阶段,可能会有变动。

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.