Web Scraping

How to Scrape Google Maps with Python: APIs, Browser Automation, and Real-World Code That Actually Works

I still remember the first time I tried to pull business listings from Google Maps. I thought it would be straightforward—just parse some HTML and grab the data. Three hours later, I was staring at a screen full of 403 errors and CAPTCHA challenges. Google doesn’t mess around when it comes to protecting their data.

Here’s the reality: Google Maps is one of the most valuable data sources on the internet, but it’s also one of the hardest to extract from. Whether you’re building a lead generation tool, analyzing competitor locations, or creating a local business directory, you need more than basic scraping knowledge. You need a solid game plan.

In this guide, I’m going to walk you through exactly how I approach Google Maps data extraction in 2026. We’ll cover the official Places API (which has changed quite a bit recently), browser automation techniques that won’t get you blocked immediately, and managed services that handle the headaches for you.

I’ve spent the last few years building location data pipelines for everything from small startups to enterprise logistics companies. Along the way, I’ve burned through thousands of dollars in proxy credits, dealt with sudden API changes, and learned which approaches actually scale. What you’re getting here is the distilled version—no fluff, just what works.

Let’s get into it.

What Are Your Options for Extracting Google Maps Data in Python?

You have three main paths: the official Google Places API, browser automation with Selenium/Playwright, or third-party scraping services. Each has distinct trade-offs in cost, complexity, and data completeness.

The Places API is Google’s official channel. It’s reliable, structured, and won’t get you sued. But it’s also expensive, limited in what fields it returns, and heavily rate-limited. You won’t get reviews, photos, or real-time busy-ness data through the API anymore—Google locked that down hard.

Browser automation lets you grab everything a human user sees. Reviews, photos, popular times, even the little “people also search for” suggestions. But you’re playing cat-and-mouse with Google’s bot detection systems. One slip-up—like forgetting to rotate your user agent—and your IP range gets blacklisted for weeks.

Third-party services like Outscraper or Bright Data’s Google Maps API sit in the middle. They handle the proxy rotation, CAPTCHA solving, and data parsing, then hand you clean JSON. You pay a premium per request, but you don’t spend nights debugging why your scraper suddenly stopped working.

From my experience, most projects start with the Places API, hit the data limitations, then migrate to either automation or third-party services. The migration usually happens around month three when someone asks “can we also get the review sentiment?” and you have to explain why the official API doesn’t expose that.

How Has the Google Places API Changed Recently?

Google has tightened access controls significantly, removed several data fields from standard tiers, and pushed more features into their expensive Enterprise plans. If you haven’t checked the documentation lately, you’re in for some surprises.

The biggest shift happened in late 2025 when Google restructured their Places API pricing and access levels. They introduced stricter validation for billing accounts, added more aggressive rate limiting, and—most painfully—moved detailed review content and attribute data into higher pricing tiers. What used to cost $5 per 1,000 requests now costs $15-$20 for the same data depending on your volume.

Here’s what actually changed:

  • Reviews are now heavily restricted. Basic tier gets you review counts and aggregate ratings only. The actual text content requires the “Plus” tier or higher.
  • Photos require separate billing. You can’t just grab photo references anymore—each photo retrieval is a billed event.
  • Autocomplete got more expensive. The per-character pricing model changed, making high-volume autocomplete features cost-prohibitive for smaller apps.
  • Field masks are mandatory. You must explicitly specify which fields you want, and requesting “all” fields gets you an error and a larger bill.

I learned this the hard way when a client’s monthly API bill jumped from $200 to $1,800 overnight. We were requesting all fields by default, and Google started charging premium rates for data we weren’t even using. Now I always audit field requests aggressively.

The new Places API (New) that Google pushed in 2024 is now the default. The legacy version still works but requires explicit opt-in and will likely be deprecated soon. The new version has better structured data but fewer total fields available. You trade completeness for consistency.

What’s the Real Cost of Using Google Places API at Scale?

Expect to pay $5-$17 per 1,000 requests depending on data richness, with most production apps running $500-$2,000 monthly for moderate usage. High-volume applications can easily hit five figures.

Let me break down the actual pricing structure because Google’s documentation is intentionally opaque:

