- 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
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
Setsources 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 withincludeDomains. Use tbs to keep results from a recent time range, like qdr:m for the past month.
cURL
Search with Content Scraping
AddscrapeOptions 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
Cost Implications
- Each source costs 2 credits for every 10 results (or part of 10). Searching the web and images with
limit: 2costs 4 credits. - With
scrapeOptions, each result that came back with content also costs what a scrape of it costs: 1 credit a page, 5 withjson,questionorhighlights. - The response’s
creditsUsedis the exact cost of the call. The search above cost 3 credits: 2 for the results, 1 for the page that was read.