localization
Set a country, language, timezone, or geolocation for scraping requests to bypass geo-blocks and retrieve region-specific content or pricing.
Instructions
Use this to scrape geo-restricted content or emulate a specific locale/timezone - region-specific pricing, geo-blocks, searching in another language. Use operation:"configure_country" to set country context for the scraping calls that follow. Not for an ordinary page read (scrape). Cost: 2 credits. Example: localization({operation:"configure_country", countryCode:"DE", language:"de"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL — required for handle_geo_blocking; for auto_detect it is optional metadata used only as a TLD country hint (the page is never fetched) | |
| content | No | Page content (HTML or plain text) to analyze — required for auto_detect; no fetching is performed | |
| currency | No | ISO 4217 currency code (e.g. 'USD', 'EUR') | |
| language | No | Language code (e.g. 'en', 'fr', 'de') | |
| response | No | HTTP response for geo-blocking analysis | |
| timezone | No | IANA timezone identifier (e.g. 'America/New_York') | |
| operation | No | Localization operation to perform | configure_country |
| userAgent | No | Custom user agent string | |
| countryCode | No | ISO 3166-1 alpha-2 country code | |
| geoLocation | No | GPS coordinates for geolocation emulation | |
| searchParams | No | Search parameters for localized search queries | |
| customHeaders | No | Custom HTTP headers for localized requests | |
| proxySettings | No | Proxy configuration for geo-targeted requests | |
| acceptLanguage | No | Accept-Language header value | |
| browserOptions | No | Browser context options for locale emulation |