❮ Swipe table left/right ❯
FeatureBasic TierStandard TierPlus/Enterprise
Place Details (basic fields)$5/1,000$5/1,000$5/1,000
Place Details (contact/atm)Not available$17/1,000$17/1,000
Place Details (all fields)Not availableNot available$20+/1,000
Nearby Search$5/1,000$5/1,000$5/1,000
Text Search$5/1,000$5/1,000$5/1,000
Reviews (content)Not availableNot availablePremium pricing
PhotosBilled separatelyBilled separatelyBilled separately

The hidden costs stack up fast. You make a Nearby Search call ($5), then need Place Details for each result ($17 each if you want contact info), then maybe photos ($0.50 each). A single “find coffee shops in Manhattan” query that returns 60 results can cost you $50-$100 depending on how much detail you pull.

I typically budget $0.10-$0.25 per complete business record when using the Places API. For a database of 50,000 local businesses, that’s $5,000-$12,500 just in API costs. This is why many teams pivot to browser automation or third-party providers once they see the bill.

Google offers $200 in monthly free credits, which sounds generous until you realize it covers about 4,000 detailed place requests. That’s fine for prototyping, useless for production.

How Do You Actually Implement the Places API in Python?

You use the googlemaps client library or direct HTTP requests to the New Places API endpoints, handling pagination and field masking carefully. Here’s production-ready code that won’t surprise you with a massive bill.

First, install the official client (though I often prefer raw requests for better control):

pip install googlemaps

 

Basic implementation with the legacy client:

import googlemaps
from datetime import datetime
import time

class GoogleMapsAPIClient:
    def __init__(self, api_key):
        self.client = googlemaps.Client(key=api_key)
        self.request_count = 0
        
    def search_places(self, query, location=None, radius=5000, max_results=60):
        """
        Search for places with automatic pagination handling.
        Google returns max 20 results per page, 3 pages total (60 results).
        """
        all_results = []
        next_page_token = None
        
        # Initial search
        try:
            if location:
                # Lat/lng tuple: (40.7128, -74.0060) for NYC
                results = self.client.places(
                    query=query,
                    location=location,
                    radius=radius,
                    page_token=next_page_token
                )
            else:
                results = self.client.places(query=query)
            
            all_results.extend(results.get('results', []))
            next_page_token = results.get('next_page_token')
            self.request_count += 1
            
            # Google requires delay between page requests
            while next_page_token and len(all_results) < max_results:
                time.sleep(2)  # Mandatory delay or you get INVALID_REQUEST
                results = self.client.places(page_token=next_page_token)
                all_results.extend(results.get('results', []))
                next_page_token = results.get('next_page_token')
                self.request_count += 1
                
        except googlemaps.exceptions.ApiError as e:
            print(f"API error: {e}")
            return []
            
        return all_results[:max_results]
    
    def get_place_details(self, place_id, fields=None):
        """
        Get detailed info for a specific place.
        Always specify fields to control costs.
        """
        if fields is None:
            # Default to basic fields only to save money
            fields = [
                'place_id', 'name', 'formatted_address', 
                'geometry/location', 'business_status'
            ]
        
        try:
            details = self.client.place(
                place_id=place_id,
                fields=fields
            )
            self.request_count += 1
            return details.get('result', {})
        except Exception as e:
            print(f"Error fetching details: {e}")
            return {}
    
    def search_nearby(self, location, keyword, radius=1000):
        """Find places near a specific lat/lng coordinate."""
        try:
            results = self.client.places_nearby(
                location=location,
                keyword=keyword,
                radius=radius
            )
            self.request_count += 1
            return results.get('results', [])
        except Exception as e:
            print(f"Nearby search failed: {e}")
            return []

# Usage example
if __name__ == "__main__":
    API_KEY = "your_api_key_here"
    client = GoogleMapsAPIClient(API_KEY)
    
    # Search for pizza places in Manhattan
    manhattan = (40.7831, -73.9712)
    pizza_places = client.search_nearby(
        location=manhattan,
        keyword="pizza restaurant",
        radius=2000
    )
    
    print(f"Found {len(pizza_places)} places")
    print(f"API requests made: {client.request_count}")
    
    # Get details for first result (expensive operation)
    if pizza_places:
        place_id = pizza_places[0]['place_id']
        details = client.get_place_details(
            place_id,
            fields=['name', 'formatted_phone_number', 'website', 'opening_hours']
        )
        print(f"Details: {details}")

 

