Skip to main content
Get a list of available countries

Use the Proxyrack API to retrieve a list of available countries for geo-targeting

K
Written by Katy
Updated over a month ago

Video guide here.

You can use the Proxyrack API to retrieve a list of the available countries to geo-target for any service. In order to do this, you will need to make a request through your proxies to "api.proxyrack.net/v1-beta/countries".

You can also see the number of IPs available in each country. In order to see the proxy count for each country in the API response, you will need to make a request through your proxies to "api.proxyrack.net/v1-beta/countries?includeCount=true".

Additionally, you can specify the geolocation database you would like to use by making a request to the following API endpoint: "api.proxyrack.net/v1-beta/countries?includeCount=true&geoDb={database name}". For example, to use ipinfo.io as your geolocation database, the API endpoint would be "http://api.proxyrack.net/v1-beta/countries?includeCount=true&geoDb=ipinfo".

Please note that cURL is used below as an example. You do not need to use cURL in order to make a request to this API endpoint. You can do this wherever you have configured your proxies, such as in a browser, code, etc.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
curl -x unmetered.residential.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

curl -x unmetered.residential.proxyrack.net:10000 -U username:password "api.proxyrack.net/v1-beta/countries/?includeCount=true"

Premium Residential:
curl -x premium.residential.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

curl -x premium.residential.proxyrack.net:10000 -U username:password "api.proxyrack.net/v1-beta/countries?includeCount=true"

Private Unmetered Residential:
curl -x private.residential.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

curl -x private.residential.proxyrack.net:10000 -U username:password "api.proxyrack.net/v1-beta/countries?includeCount=true"

USA Rotating Datacenter:
curl -x usa.rotating.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

curl -x usa.rotating.proxyrack.net:10000 -U username:password "api.proxyrack.net/v1-beta/countries?includeCount=true"

Global Rotating Datacenter:
curl -x global.rotating.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

curl -x global.rotating.proxyrack.net:10000 -U username:password "api.proxyrack.net/v1-beta/countries?includeCount=true"

Static USA Datacenter:
curl -x usa.static.proxyrack.net:10000 -U username:password api.proxyrack.net/v1-beta/countries

Result:

{
"AU": {},
"BZ": {},
"CZ": {},
"DE": {},
"FR": {},
"GB": {},
"IN": {},
"NL": {},
"SC": {},
"SE": {},
"US": {}
}

Result (with "?includeCount=true"):

{
"AU": {
"proxyCount": 508
},
"BZ": {
"proxyCount": 1012
},
"CZ": {
"proxyCount": 1778
},
"DE": {
"proxyCount": 1016
},
"FR": {
"proxyCount": 1267
},
"GB": {
"proxyCount": 3044
},
"IN": {
"proxyCount": 254
},
"NL": {
"proxyCount": 254
},
"SC": {
"proxyCount": 1
},
"SE": {
"proxyCount": 254
},
"US": {
"proxyCount": 7092
}
}
Did this answer your question?