searchscraper endpoint. Returns the top pages with their content inline, and optionally runs an AI extraction across all results.
Request body
Optional prompt for AI extraction across the fetched results. When provided, the response also includes a
json field.Optional MIME allowlist for fetched results. Omit this field to allow every supported type, including
application/pdf. There is no "all" or "*" keyword. When provided, it must be a non-empty array of exact supported MIME types, such as ["text/html", "application/pdf"]. Rejected types are reported as failed pages and do not appear in results.Optional processing configuration. Omit this field to use the 25-page PDF cap. You may also send
{"type":"pdf"} and omit maxPages; it defaults to 25. Set maxPages only to override the
default, using 1–500, or -1 for no page limit. PDF processing costs 1 credit per page
actually processed. See Configure PDF page limits
for examples. This does not change allowedTypes.Fetch-time options applied when crawling each result. See the Scrape endpoint for the full field list.
Example request
Example response
Search + extraction
Addprompt (and optionally schema) to roll all results into one structured payload:
prompt is supplied, the response includes three extra fields alongside results:
Related
- Service overview: Search
- SDK wrappers: Python · JavaScript