A Proxy for Scraping Google Maps, and the Sanctioned Places API Route

· Updated:

If you are looking for a proxy for scraping Google Maps, start with the Google Places API: it is the sanctioned way to get business names, addresses, phone numbers and websites from Maps, and Google's terms do not allow scraping Maps content outside its APIs. A proxy does not change those terms or the rate limits. Where a fixed proxy IP does help is in giving your API calls a stable address you can lock your API key to, and in letting you view local results as a user in another country would.

Spread public-data requests over static IPs

Proxy for scraping Google Maps: what is allowed

Google Maps Platform terms restrict scraping, bulk downloading and caching of Maps content outside the services Google provides. Google's general terms also cover automated access to its consumer products. A crawler that loads google.com/maps pages and parses business cards breaks those rules regardless of how many IPs it uses, and the HTML it parses changes without notice.

The Places API exists for exactly this job. Text Search and Nearby Search return places for a query or an area, Place Details returns fields for one place, and each request is billed and limited according to Google's published pricing and the quotas in your Cloud project. You get structured JSON, a clear contract, and no parser to maintain.

Why more IPs do not fix a Maps rate limit

When a scraper hits 429 responses or verification pages on Maps, it is being told to stop. Adding proxies to keep the same request rate is evading that limit, which is against the terms and tends to get whole address ranges blocked. On the API, a 429 means your project quota is used up: wait, back off, or raise the quota in the Cloud console.

What the Places API returns

Fields include place ID, display name, formatted address, location, phone numbers, website, opening hours, rating and many more. You pick the fields with a field mask, and the fields you request affect the price per call, so ask only for what you use. Google's terms limit how long you may store most Places content; place IDs are exempt from that restriction, so store IDs and refresh details when you need them.

Calling the Places API through a fixed proxy IP

If your collector runs from laptops, CI runners or cloud functions with changing addresses, routing API calls through one static proxy gives Google a single, predictable source IP. The example below uses Text Search (New) with a requests Session, pages through results with nextPageToken, de-duplicates by place ID and backs off on 429.

import time
import requests

PROXY = "http://USER:PASS@IP:PORT"
API_KEY = "YOUR_API_KEY"
URL = "https://places.googleapis.com/v1/places:searchText"
FIELDS = ",".join([
    "places.id",
    "places.displayName",
    "places.formattedAddress",
    "places.nationalPhoneNumber",
    "places.websiteUri",
    "nextPageToken",
])

session = requests.Session()
session.proxies = {"http": PROXY, "https": PROXY}
session.headers.update({
    "Content-Type": "application/json",
    "X-Goog-Api-Key": API_KEY,
    "X-Goog-FieldMask": FIELDS,
})


def text_search(query, rectangle=None):
    body = {"textQuery": query, "pageSize": 20}
    if rectangle:
        body["locationRestriction"] = {"rectangle": rectangle}
    backoff = 2
    while True:
        r = session.post(URL, json=body, timeout=20)
        if r.status_code == 429:  # quota exceeded: wait, then retry
            time.sleep(backoff)
            backoff = min(backoff * 2, 120)
            continue
        r.raise_for_status()
        data = r.json()
        yield from data.get("places", [])
        token = data.get("nextPageToken")
        if not token:
            return
        body["pageToken"] = token
        backoff = 2


places = {}
for place in text_search("hardware store in Austin, TX"):
    places[place["id"]] = place  # de-duplicate by place ID

for p in places.values():
    print(p["displayName"]["text"], "|", p.get("formattedAddress"), "|", p.get("websiteUri"))

Install requests and set your key from a secret store rather than in code. Text Search returns at most 20 places per page and, according to Google's documentation, at most 60 across all pages for one query, a limit Google says may change. The general proxy setup is in the Python requests proxy guide.

Restrict your API key to the proxy IP

In the Google Cloud console, API keys can carry an application restriction by IP address. Set it to your proxy's exit IP, and the key stops working from anywhere else, so a leaked key is far less useful to someone who finds it. Add an API restriction too, limiting the key to the Places API. Because the exit IP must not change, this works only with a static proxy that keeps its address on renewal.

Quotas, field masks and backoff

Set per-minute and per-day quotas in your Cloud project so a bug cannot run up a large bill. Keep the field mask minimal, cache place IDs, and request details only for places you will use. On 429, wait and double the wait each time; on other errors, log the response body, which explains the problem.

Covering a whole city without guessing

Because one query returns a limited number of results, cover a large area by splitting it. Text Search accepts a locationRestriction rectangle with low (southwest) and high (northeast) corners for categorical queries such as "hardware store". Divide the city into a grid of rectangles, run the same query per cell, and merge by place ID.

If a cell returns a full set of results, split it into four smaller cells and query again; if it returns few, it is already fine-grained enough. This keeps the number of calls proportional to how dense the area is, which matters when every call is billed.

Nearby Search is the alternative when you want places of given types around a point and radius. Either way, the result is a deduplicated list of place IDs you can enrich with Place Details for only the fields you need.

Other sources of local business data

