PINGDOM_CHECK

Scrape from anywhere with Geolocation settings

Use geolocalized requests in Zyte API and increase your data quality and success rates, while keeping costs under control

Cleber Alexandre · Technology Marketing Strategist

6 min read ·

Scrape from anywhere with Geolocation settings

Scrape the web from anywhere and access geoblocked content with Zyte API

Many use cases in web scraping require interacting with localized websites outside your physical location. They can be global websites that display local content based on the user’s browser settings or even local websites that only accept visits from desired locations, flagging visits from certain localities as bot-generated and blocking them.

In both cases, there is a need to use localized proxies — IPs from specific locations, at the country level or even at the city level. Localized proxies, typically Data Center IPs or even Residential IPs, must be connected to the spiders and used in a way that will avoid triggering anti-bot measures while maintaining access to the right content.

This is when Zyte API can be your powerful ally. It offers a seamless blend of a robust automated ban handling system that works on every website and advanced geolocation options using Data Center and Residential IPs.

With Zyte API, you can use localized proxies to fight bans and access geo-blocked content, all while maintaining control over your costs.

Using localized proxies to fight bans

Some websites will use IP location as a “red flag” when detecting bot traffic, often triggering captcha or bans.

A simple way to manage bans for those websites is to learn which locations will be considered normal traffic and activate them in your spiders. When using Zyte API as your proxy rotation management solution, you can activate the localized IP with a single parameter in the code.

Python

1import json
2from base64 import b64decode
3
4import requests
5
6api_response = requests.post(
7    "https://api.zyte.com/v1/extract",
8    auth=("YOUR_API_KEY", ""),
9    json={
10        "url": "http://ip-api.com/json",
11        "httpResponseBody": True,
12        "geolocation": "AU",
13    },
14)
15http_response_body: bytes = b64decode(api_response.json()["httpResponseBody"])
16response_data = json.loads(http_response_body)
17country_code = response_data["countryCode"]
Copy

Using localized proxies to access geo-blocked content

Many websites customize their content depending on the visitor’s location. This is true for e-commerce sites, which might change and convert the currency based on the visitor’s country, or even news websites with multiple translations for each article, or websites that serve personalized ads depending on where the visitor is coming from.

If you are doing web scraping for pricing intelligence, for example, it is crucial to get the prices for the right currency you are mapping, so to do that, you’ll need localized proxies.

Zyte API geolocation feature comes in handy to access localized and global sites with ease. You can configure specific locations for each spider and even access the same website from different locations to get the content they are showing for each place.

A single tool for web scraping with everything you need

Web scraping used to be a multi-tool management effort, needing to integrate multiple solutions to handle its main parts: ban handling, crawling, extracting, and post-processing.

Zyte has been changing the game of web scraping with the launch of Zyte API and the ongoing incorporation of advanced features, making it indeed the first end-to-end solution for web scraping.

When choosing Zyte API’s solution for managing your proxies, you can activate the extended geolocation benefits, our powerful website unblocker, and even some advanced features like a built-in scriptable headless browser, cookies and sessions support, IDE, and more.

Cost control is also one huge benefit of a single-tool approach to web scraping. Zyte API is charged only per request, which will vary depending on the complexity of the website to be unblocked and, of course, the use of some advanced options. Nevertheless, it will always use the cheapest yet most successful proxy for a given website.

How to activate geolocation in Zyte API

When set to default, Zyte API will automatically use a proxy location to access a site, but there are times when you may want to override that default choice and access specific locations for your requests.

Geolocalized requests will force the API to use Data Centers or Residential IPs from the locations you want. Compared to Data Center proxies, Residential proxies are the most expensive ones in our arsenal, so we only engage those when necessary or when it is set by the user.

You can force the geolocation by adding a simple parameter on any of your spiders.

Test Zyte API with free credits

Geolocalized website access can be easily tested in the free trial of Zyte API.

To begin your trial, simply sign up and set up a fresh account. Then, choose a website that requires localized IPs, configure it in your spider code, and run your first requests.

FAQs

How does Zyte API help with geo-blocked content?

Zyte API uses localized proxies, including Data Center and Residential IPs, to bypass restrictions and access region-specific content.

Can I control proxy geolocation for my web scraping projects?

Yes, you can set a geolocation parameter in your spider code to specify the proxy location.

What makes Zyte API a complete web scraping solution?

It combines ban handling, geolocation, crawling, and data extraction with advanced features like a headless browser and cookie management.

Is it expensive to use Residential proxies for geolocation?

Residential proxies are costlier, but Zyte API minimizes costs by defaulting to the cheapest, most successful proxies unless overridden.

How can I try geolocation features on Zyte API?

Sign up for a free trial, configure a geolocalized spider, and test on a site requiring localized IPs.

Try Zyte API

Build your first scraper in minutes

Free trial, no credit card. From a single request to production in an afternoon.

Get started

Cleber Alexandre

Technology Marketing Strategist

With over a decade in B2B marketing, I help readers cut through complexity and see how technology can solve real business problems.

More from this author

Continue reading

Zyte's first Developer Community Meetup: the recap, slides, and recording
Announcement

Zyte's first Developer Community Meetup: the recap, slides, and recording

AI agents can now write, run, and self-heal your web scrapers, and in Zyte's first-ever Web Scraping Community Meetup we show you exactly how. Live demos, a Claude Code plugin that turns a prompt into production-ready data, and a fireside chat on where AI is really heading.

Ayan Pahwa3 min read
Introducing Web Scraping Copilot 1.0: AI-accelerated web scraping inside VS Code
Announcement

Introducing Web Scraping Copilot 1.0: AI-accelerated web scraping inside VS Code

Discover Web Scraping Copilot 1.0, Zyte’s VS Code extension that uses AI to generate, test, and deploy production-ready Scrapy spiders faster while maintaining full developer control.

Mitch Holt10 min read
The importance of data extraction for System Integrators
Announcement

The importance of data extraction for System Integrators

Industry experts say AI-powered solutions are revolutionizing how system integrators tackle complex data integration challenges.

Debbie Reeve-Crook4 min read
Scraping food delivery data from any geo while avoiding IP-based restrictions
Announcement

Scraping food delivery data from any geo while avoiding IP-based restrictions

Geolocation technology is revolutionizing the food delivery industry, enabling platforms to access location-specific data.

Debbie Reeve-Crook3 min read
Now developers can intercept network patterns within Zyte API
Announcement

Now developers can intercept network patterns within Zyte API

Intercepting the website’s network exchange patterns can be particularly useful for optimizing your scraping scripts.

Cleber Alexandre6 min read
From Data to Decisions: Transforming Digital Shelf Analytics with Zyte API
Announcement

From Data to Decisions: Transforming Digital Shelf Analytics with Zyte API

Maximize DSA with Zyte API Web Scraping: Leverage Zyte API's advanced web scraping technology for your DSA needs. Extract precise, scalable data for product positioning, pricing strategies, and market trends analysis. Stay ahead with our legally compliant, flexible, and cost-effective solutions.

Debbie Reeve-Crook4 min read

The Community · Newsletter

The best of Zyte and the data web, in your inbox.

One curated edition — new articles, product updates, and the stories shaping the data web. No noise.