Introduction
The Search API returns ranked web results with source URLs, snippets, and optional page content. Use the results as context in your application, and retain the source URLs for citations.Endpoint
Request parameters
Headers
Body
Onlyquery is required.
Content options
Response parameters
Response body
The API returns a JSON object with request metadata and aresults array.
Examples
Set your API key before running the examples:Basic search
Search with a query and a maximum result count.Recent results
Find results from the past week.Custom date range
Search within a specific period. You can also use a single date or an open range such as2026-08-01.. or ..2026-08-31.
Domain filters
Include results from selected domains and exclude results from unwanted domains.Page content
Retrieve page content in themarkdown field, up to 3,000 characters per result. When markdown is returned, the snippet field is omitted. Set format to "text" to return page content in the text field instead.