POST /v1/search
Search the web using Firecrawl’s search engine and optionally scrape the content from the search results.Authentication
Requires Bearer token authentication. Include your API key in the Authorization header:Request Body
string
required
The search query
integer
default:"5"
Maximum number of results to return. Minimum: 1, Maximum: 100
string
Time-based search parameter for filtering results by time period
string
Location parameter for search results
integer
default:"60000"
Timeout in milliseconds
boolean
default:"false"
Excludes URLs from the search results that are invalid for other Firecrawl endpoints. This helps reduce errors if you are piping data from search into other Firecrawl API endpoints.
object
Options for scraping search results
array
Formats to include in the scraped output. Options:
markdown, html, rawHtml, links, screenshot, screenshot@fullPage, json, brandingResponse
boolean
Indicates whether the request was successful
array
Array of search results
string
Title from search result
string
Description from search result
string
URL of the search result
string
Markdown content if scraping was requested
string
HTML content if requested in formats
string
Raw HTML content if requested in formats
array
Links found if requested in formats
string
Screenshot URL if requested in formats
string
Warning message if any issues occurred
Examples
Basic Search
Response
Search with Content Scraping
Get the full content of search results:Error Responses
object
Request Timeout - Request timed out
object
Server Error - An unexpected error occurred on the server