Skip to main content

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

Only query is required. Content options

Response parameters

Response body

The API returns a JSON object with request metadata and a results array.
Result fields

Examples

Set your API key before running the examples:
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 as 2026-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 the markdown 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.
Disable safe search when your application requires unfiltered results.
For Python and Node.js examples, see SDKs. To send a request in your browser, use Try it in the API Reference.