Search lets you search the web and, in the same call, read the full content of the results.
  • Choose where to search: the web, images, or both
  • Read every result as Markdown or any other format
  • Keep results to the sites and the time range you want
For details, see the Search Endpoint API Reference.
If a request fails, see Errors for the error codes and what to do about each one.

Performing a Search with ScreenshotRender

/search endpoint

Used to search the web and, optionally, read the results.

Installation

Basic Usage

Response

SDKs return the data object directly. cURL returns the payload exactly as shown below.
Response
limit is the number of results for each source, 10 by default and up to 100.

Search result types

Set sources to choose where to search. Each source comes back as its own list in data.
cURL
Response

Domain and time filters

Keep results to some sites with includeDomains. Use tbs to keep results from a recent time range, like qdr:m for the past month.
cURL

Search with Content Scraping

Add scrapeOptions to read every result page in the same call. It takes the same options as Scrape: formats, onlyMainContent, waitFor and the rest.

Response with Scraped Content

Response
A result whose page could not be read comes back without content, like the second result above, and costs nothing to read.

Cost Implications

  • Each source costs 2 credits for every 10 results (or part of 10). Searching the web and images with limit: 2 costs 4 credits.
  • With scrapeOptions, each result that came back with content also costs what a scrape of it costs: 1 credit a page, 5 with json, question or highlights.
  • The response’s creditsUsed is the exact cost of the call. The search above cost 3 credits: 2 for the results, 1 for the page that was read.