sharedParams.country for a country-specific fetch. sharedParams.headers sends HTTP headers to the target site and bypasses caching.
Fetch a localized page
Send this body toPOST /web/scrape. See the Quickstart for authentication and SDK setup.
Country
Use a supported two-letter ISO 3166-1 code. Codes are case-insensitive and apply to page fetches and image downloads. An unsupported code returns 400; the reference lists accepted values.Target headers
Send at most 50 headers. Names must be unique and at most 256 characters; values at most 8,192 characters with no line breaks. Host, Content-Length, and transport headers such as Connection and Transfer-Encoding are rejected. UseReferer for an image that requires a referring page. Use Cookie or Authorization only for a target you are authorized to access. Your Context.dev API key belongs in the request’s Authorization header, outside sharedParams.
Credentials are stripped when a redirect changes origin. A blocked target can return failed outputs in HTTP 200; a restricted domain can return 403 FORBIDDEN. See error handling.