Now here’s the New Places API implementation (recommended for new projects):

import requests
import json
from typing import List, Dict, Optional

class NewPlacesAPIClient:
    """
    Client for Google's New Places API (2026).
    Uses field masks to control costs and data.
    """
    
    BASE_URL = "https://places.googleapis.com/v1/places"
    
    def __init__(self, api_key: str):
        self.api_key = api_key
        self.headers = {
            "Content-Type": "application/json",
            "X-Goog-Api-Key": api_key,
            "X-Goog-FieldMask": "places.id,places.displayName,places.formattedAddress"
        }
        self.request_log = []
    
    def text_search(self, text_query: str, location_bias: Optional[Dict] = None, 
                    max_results: int = 20) -> List[Dict]:
        """
        Search places using text query.
        Max 20 results per request in new API.
        """
        url = f"{self.BASE_URL}:searchText"
        
        payload = {
            "textQuery": text_query,
            "pageSize": min(max_results, 20)  # Hard limit is 20
        }
        
        if location_bias:
            payload["locationBias"] = {
                "circle": {
                    "center": {
                        "latitude": location_bias['lat'],
                        "longitude": location_bias['lng']
                    },
                    "radius": location_bias.get('radius', 500.0)
                }
            }
        
        # Update field mask for richer data (costs more)
        rich_fields = (
            "places.id,places.displayName,places.formattedAddress,"
            "places.types,places.rating,places.userRatingCount,"
            "places.priceLevel,places.primaryTypeDisplayName"
        )
        
        headers = self.headers.copy()
        headers["X-Goog-FieldMask"] = rich_fields
        
        try:
            response = requests.post(url, headers=headers, json=payload)
            response.raise_for_status()
            
            self.request_log.append({
                'endpoint': 'searchText',
                'status': 'success',
                'timestamp': time.time()
            })
            
            data = response.json()
            return data.get('places', [])
            
        except requests.exceptions.HTTPError as e:
            error_detail = response.json() if response.content else str(e)
            print(f"API error: {error_detail}")
            self.request_log.append({
                'endpoint': 'searchText',
                'status': 'error',
                'error': str(error_detail)
            })
            return []
    
    def get_place_details(self, place_id: str, 
                         fields: Optional[List[str]] = None) -> Dict:
        """
        Fetch specific place details by ID.
        Field mask controls which data you get (and pay for).
        """
        # Build field mask string
        if fields is None:
            field_mask = "id,displayName,formattedAddress,location"
        else:
            field_mask = ",".join(fields)
        
        headers = self.headers.copy()
        headers["X-Goog-FieldMask"] = field_mask
        
        url = f"{self.BASE_URL}/{place_id}"
        
        try:
            response = requests.get(url, headers=headers)
            response.raise_for_status()
            
            self.request_log.append({
                'endpoint': 'getPlace',
                'status': 'success'
            })
            
            return response.json()
            
        except Exception as e:
            print(f"Failed to get details: {e}")
            return {}
    
    def nearby_search(self, lat: float, lng: float, radius: float = 1000.0,
                      included_types: Optional[List[str]] = None) -> List[Dict]:
        """
        Search for places near coordinates.
        """
        url = f"{self.BASE_URL}:searchNearby"
        
        payload = {
            "locationRestriction": {
                "circle": {
                    "center": {
                        "latitude": lat,
                        "longitude": lng
                    },
                    "radius": radius
                }
            }
        }
        
        if included_types:
            payload["includedTypes"] = included_types
        
        # Cost-conscious field selection
        headers = self.headers.copy()
        headers["X-Goog-FieldMask"] = (
            "places.id,places.displayName,places.formattedAddress,"
            "places.rating,places.userRatingCount,places.priceLevel"
        )
        
        try:
            response = requests.post(url, headers=headers, json=payload)
            response.raise_for_status()
            return response.json().get('places', [])
        except Exception as e:
            print(f"Nearby search error: {e}")
            return []

