Google Maps for Local SEO
Local SEO draws its rank grids on a Google map. The ranking data itself comes from DataForSEO; the map tiles come from Google's Map Tiles API, which needs a key.
The key is optional. Without it, Local SEO still works and shows grids as a points view or a drawing instead of a map.
Create the key#
- In the Google Cloud Console, select or create a project. You can reuse the project from Google sign-in.
- Turn on billing for the project, then enable Map Tiles API in the API Library.
- Under APIs & Services → Credentials, create an API key.
- Restrict the key to Map Tiles API only, and save.
- Under Google Maps Platform → Quotas, set a daily tile-request quota that fits your use.
The key is used only by your server; the browser never sees it. Website-referrer restrictions therefore do not apply. Cloudflare Workers have no fixed outgoing IP address, so leave the IP restriction off unless you know your server's outgoing addresses. Restricting the key to Map Tiles API is the important part.
Consider separate keys for testing and production, so their usage stays apart.
Add it to NulSEO#
Put it in .env.selfhost and deploy:
GOOGLE_MAPS_API_KEY=AIza...pnpm deploy:selfhost --yesOr add it as a secret named GOOGLE_MAPS_API_KEY on the Worker under Settings → Variables & Secrets in the Cloudflare dashboard.
Use it#
Open a project's Local SEO page and choose Add Business to pick the Google Maps listing and the grid around it. Add the search terms to track during setup, or later with Manage keywords.
- The grid preview shows the map before you pay for a ranking check. You should see Google's logo, copyright text and the grid markers.
- Check rankings searches every tracked keyword at every grid point. The confirmation shows the number of searches and the estimated cost, which counts towards the DataForSEO spend cap.
- Latest shows current results for each keyword; History compares saved checks by date. Click a point to see the businesses ranking there.
Maps in shared reports#
The same key draws the grid in Local SEO reports, including for people who open a public share link without signing in. Each report carries its own short-lived map access, limited to the area around its grid. Every time someone opens a report with a map, Google counts tile requests against your key.
Costs#
Google bills Map Tiles API requests to your Google Cloud billing account, and one map view makes several tile requests. This is separate from NulSEO's spend caps. Check Google's current Maps billing page and set a quota to stay in control.
Troubleshooting#
- "Google Maps is not configured". Set
GOOGLE_MAPS_API_KEYand deploy again. - Request failed (403). Check billing is on, Map Tiles API is enabled, and the key's restrictions allow Map Tiles API.
- Request failed (429). The project's Maps quota is used up. Raise it or wait.
- Tiles do not load. Use the map's retry button after fixing the cause. The Points view stays available while the map is unavailable.
Keep Google's logo and copyright text visible if you customise the map. Google's terms require it.