How Proxy Country works
When you specify a country code with theproxy_country
parameter, ZenRows routes your request through a residential IP address located in that country. The target website recognizes your request as coming from a real user in the specified location, enabling you to access geo-restricted content and view localized results.
Proxy Country requires Premium Proxy to be enabled, as only residential IP addresses can provide accurate geolocation. Datacenter proxies cannot reliably represent specific geographic locations.
Basic usage
Enable Proxy Country by adding bothpremium_proxy=true
and proxy_country
parameters to your request:
Common use cases
E-commerce price monitoring
Monitor pricing across different regions:Python
Search engine localization
Get search results as they appear in different countries:Python
Content availability testing
Check if content is accessible from different regions:Python
Best practices
Choose appropriate countries
Select countries based on your specific needs:- US (
us
) - For American content - GB (
gb
) - For UK-specific results - DE (
de
) - For German/EU content - JP (
jp
) - For Japanese content data - CA (
ca
) - For Canadian content
See our complete list of countries here!
Handle region-specific layouts
Some websites serve different HTML structures by region:Python
Implement country fallbacks
If a specific country doesn’t work, try alternatives:Python
Troubleshooting
Common issues and solutions
Issue | Cause | Solution |
---|---|---|
Content still geo-blocked | Website blocks entire regions | Try neighboring countries or different continents |
Different layout than expected | Region-specific website versions | Update CSS selectors for each region |
Slower response times | Distance from target servers | Choose countries closer to the website’s servers |
Inconsistent results | Regional content variations | Implement region-specific data extraction logic |
Debugging geo-restrictions
When content remains blocked despite using Proxy Country:1
Try multiple countries in the same region
Python
2
Check if the entire region is blocked
Python
3
Combine with additional features
- js_render: Makes the request act like a headles browser
- wait_for: Waits for a specific CSS element on the target url
- custom_headers: Enable using custom headers on the request
Python
Pricing
Proxy Country doesn’t increase the request cost. You pay the Premium Proxy (10 times the standard price) regardless of the country you choose.Frequently Asked Questions (FAQ)
Can I use Proxy Country without Premium Proxy?
Can I use Proxy Country without Premium Proxy?
How accurate is the geolocation?
How accurate is the geolocation?
ZenRows utilizes genuine residential IP addresses from ISPs in each country, ensuring highly accurate geolocation that websites recognize as legitimate traffic from those specific regions.
Can I specify a city or state within a country?
Can I specify a city or state within a country?
Currently, ZenRows supports country-level geolocation only. You cannot specify specific cities or states within a country.
What happens if a country is unavailable?
What happens if a country is unavailable?
Do different countries have different success rates?
Do different countries have different success rates?
Yes, success rates can vary by country depending on the target website’s blocking policies and the quality of residential IP pools in each region. Monitor your success rates and adjust accordingly.
Can I use the same country for all requests in a session?
Can I use the same country for all requests in a session?
Yes, you can use the same country consistently. However, some websites may still detect patterns, so consider rotating between countries in the same region if needed.