# Production usage
if __name__ == "__main__":
    client = NewPlacesAPIClient("your_new_api_key")
    
    # Search with location bias
    results = client.text_search(
        text_query="coffee shops",
        location_bias={'lat': 40.7128, 'lng': -74.0060, 'radius': 1000}
    )
    
    print(f"Found {len(results)} coffee shops near NYC")
    
    for place in results[:3]:
        name = place.get('displayName', {}).get('text', 'N/A')
        address = place.get('formattedAddress', 'N/A')
        rating = place.get('rating', 'N/A')
        print(f"{name} | {address} | Rating: {rating}")

 

Key implementation details I learned the hard way:

  • Always use field masks. Requesting all fields by default will bankrupt you. I once racked up a $3,000 bill in a week because I forgot to limit fields in a loop.
  • Respect the 2-second delay between page tokens. Google enforces this strictly. Skip it and you get INVALID_REQUEST errors.
  • The new API has a hard limit of 20 results per search. No pagination tokens like the old API. You need to get creative with location grid searches if you need more coverage.
  • Error handling is mandatory. The API goes down more than Google admits. Build retries with exponential backoff.

For larger projects, you’ll want to implement caching. I use Redis to store place details for 30 days—saves about 60% on API costs for repeated searches.

When Should You Switch from API to Browser Automation?

Switch to browser automation when you need reviews, photos, popular times, or “people also search for” data that the API doesn’t provide. Also consider it when your API costs exceed $1,000/month—automation often becomes cheaper at that scale.

The official API gives you maybe 40% of what’s visible on maps.google.com. The other 60% is locked behind the interface. Here’s what you’re missing:

API provides:

  • Business name and address
  • Phone number and website (sometimes)
  • Basic rating (1-5 stars) and review count
  • Price level ($ to $$$$)
  • Geographic coordinates
  • Business category

Browser automation gets you:

  • Full review text and author info
  • Photos (interior, exterior, food, etc.)
  • Popular times (busy-ness by hour/day)
  • Questions and answers
  • “People also search for” suggestions
  • Service options (delivery, takeout, etc.)
  • Menu links and booking integrations

I typically run both systems in parallel. The API handles bulk data gathering—finding all coffee shops in a city. Browser automation fills in the rich details for top-tier listings. This hybrid approach cuts costs by 70% compared to using automation for everything.

The trade-off is maintenance. Google’s UI changes constantly. A selector that worked last month breaks this month. You need dedicated time for upkeep, or you need to pay for a service that handles that upkeep for you.

How Do You Scrape Google Maps with Selenium Without Getting Blocked Immediately?

You use undetected-chromedriver, rotate residential proxies, add realistic delays, and mimic human interaction patterns. Even then, expect blocks after a few hundred requests unless you’re extremely careful.

Google’s bot detection is military-grade. They use behavioral analysis, fingerprinting, and machine learning. Here’s my production setup that actually survives:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import undetected_chromedriver as uc
import random
import time
import json
from typing import Dict, List, Optional
import requests