Maps is not the only source, and for some projects it is not the best one. Consider these before building anything:

  • OpenStreetMap. Open data under the ODbL licence, queryable through the Overpass API; follow the public instances' usage policy or run your own.
  • Official business registries. Many countries publish company registers with addresses and status, often with bulk downloads.
  • Other platform APIs. Review and directory platforms often provide official APIs with their own terms and quotas.
  • Licensed data vendors. Commercial points-of-interest datasets with clear usage rights.
  • Public websites of the businesses themselves. For a small list, visit and collect contact details by hand, respecting each site's robots.txt and terms.

Viewing local results as users in another country see them

A second, legitimate reason to want a proxy with Maps is to look, not collect. If you manage listings for clients in several countries, you may want to see how a search looks from that country, in its language, before reporting to the client.

Note what the IP does and does not change. Maps results depend mostly on the area shown on the map and the words you search for; the IP mainly affects the default country, language and the starting map position. For local rank checks, set the location in the search itself and use the proxy to see the country-level interface. Those checks are manual spot checks, not automated scraping. For broader search-rank work, see proxies for SEO rank tracking.

Where ProxyV4 fits a Maps data project

ProxyV4 sells private datacenter IPv4 in the United States, Vietnam, Japan, South Korea, Singapore, the United Kingdom and Hong Kong, and static ISP proxies in 23 countries. Each IP has one tenant for the whole term and stays the same while the proxy is active; renewing before expiry keeps the address, so an API key restricted to that IP keeps working. Traffic on private IPv4 and static ISP is not metered.

Every proxy supports HTTP(S) and SOCKS5 with username and password, delivered as ip:port:user:pass. On the order's page you choose HTTP only, SOCKS5 only or both on the same port. For other collection jobs, the web scraping proxy page explains how fixed IPs fit public-data work.

Where it does not fit: ProxyV4 is not a tool for scraping Maps pages, and it sells no rotating pools (the rotating line is waitlist only), no mobile proxies and no per-GB plans. IPv6 proxies are a separate product that only works on IPv6-ready sites. Live per-IP prices are on the pricing page, and you can order a single IP, check it with the proxy checker and confirm the address with https://proxyv4.com/api/my-ip before you add it to your key restrictions. A proxy that fails for a technical reason is credited to your balance under the refund policy.

Frequently asked questions

Is it legal to scrape Google Maps?

Google's terms do not allow scraping Maps content outside its APIs, and local law varies. The Places API is the sanctioned route for business data from Maps.

How many results does Places Text Search return?

Up to 20 per page and, per Google's documentation, up to 60 across all pages for one query. Split a large area into smaller rectangles to cover it.

Why use a proxy with the Places API at all?

A static proxy gives your calls one fixed source IP, so you can restrict the API key to that address in the Cloud console. It does not raise your quota.

What should I do when the Places API returns 429?

Your project quota is exhausted for now. Back off and retry later, or raise the quota in the Cloud console; switching IPs does not help because quotas are per project.

Will my proxy IP stay the same so my key restriction keeps working?

Yes. The IP stays the same while the proxy is active, and renewing before expiry keeps the same address.

Spread public-data requests over static IPs

Give your Places API calls and other public-data jobs a fixed private IPv4 address, with HTTP(S) and SOCKS5 on one line. Start with one IP.

See live prices

Related articles

Proxies by platform
Proxies for web scraping: a fixed pool of IPs with unmetered traffic
Web scraping proxies for Python, Scrapy, Playwright and Selenium: a pool of private IPv4 and static ISP addresses, unlimited bandwidth, flat per-IP pricing.
Proxy setup
Python requests through an authenticated proxy, step by step
Send Python requests through an authenticated HTTP(S) proxy: build the proxies dict, attach it to a Session, encode odd passwords, rotate a list, check the IP.
Free tools
Check proxies in bulk: status, exit IP and latency
Free online proxy checker: paste up to 100 ip:port:user:pass lines and see which proxies work, their exit IP and latency, plus what each failure result means.
Knowledge base
Using a Proxy for Google Business Profile Work at a Local SEO Agency
When a proxy for Google Business Profile helps an agency: per-client browser profiles, manager access instead of shared logins, and Google's listing rules.
Knowledge base
Microsoft Ads Proxy Setup for Agencies and In-House Teams
When a Microsoft Ads proxy helps: per-client profiles linked through manager accounts, live ad checks from the target country, and what proxies cannot fix.
Knowledge base
LinkedIn Proxy Setup for Sales and Marketing Teams
A LinkedIn proxy gives each rep's own profile a steady login IP. What LinkedIn's rules allow, how agencies should manage Pages, and how to set one up.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.
Products
Static ISP proxies: residential IPs on consumer networks
Static ISP proxies in 23 countries, from Germany and the UK to the US, Brazil and Japan: fixed IPs on consumer networks, one customer each, unmetered traffic.
Pricing
Proxy prices per IP, by location and volume
Live per-IP rates for private IPv4 in 7 countries and static ISP proxies in 23 countries across Europe, the Americas and Asia-Pacific, with volume discounts.
Knowledge base
What Is a Proxy Server? The Middleman Between You and the Web
What is a proxy? A plain-English explanation of how a proxy server relays your traffic, the ways proxies are classified, their common uses and their limits.