Premium Proxies

Some websites implement strict anti-scraping measures that block standard datacenter IPs, making it difficult to extract content. Premium Proxies provide a reliable solution by using residential IPs sourced directly from Internet Service Providers (ISPs), which are much harder for sites to detect and block.

To use Premium Proxies with ZenRows®, simply add the parameter premium_proxy=true to your request. This will ensure that a residential IP is used, significantly increasing the chances of successful scraping, especially on websites with robust security.

# pip install requests
import requests

url = 'https://httpbin.io/anything'
apikey = 'YOUR_ZENROWS_API_KEY'
params = {
    'url': url,
    'apikey': apikey,
	'premium_proxy': 'true',
}
response = requests.get('https://api.zenrows.com/v1/', params=params)
print(response.text)

Geolocation

Sometimes, the content you’re trying to scrape is region-restricted, meaning it’s only available in specific countries or regions. Geolocation allows you to choose the country from which the request is made, giving you access to geo-restricted content. ZenRows supports over 190+ countries, providing broad global coverage.

To enable geolocation, add the parameter proxy_country with the country code of your choice (e.g., proxy_country=es for Spain) along with premium_proxy=true. Geolocation requires Premium Proxies to be enabled, as datacenter IPs cannot be geolocated with accuracy.

# pip install requests
import requests

url = 'https://httpbin.io/anything'
apikey = 'YOUR_ZENROWS_API_KEY'
params = {
    'url': url,
    'apikey': apikey,
	'premium_proxy': 'true',
	'proxy_country': 'es',
}
response = requests.get('https://api.zenrows.com/v1/', params=params)
print(response.text)

By using the proxy_country parameter, ZenRows® will route your request through a residential proxy in the specified country, helping you access region-specific content seamlessly.

When to Use Geolocation

Geolocation is particularly useful in these scenarios:

  1. Location-restricted content - Viewing content only available in certain countries
  2. Regional pricing - Accessing country-specific pricing for products or services
  3. Local search results - Getting search engine results as they appear in specific regions
  4. Compliance testing - Testing how your own website appears to users in different countries

Troubleshooting

Common Issues and Solutions

IssueSolution
Blocked despite Premium Proxy1. Try a different country
2. Add JS Render
3. Add a longer wait time
4. Use custom headers with a valid referer like Google or Bing
Request taking too long1. Try to use geolocation or, if using it, a different country.
2. If using a wait_for parameter, review that the element is present in the page - even in less common cases like Not Found pages.
Inconsistent results by regionSome sites serve different layouts by region. You may need different CSS selectors for each country.
Content still geo-blockedTry several different countries as some sites block entire regions, not just single countries.

Frequently Asked Questions (FAQ)