Fetch a URL (POST)
Same as GET /v1/fetch but with a JSON request body.
Authorization
AuthorizationRequiredBearer <token>API key. Obtain from POST /v1/account/api-keys.
In: header
Request Body
application/jsonRequiredurlRequiredstring"uri"formatstring"markdown" | "html"countrystring"US"Pattern: "^[A-Z]{2}$"timeout_msinteger60000Minimum: 1000Maximum: 60000cache_ttlstring | integerHow long a freshly fetched URL may be served from cache. 0 disables caching. Accepts Nh (hours, up to 168h), Nd (days, up to 7d), or the integer 0. Examples: 0, 48h, 2d. Invalid values receive a 422 validation_error with an actionable message.
"48h"customobjectUser-supplied JSON payload, base64-encoded into the X-Fetch-Custom response header so callers can correlate the response back to caller-side state (job IDs, batch metadata, etc.). Capped at 4096 UTF-8 bytes after JSON serialization. Does NOT affect cache-key inputs — two requests differing only in custom share the same cache slot.
{}markdownModestringMarkdown processing mode. Only used when format=markdown.
"article" | "raw" | "llm"markdownQuerystringBM25 query string for relevance-ranked filtering. Only used when format=markdown.
200markdownLinksstringLink rendering style. Only used when format=markdown.
"inline" | "references" | "none"markdownCompactbooleanCompact whitespace output. Only used when format=markdown.
markdownFilterImagesbooleanFilter low-signal images. Only used when format=markdown.
markdownIncludeMediabooleanWhen true, formats.links and formats.images return ScrapeScoredLink[] / ScrapeScoredImage[] (rich objects) instead of string[], and a top-level tables array is included. Only used when format=markdown.
markdownIncludeWarningsbooleanWhen true, includes a top-level warnings array of ScrapeWarning objects. Only used when format=markdown.
markdownIncludeStatsbooleanWhen true, includes a top-level stats object with ScrapeStats (chars, tokens, blocks). Only used when format=markdown.
Content from upstream.
Fetch a URL (GET)
Direct HTTP fetch. The response body IS the content; metadata is returned in X-Fetch-* headers. Omit `format` for raw passthrough. Use `format=markdown` or `format=html` for conversion.
Bulk fetch URLs
Enqueues multiple URLs for fast-path HTTP fetching. Results delivered via webhook. Does not support browser-backed options (cookies, wait_for_selector, etc.).