Local SEO Competitor Analysis with Google Maps Data
Benchmark a Google Business Profile against local competitors: ratings, review velocity, categories, hours and owner replies, pulled with an API.
Updated 8 min readBy the ScrapeMapsAPI team
A local SEO competitor analysis answers one question: why do other businesses show up above yours in the Google Maps results for the searches that matter, and what can you change about it? The answer lives in public data. Every competitor's Google Business Profile shows its categories, rating, number of reviews, how fast new reviews arrive, whether the owner replies, its opening hours and its attributes. Collect that data for the top results of your target searches, put it in one table next to your own profile, and the gaps become obvious.
This guide shows how to run that analysis with an API, in a way you can repeat every month: which searches to pick, which numbers to collect, how to compute review velocity and reply rate, and how to read the result. The code is Python with requests, but every step is a plain HTTP call you can also make from a spreadsheet tool or Node.js.
What Google says ranks a local business
Google's own documentation on local ranking names three factors: relevance (how well the profile matches the search), distance (how far the business is from the searcher or the area named in the query) and prominence (how well known the business is, which includes review count and rating). You cannot change distance, but most of relevance and prominence shows up in data you can measure:
- Primary and secondary categories. The single strongest relevance signal you control. If every competitor in the top three lists "Emergency plumber" and you list only "Plumber", that is a finding.
- Review count and rating. The visible part of prominence.
- Review velocity. How many new reviews a business gets per month. A profile with 300 reviews and none in the last six months looks less active than one with 120 reviews and 15 last month.
- Owner replies. Not a confirmed ranking factor on their own, but a strong signal of an actively managed profile, and they affect conversion from the listing.
- Completeness. Hours, website, phone, description, attributes and booking links.
Step 1: pick the searches and collect the top results
Start with 3 to 10 searches your customers actually type, each with the area: "dentist in Leeds", "emergency dentist Leeds", "cosmetic dentist Leeds". For each one, take the first page of results with the Places API:
curl "https://api.scrapemapsapi.com/v1/places/search?q=emergency+dentist+Leeds®ion=gb&language=en&limit=10" \
-H "X-API-Key: $SCRAPEMAPSAPI_API_KEY"The order of data is the order Google returned, so the position in the list is a fair approximation of the ranking for a signed-out searcher in that area. It is not a personalised rank tracker: real users see results that depend on their exact location. To approximate that, pass lat, lng and a small radius_km for a few points in the city and compare.
import os
import time
import requests
API = "https://api.scrapemapsapi.com/v1"
HEADERS = {"X-API-Key": os.environ["SCRAPEMAPSAPI_API_KEY"]}
def get(path, params):
while True:
r = requests.get(f"{API}{path}", headers=HEADERS, params=params, timeout=60)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", "30")))
continue
if r.status_code != 200:
raise RuntimeError(f"{r.status_code}: {r.json()['detail']}")
return r.json()
searches = ["dentist in Leeds", "emergency dentist Leeds", "cosmetic dentist Leeds"]
competitors = {}
for q in searches:
page = get("/places/search", {"q": q, "region": "gb", "language": "en", "limit": 10})
for position, place in enumerate(page["data"], start=1):
entry = competitors.setdefault(place["ids"]["cid"], {"place": place, "positions": {}})
entry["positions"][q] = positionThree searches cost 3 credits. Businesses that appear in several searches are your real competitors; ones that appear once are usually specialists.
Step 2: add the profile details
The search result already holds name, categories, address, rating, review count, phone, website and status. For completeness signals, fetch the details of each competitor and of your own profile with the Place Details API:
for cid, entry in competitors.items():
d = get(f"/places/{cid}", {"language": "en", "region": "gb"})["data"]
hours = d["opening_hours"]
entry["profile"] = {
"name": d["name"],
"primary_category": (d["categories"] or [None])[0],
"categories": len(d["categories"]),
"rating": d["rating"],
"reviews": d["review_count"],
"has_website": bool(d["website"]),
"has_description": bool(d["description"]),
"photos": len(d["photos"]),
"attribute_groups": len(d["attributes"]),
"booking_links": len(d["booking_links"]),
"open_days": sum(1 for day in hours["weekly"] if not day["closed"]) if hours else None,
}The attributes object groups the features Google displays ("Accessibility", "Service options", "Payments") with their labels. Comparing the groups competitors have and you do not is a quick checklist for your own profile edits. Note that photos is the set of photos the API receives for the place, not the total number on the profile, so compare it between businesses rather than reading it as an absolute.
Step 3: measure review velocity and reply rate
Totals hide momentum. To see how active each profile is, read the newest reviews with the Reviews API using sort=newest and count how many fall in the last 90 days. Pages are 20 reviews each and you stop as soon as you reach older reviews, so a quiet business costs one call:
from datetime import datetime, timedelta, timezone
cutoff = datetime.now(timezone.utc) - timedelta(days=90)
def recent_reviews(cid, max_pages=10):
params = {"sort": "newest", "language": "en", "limit": 20}
out = []
for _ in range(max_pages):
page = get(f"/places/{cid}/reviews", params)
for review in page["data"]:
if review["published_at"] is None:
continue
published = datetime.fromisoformat(review["published_at"].replace("Z", "+00:00"))
if published < cutoff:
return out
out.append(review)
if not page["pagination"]["has_more"]:
return out
params = {"cursor": page["pagination"]["next_cursor"]}
return out
for cid, entry in competitors.items():
recent = recent_reviews(cid)
replied = sum(1 for r in recent if r["owner_response"])
entry["profile"]["reviews_90d"] = len(recent)
entry["profile"]["avg_rating_90d"] = round(sum(r["rating"] or 0 for r in recent) / len(recent), 2) if recent else None
entry["profile"]["reply_rate_90d"] = round(replied / len(recent), 2) if recent else NoneThe cursor carries the sort and language, so the follow-up calls only send cursor. published_at is an ISO 8601 timestamp in UTC; owner_response is null when the owner has not replied. The average rating of the last 90 days is often more telling than the lifetime rating: a 4.7 profile whose recent reviews average 3.9 is in trouble, and its position will follow.
Step 4: put it in one table
Load the profiles into pandas and sort by visibility, here the number of searches a business appears in and its average position:
import pandas as pd
rows = []
for entry in competitors.values():
positions = entry["positions"].values()
rows.append({**entry["profile"], "searches": len(positions), "avg_position": sum(positions) / len(positions)})
df = pd.DataFrame(rows).sort_values(["searches", "avg_position"], ascending=[False, True])
print(df.to_string(index=False))
df.to_csv("local-competitors.csv", index=False)A typical output looks like this (trimmed, numbers illustrative):
| Business | Primary category | Rating | Reviews | Reviews 90d | Reply rate | Searches | Avg position |
|---|---|---|---|---|---|---|---|
| Competitor A | Emergency dental service | 4.8 | 912 | 64 | 0.95 | 3 | 1.3 |
| Competitor B | Dentist | 4.6 | 1,240 | 22 | 0.10 | 3 | 2.7 |
| Your clinic | Dentist | 4.7 | 380 | 6 | 0.00 | 1 | 7.0 |
Step 5: read the gaps
The table is the analysis; the actions usually fall into a few patterns:
- Category gap. The businesses winning the "emergency" search list an emergency category as primary. If that matches your services, change yours; it is the fastest relevance fix there is.
- Velocity gap. You get 2 reviews a month, the leaders get 20. The fix is a review request in your normal process (after an appointment, on the receipt), not a one-off campaign: steady velocity beats a spike.
- Reply gap. A reply rate near zero next to competitors at 90% is easy to close. Reply to new reviews, especially negative ones, within a few days. Our Node.js review monitor posts new negative reviews to Slack so none slips through.
- Completeness gap. Missing description, hours or attribute groups that every competitor has.
- Content gap. What do customers praise in the leaders' reviews and complain about in yours? That is a text problem: our guide to Google reviews sentiment analysis with Python shows how to find recurring themes.
What this data cannot show: links to the website, on-page SEO and behavioural signals. Combine the Maps table with a normal website audit.
Run it every month
Competitor analysis is most useful as a time series. Save the CSV with the date, run the script monthly and compare: who gained reviews, who changed category, who dropped out of the top results. With three searches, ten competitors and one or two review pages each, a run costs about 40 calls, well inside the 200 free calls you get every month. Agencies tracking dozens of clients pay $3 per 1,000 calls at list price, less with credit packs; see the pricing.
If you only need a quick look at one competitor, the free Google Maps reviews tool shows a place's card and its newest reviews without an account. For the full workflow, create an account and follow the API reference. To export the full list of a city's businesses in one category instead of just the top results, see Google Maps lead generation.
FAQ
What data do I need for a local SEO competitor analysis?
For each business ranking for your target searches: its position, primary and secondary categories, rating, total review count, new reviews in the last 90 days, owner reply rate, opening hours, website, description and attributes. All of it is public on the Google Business Profile and can be collected with a places and reviews API.
How do I find my local competitors on Google Maps?
Run the searches your customers type, including the area, and take the first page of results for each. Businesses that appear in several of those searches are your direct competitors. Repeat the searches from a few points in the city with coordinates, because Google Maps results depend on the searcher's location.
What is review velocity and why does it matter?
Review velocity is the number of new reviews a business receives per period, usually per month. It shows how active a profile is: a business with fewer total reviews but a steady flow of new ones often outranks an older profile whose reviews stopped. Measure it by reading reviews sorted by newest and counting those after a cutoff date.
Does replying to Google reviews help local rankings?
Google has not confirmed owner replies as a ranking factor, but replies are a visible sign of an actively managed profile, they influence whether searchers choose you, and leaders in most local markets reply to almost every review. Measuring reply rate across competitors shows whether you are behind.
How often should I repeat a local competitor analysis?
Monthly is enough for most businesses. Save each run with its date so you can compare review velocity, rating trends, category changes and positions over time. A run covering a few searches and ten competitors costs only a few dozen API calls.
Try it on your own data
Create a free account and get 200 free API calls every month. No credit card required.