Tutorial

How to Scrape Google Maps Leads via Search API

Extract business leads from Google Maps with structured API. Get names, addresses, ratings, and review counts for cold outreach.

Google Maps search via API returns structured business data (name, address, phone, rating, review count, website) at $0.005/query. This replaces manual Maps scraping and delivers leads ready for cold email enrichment.

Prerequisites

  • Python 3.8+
  • Scavio API key
  • Target niche and location

Walkthrough

Step 1: Define your search parameters

Set query (e.g. 'plumbers'), location, and result count.

Step 2: Send Maps search request

POST to Scavio search endpoint with Google Maps as the target.

Step 3: Parse and filter results

Filter by rating, review count, and website presence for quality leads.

Step 4: Export to CSV for outreach

Save filtered leads to CSV format for email enrichment tools.

Python Example

Python
import requests, os, csv

H = {'x-api-key': os.environ['SCAVIO_API_KEY'], 'Content-Type': 'application/json'}
resp = requests.post('https://api.scavio.dev/api/v1/search',
    headers=H, json={'query': 'plumbers Austin TX', 'country_code': 'us'})
data = resp.json()
leads = [r for r in data.get('local_results', []) if r.get('rating', 0) >= 4.0]
with open('leads.csv', 'w') as f:
    w = csv.DictWriter(f, ['title', 'address', 'phone', 'rating', 'reviews'])
    w.writeheader()
    for l in leads:
        w.writerow({'title': l.get('title'), 'address': l.get('address'), 'phone': l.get('phone'), 'rating': l.get('rating'), 'reviews': l.get('reviews')})
print(f'Exported {len(leads)} leads')

JavaScript Example

JavaScript
const H = {'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json'};
const resp = await fetch('https://api.scavio.dev/api/v1/search', {
  method: 'POST', headers: H,
  body: JSON.stringify({query: 'plumbers Austin TX', country_code: 'us'})
});
const data = await resp.json();
const leads = (data.local_results || []).filter(r => r.rating >= 4.0);
console.log(`Found ${leads.length} qualified leads`);

Expected Output

JSON
Exported 12 leads
# leads.csv contains: name, address, phone, rating, review count

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Python 3.8+. Scavio API key. Target niche and location. A Scavio API key gives you 250 free credits per month.

Yes. The free tier includes 250 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

Extract business leads from Google Maps with structured API. Get names, addresses, ratings, and review counts for cold outreach.