I’ve been working on local SEO reporting for a client with multiple service areas, and manually checking rankings city by city was becoming painfully time-consuming.
To speed things up, I started automating location-based SERP checks with Python so I could compare rankings across multiple cities in one run.
Simplified example:
import requests
cities = ['London', 'Manchester', 'Birmingham']
for city in cities:
params = {
'keyword': 'plumber',
'country': 'GB',
'city': city,
'language': 'en'
}
response = requests.get(
'https://example-api.com/search',
params=params
)
print(f'{city}: {response.json()}')
This made it much easier to:
compare visibility between locations
spot weak local markets
monitor ranking inconsistencies
prioritize local SEO improvements
One interesting thing I found was that rankings varied much more between cities than expected. A site performing well in one area could be nearly invisible in another, even with similar competition levels.
I’m curious how other developers or SEO folks are handling:
geo-specific rank tracking
local SERP simulation
location-based reporting
large-scale local SEO monitoring
Are you building custom scripts for this, using APIs, or relying on traditional rank trackers?
Top comments (0)