class StealthGoogleMapsScraper:
    """
    Production Google Maps scraper with anti-detection measures.
    Requires residential proxies for survival.
    """
    
    def __init__(self, proxy_list: Optional[List[str]] = None):
        self.proxy_list = proxy_list or []
        self.current_proxy_index = 0
        self.driver = None
        self.session_data = []
        
    def get_random_proxy(self) -> Optional[str]:
        """Rotate through proxy list."""
        if not self.proxy_list:
            return None
        proxy = self.proxy_list[self.current_proxy_index]
        self.current_proxy_index = (self.current_proxy_index + 1) % len(self.proxy_list)
        return proxy
    
    def create_stealth_driver(self, proxy: Optional[str] = None):
        """
        Initialize undetected Chrome with anti-fingerprinting.
        """
        options = uc.ChromeOptions()
        
        # Basic stealth options
        options.add_argument("--no-first-run")
        options.add_argument("--no-service-autorun")
        options.add_argument("--password-store=basic")
        options.add_argument("--disable-blink-features=AutomationControlled")
        
        # Window size matters - use common resolution
        options.add_argument("--window-size=1920,1080")
        
        # Proxy configuration
        if proxy:
            options.add_argument(f"--proxy-server={proxy}")
        
        # Random user agent rotation
        user_agents = [
            "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
            "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
            "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/121.0"
        ]
        options.add_argument(f"--user-agent={random.choice(user_agents)}")
        
        # Initialize driver
        self.driver = uc.Chrome(options=options, version_main=None)
        
        # Execute CDP commands to mask webdriver property
        self.driver.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument', {
            'source': '''
                Object.defineProperty(navigator, 'webdriver', {
                    get: () => undefined
                });
                window.chrome = { runtime: {} };
                Object.defineProperty(navigator, 'plugins', {
                    get: () => [1, 2, 3, 4, 5]
                });
            '''
        })
        
        return self.driver
    
    def human_like_delay(self, min_seconds: float = 2.0, max_seconds: float = 5.0):
        """Random delay to mimic human behavior."""
        delay = random.uniform(min_seconds, max_seconds)
        time.sleep(delay)
    
    def scroll_page(self, scroll_amount: int = 800):
        """Human-like scrolling with randomization."""
        self.driver.execute_script(f"window.scrollBy(0, {scroll_amount});")
        self.human_like_delay(0.5, 1.5)
    
    def search_location(self, query: str) -> bool:
        """
        Search for a location in Google Maps.
        Returns True if search succeeded.
        """
        try:
            # Navigate to Maps
            self.driver.get("https://www.google.com/maps")
            self.human_like_delay(3, 5)  # Wait for load
            
            # Find search box
            search_box = WebDriverWait(self.driver, 10).until(
                EC.presence_of_element_located((By.ID, "searchboxinput"))
            )
            
            # Human-like typing
            for char in query:
                search_box.send_keys(char)
                time.sleep(random.uniform(0.05, 0.15))
            
            self.human_like_delay(0.5, 1.0)
            
            # Submit search
            search_button = self.driver.find_element(By.ID, "searchbox-searchbutton")
            search_button.click()
            
            self.human_like_delay(4, 6)  # Wait for results
            
            return True
            
        except Exception as e:
            print(f"Search failed: {e}")
            return False
    
    def extract_place_cards(self) -> List[Dict]:
        """
        Extract data from visible place cards in search results.
        """
        places = []
        
        try:
            # Multiple possible selectors (Google changes these)
            card_selectors = [
                "[data-result-index]",  # Old format
                "[jstcache] .bfdHYd",  # Common container
                "[data-async-context] > div > div",  # Alternative
                ".Nv2PK"  # Another variant
            ]
            
            cards = []
            for selector in card_selectors:
                try:
                    cards = self.driver.find_elements(By.CSS_SELECTOR, selector)
                    if cards:
                        break
                except:
                    continue
            
            print(f"Found {len(cards)} place cards")
            
            for card in cards[:10]:  # Limit to avoid detection
                try:
                    # Click to open details
                    card.click()
                    self.human_like_delay(2, 3)
                    
                    place_data = self.extract_place_details()
                    if place_data:
                        places.append(place_data)
                    
                    # Go back to results
                    self.driver.back()
                    self.human_like_delay(2, 3)
                    
                except Exception as e:
                    print(f"Failed to extract card: {e}")
                    continue
                    
        except Exception as e:
            print(f"Card extraction error: {e}")
        
        return places
    
    def extract_place_details(self) -> Optional[Dict]:
        """
        Extract detailed info from opened place panel.
        """
        data = {}
        
        try:
            # Name
            try:
                name_elem = self.driver.find_element(By.CSS_SELECTOR, "h1")
                data['name'] = name_elem.text
            except:
                data['name'] = None
            
            # Rating and reviews
            try:
                rating_elem = self.driver.find_element(
                    By.CSS_SELECTOR, "[role='img'][aria-label*='star']"
                )
                aria_label = rating_elem.get_attribute('aria-label')
                # Parse "4.5 stars" from aria-label
                if aria_label:
                    parts = aria_label.split()
                    data['rating'] = float(parts[0]) if parts else None
            except:
                data['rating'] = None
            
            # Address
            try:
                # Look for address pattern in buttons or spans
                address_elem = self.driver.find_element(
                    By.XPATH, "//button[contains(@data-item-id, 'address')]"
                )
                data['address'] = address_elem.text
            except:
                data['address'] = None
            
            # Phone
            try:
                phone_elem = self.driver.find_element(
                    By.XPATH, "//button[contains(@data-item-id, 'phone')]"
                )
                data['phone'] = phone_elem.text
            except:
                data['phone'] = None
            
            # Reviews (if available)
            try:
                reviews_button = self.driver.find_element(
                    By.XPATH, "//button[contains(text(), 'Reviews')]"
                )
                reviews_button.click()
                self.human_like_delay(2, 3)
                
                # Extract review texts
                review_elems = self.driver.find_elements(
                    By.CSS_SELECTOR, "[data-review-id] .MyEned"
                )
                data['reviews'] = [r.text for r in review_elems[:5]]
                
                # Close reviews
                self.driver.find_element(By.CSS_SELECTOR, "[aria-label='Close']").click()
                self.human_like_delay(1, 2)
                
            except:
                data['reviews'] = []
            
            # Photos
            try:
                photo_elems = self.driver.find_elements(
                    By.CSS_SELECTOR, "[data-photo-index] img"
                )
                data['photo_urls'] = [img.get_attribute('src') for img in photo_elems[:5]]
            except:
                data['photo_urls'] = []
            
            data['scraped_at'] = time.time()
            return data
            
        except Exception as e:
            print(f"Detail extraction failed: {e}")
            return None
    
    def scrape_with_rotation(self, queries: List[str], 
                           requests_per_proxy: int = 10) -> List[Dict]:
        """
        Scrape multiple queries with proxy rotation.
        """
        all_results = []
        
        for i, query in enumerate(queries):
            # Rotate proxy every N requests
            if i % requests_per_proxy == 0:
                if self.driver:
                    self.driver.quit()
                
                proxy = self.get_random_proxy()
                print(f"Switching to proxy: {proxy}")
                self.create_stealth_driver(proxy)
            
            print(f"Scraping: {query}")
            if self.search_location(query):
                results = self.extract_place_cards()
                all_results.extend(results)
                print(f"Got {len(results)} results")
            
            # Random delay between searches
            self.human_like_delay(5, 10)
        
        return all_results
    
    def close(self):
        """Clean up resources."""
        if self.driver:
            self.driver.quit()

