Geolocation

Using the API’s country HTTP GET parameter you can choose a specific country by its 2-letter country code for your scraping request. Please find an example API request on the right side, which specifies US (for United States) as a proxy location using the default data center proxies.

Free and start plan users don’t have access to geolocation targeting, a random country data center IP is assigned to the request.

Grow plan users can only select US (United States) geolocation targeting, if no country is specified a random country data center IP is assigned to the request.

Business and Enterprise can access all geolocation targeting options.

Data Center Proxies Supported Countries

For datacenter proxies, the API currently supports a total of 10 global geolocations: United States (us), Canada (ca), United Kingdom (gb), Germany (de), France (fr), Spain (es), Mexico (mx), Japan (jp), China (cn), and Australia (au).

Residential Proxies Supported Countries

For premium (residential) proxies, the API currently supports a total of 12 global geolocations. The list includes United Kingdom (gb), United States of America (us), Canada (ca), Germany (de), France (fr), Japan (jp), China (cn), Australia (au), Spain (es), Brazil (br), India (in) & Mexico (mx).

Access to 195 countries is available to Enterprise customers upon request.

Geolocation examples

Geolocation

Geolocation can be specified with the country parameter.
GET external-link
https://api.webscrapingapi.com/v1?api_key={{api_key}}&url=https://httpbin.org/get&country=us&proxy_type=datacenter
Code to integrate
external-link
Response Example external-link
{
    "args": {},
    "headers": {
        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "Accept-Encoding": "gzip, deflate, br",
        "Host": "httpbin.org",
        "Upgrade-Insecure-Requests": "1",
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.0 Safari/537.36",
        "X-Amzn-Trace-Id": "Root=1-6267dc58-3027016b3e1d2f936ac7a94f"
    },
    "origin": "192.3.214.245",
    "url": "https://httpbin.org/get"
}