Country

Adding a cc flag to the authorization header enables one to specify which country IP to use to process the request. The value of this parameter is a case insensitive country code in 2-letter 3166-1 alpha-2 format. For example, DE for Germany, GB for the United Kingdom, and TH for Thailand proxy. See the examples for more details.

Here are a few examples of country parameters: cc-US cc-IT cc-TH cc-JP cc-AU cc-ES

Code example

In this example, a query to ip.oxylabs.io/location is performed from a random IP address from Germany:

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ip.oxylabs.io/location

Last updated