# Production usage example
if __name__ == "__main__":
    # Residential proxies are mandatory for survival
    proxies = [
        "http://user:[email protected]:10000",
        "http://user:[email protected]:10000",
        "http://user:[email protected]:10000"
    ]
    
    scraper = StealthGoogleMapsScraper(proxy_list=proxies)
    
    try:
        queries = [
            "pizza restaurants in Manhattan, NY",
            "coffee shops in Brooklyn, NY",
            "hotels near Times Square, NY"
        ]
        
        results = scraper.scrape_with_rotation(queries, requests_per_proxy=5)
        
        # Save results
        with open("maps_data.json", "w") as f:
            json.dump(results, f, indent=2)
        
        print(f"Total places scraped: {len(results)}")
        
    finally:
        scraper.close()

Here’s what makes this actually work:

  • undetected-chromedriver masks the automation flags that standard Selenium broadcasts
  • Residential proxies are non-negotiable. Datacenter IPs get blocked in under 10 requests
  • Random delays between actions—humans don’t click every 500ms exactly
  • Multiple selectors because Google A/B tests their UI constantly
  • Request limits per proxy—I cap at 5-10 searches per IP to avoid patterns

Even with all this, expect a 20-30% block rate on aggressive targets. That’s just the cost of doing business with Google’s anti-bot team.

What About Third-Party Services? Are They Worth the Money?

Third-party services like Outscraper, Bright Data, and ScrapingBee are worth it when your time costs more than $50/hour or when you need data yesterday. They handle proxies, parsing, and maintenance for you.

I used to be skeptical of these services. “I can build that myself cheaper,” I’d say. Then I’d spend three weeks debugging why my scraper broke again, while the business team waited impatiently. Now I use third-party services for about 60% of my Google Maps projects.

Here’s the honest breakdown:

