POST /web_search/contents turns up to 20 URLs into clean, model-ready content in one request. Every parameter and schema is in the API Reference; this page covers behavior.
Formats Are Best-Effort Per URL
Every result carriesurl, and title whenever the page has one. Beyond that, which fields come back varies by URL and cache state:
- With
formatsomitted,htmlandmetadataare the defaults. - Requesting
markdowndoes not suppresshtmlโ a freshly crawled page may return both, while cached content returns exactly the requested formats. If you only needmarkdown, ignore thehtmlfield in the response. metadata.site_nameis frequently an empty string; rely ontitleinstead.
Caching
Content is served from a crawl cache when possible: cached responses return in well under a second, fresh crawls take one to a few seconds per URL.max_age bounds how old a cached copy may be, and crawl_timeout caps each URLโs fetch time.