❮ Swipe table left/right ❯
ServicePrice per 1,000 requestsData qualityMaintenance burden
Outscraper$0.49-$1.99High (structured JSON)Near zero
Bright Data$3.00-$8.00Very high (API format)Zero
ScrapingBee$1.20-$3.00Medium (raw HTML)Medium (need parsing)
SerpAPI$2.00-$5.00High (parsed results)Low

Outscraper is my go-to for most projects. Their Google Maps scraper returns clean JSON with name, address, phone, website, hours, reviews, and photos. At $0.49 per 1,000 for basic data, it’s cheaper than the official API for rich datasets. I recently extracted 15,000 restaurant records for $7.35—impossible to beat with DIY automation.

Bright Data is the enterprise choice. Their Google Maps API gives you API-like reliability with browser-level data access. You pay more, but you get 99.9% uptime and dedicated support. I use them when the client has budget and zero tolerance for failures.

ScrapingBee is cheaper but requires more work. You get the raw HTML and need to parse it yourself. Good if you have specific extraction needs, but you’ll spend time writing and maintaining selectors.

Here’s how simple Outscraper is to use:

import requests
import json

def scrape_with_outscraper(api_key, query, limit=100):
    """
    Scrape Google Maps using Outscraper API.
    Dead simple, no proxy management needed.
    """
    url = "https://api.outscraper.com/maps/search"
    
    headers = {
        "X-API-KEY": api_key
    }
    
    params = {
        "query": query,
        "limit": limit,
        "async": "false",  # Set to true for large jobs
        "fields": "name,address,phone,website,rating,reviews_count,photos"
    }
    
    try:
        response = requests.get(url, headers=headers, params=params)
        response.raise_for_status()
        
        data = response.json()
        
        # Data comes back as structured JSON
        places = data.get('data', [])
        
        print(f"Retrieved {len(places)} places")
        return places
        
    except Exception as e:
        print(f"Outscraper error: {e}")
        return []

# Usage
results = scrape_with_outscraper(
    api_key="your_outscraper_key",
    query="dentists in Chicago, IL",
    limit=50
)

# Save to CSV or database
import pandas as pd
df = pd.DataFrame(results)
df.to_csv("chicago_dentists.csv", index=False)

 

When to build vs. buy:

  • Build yourself: You have unique extraction needs, strict data privacy requirements, or you’re scraping at massive scale (100k+ requests/month) where per-request costs add up
  • Buy service: You need data this week, you hate maintaining scrapers, or your volume is moderate (under 50k requests/month)

I typically start projects with Outscraper to validate the data quality, then migrate to custom automation only if the economics make sense at scale.

Google Maps scraping sits in a gray area legally, but you can stay safe by respecting robots.txt, avoiding personal data extraction, and using data for analysis rather than republication. The CFAA is less of a threat now after recent court decisions, but terms of service violations still matter.

I am not a lawyer, but I’ve worked with enough legal teams to know the boundaries. Here’s what keeps you out of trouble:

The legal landscape changed in 2023-2024. The Supreme Court’s Van Buren decision narrowed the Computer Fraud and Abuse Act (CFAA), making pure terms of service violations less likely to trigger federal criminal liability. However, civil lawsuits for breach of contract are still possible, and state laws vary widely.

Practical guidelines I follow:

  1. Check robots.txt. Google Maps technically disallows scraping in their robots.txt, but they don’t aggressively enforce it for moderate, non-disruptive usage. Don’t hammer their servers.
  2. Avoid personal data. Don’t scrape reviewer names, profile photos, or user-generated content that identifies individuals. This triggers GDPR and CCPA concerns.
  3. Don’t republish raw data. Using scraped data for internal analysis, lead generation, or competitive intelligence is generally safer than creating a public clone of Google Maps.
  4. Respect rate limits. If you’re causing measurable load on their infrastructure, you’re more likely to get noticed and potentially face action.
  5. Use the API when possible. Courts look more favorably on official channels, even if you’re technically violating terms of service by how you use the data.

For business use, I always recommend reviewing ethical guidelines for web scraping and consulting with legal counsel if you’re building a product around the data.

The good news is that Google rarely sues individual scrapers or small businesses. They prefer technical countermeasures (blocking) over legal ones. But if you’re a funded startup scraping millions of records, get legal clearance.

FAQ: Real Questions from Real Developers

Can I get real-time Google Maps data for free?

No, real-time data requires either the paid Places API or sophisticated automation with associated infrastructure costs. Free tiers give you cached data with limited freshness. Even “free” scraping approaches require proxy expenses that add up fast.

How do I scrape reviews without hitting CAPTCHAs every 5 requests?

You need residential proxy rotation and request throttling. Use a service like Bright Data or Oxylabs, rotate IPs every 3-5 requests, and add 10-15 second delays between page loads. Even then, expect CAPTCHAs after a few dozen reviews—consider using a CAPTCHA solving service or accepting partial data.

Is the Google Places API cheaper than scraping myself?

For small volumes (under 10k requests/month), yes. For large volumes with rich data needs, browser automation with smart proxy management often wins on cost. Do the math: API at $17/1,000 detailed requests vs. residential proxies at $8/GB with 500+ requests per GB.

Can I use Google Maps data commercially?

It depends on your usage and data source. API data comes with specific terms allowing commercial use in most cases. Scraped data has murkier legal standing—consult a lawyer for high-risk commercial applications like republication or direct competition with Google.

What’s the most reliable way to get coordinates from a business name?

The Places API Text Search is the most reliable method. It handles fuzzy matching and returns structured geographic data. Browser automation for geocoding is overkill and less accurate due to UI parsing variability.

How do I avoid getting my IP banned when scraping?

Use residential proxy rotation, implement realistic delays, and vary your request patterns. Never use datacenter IPs for Google Maps—they’re preemptively blocked. Rotate user agents, use headless browser stealth techniques, and monitor for blocks to adjust your rate.

Can I scrape Google Maps without coding?

Yes, using no-code tools like Browse.AI, Octoparse, or Apify’s pre-built Google Maps scrapers. These work for simple extractions but lack flexibility for complex workflows. You’ll hit limitations quickly if you need custom data fields or large volumes.

What’s better: Selenium or Playwright for Google Maps?

Playwright has better stealth capabilities and faster execution, but Selenium with undetected-chromedriver is more mature for anti-detection. I prefer Playwright for new projects because it handles modern JavaScript better and has built-in proxy support, but both work if configured properly.

How do I extract data from multiple cities efficiently?

Use geographic grid searches with the Places API, or parallelize browser automation with proxy rotation. Break your target area into small radius searches (under 2km) to avoid the 60-result limit. For automation, run multiple instances with different proxy endpoints and coordinate with a queue system.

Do I need to worry about rate limiting with the official API?

Yes, the Places API has strict quotas. You get 100 requests per second maximum, and daily limits based on your billing tier. Implement exponential backoff for 429 errors and cache results aggressively to minimize repeat requests.

Conclusion

Scraping Google Maps with Python in 2026 requires choosing your battles wisely. The official API is expensive but reliable for basic data. Browser automation gets you everything but demands constant maintenance and significant proxy investment. Third-party services offer the sweet spot for most teams—reasonable cost with minimal headache.

From my years building location data pipelines, I’ve learned that the “best” approach changes every 6-12 months as Google updates their defenses and pricing. The teams that survive are the ones that build abstraction layers—swap out the data source without rewriting your entire application.

Start with the Places API for prototyping. When you hit the data walls, evaluate whether the missing fields are worth the automation complexity. If you’re extracting thousands of records monthly, run the math on third-party services versus DIY. Usually, the service wins until you’re operating at serious scale.

Your immediate next steps: Set up a Google Cloud project, enable the Places API (New), and build a small prototype with the code examples above. Test your target queries, measure your actual API costs, and decide whether to stick with the official channel or explore automation. Either way, implement caching from day one—it’ll save you 50% on costs within the first month.

The data is there for the taking. Just be smart about how you take it.


Need help scaling your location data pipeline? Check out our guides on handling dynamic content in web scraping and managing cookies and sessions to build more robust extraction systems.

Data Prixa

Data Prixa

Dataprixa is an independent editorial platform focused on data infrastructure and security insights. The content published under this author explores web scraping, data collection, proxy networks, and cybersecurity technologies with an emphasis on clarity, ethical practices, and long-term relevance. Articles are written to support developers, researchers, and modern businesses in understanding data-driven systems and secure infrastructure.