How to pull local Google Maps places with DataForSEO
Build a 20-place local shortlist from a Google Maps query with address, phone, website and rating fields
On this page
You have three city queries for coffee shops and need a 20-place shortlist for a site-selection review, with address, phone, website and rating beside each name. Each query is one call to dataforseo.serp.google_maps, and the table built from those calls decides which neighborhoods you visit
No call has been made for this article. The tables below are a design, and the values in them are placeholders showing the shape
The 18-column shortlist table
The contract fixes the column set. The first table carries the shortlist itself, the second carries the fields used for contact and dedupe. Example keyword, with placeholder values
| keyword | rank | title | category | address | city | region | zip | rating | reviews |
|---|---|---|---|---|---|---|---|---|---|
| coffee shops near downtown Austin | 1 | Acme Coffee | Coffee shop | 100 Example St | Austin | Texas | 78701 | 4.6 | 812 |
| countryCode | phone | url | domain | priceLevel | placeId | isClaimed | currentStatus |
|---|---|---|---|---|---|---|---|
| US | +1 512 555 0100 | https://acme-coffee.example | acme-coffee.example | $$ | ChIJexample0001 | true | open |
The url value in that row is invented. Replace it with whatever url returns, and leave the cell empty when url is null
currentStatus describes the moment of the call. The contract defines it as the opening status when the search ran, such as open or closed, so it is not a forecast for the afternoon of your visit
What goes into each call
The endpoint is POST /v1/runs with toolId dataforseo.serp.google_maps. Three properties appear in the contract's input block. keyword is required, a string of 1 to 700 characters, and it holds the query phrase. language_code is optional; its default and pattern are defined in the contract. location_code is optional and defaults to 2840, which the contract gives as the United States
The country default is the wrong setting for a city shortlist. Get city location codes from DataForSEO and pass the code for Austin, Denver or Portland, because the catalog description says to use a city location code for local results. Keep the keyword as the plain query phrase you would type into a map, such as coffee shops near downtown Austin
Reading the fields that drive the decision
Sort on rank first and treat rating and reviews as a pair. rating is the average Google rating out of 5 and reviews is the count, so a 4.6 with 12 reviews sits differently from a 4.6 with 900 when you are picking a block to walk
address, city, region, zip and countryCode assemble the street line for the visit. phone and url cover contact, and url is defined as the place's own website, when it lists one, with domain repeating the host
currentStatus covers opening state at the time of the call. isClaimed is a boolean that returns null when the response carries no value, so a null is not the same as an unclaimed listing. placeId is the field to dedupe on when the same shop appears under two city queries, and priceLevel plus category fill the comparison columns
The limit that shapes three queries
places holds at most 20 items per call, so three city queries yield at most 60 rows before dedupe. A city with more than 20 matching places stops at 20, and narrowing the keyword is the way to reach the rest. Plan the review around 20 places per city rather than around the city
The city code sits in this same step. With the default 2840 the call is scoped to the United States, not to a downtown, which is why each of the three calls needs its own city location_code
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to pull Google Maps
places for three city queries with dataforseo.serp.google_maps. Check the
current inputs and price of dataforseo.serp.google_maps before running
anything. Make one call per query, passing the query phrase as keyword and
that city's location_code, with language_code en. Return one table with the
columns keyword, rank, title, category, address, city, region, zip,
countryCode, phone, url, domain, rating, reviews, priceLevel, placeId,
isClaimed and currentStatus. Sort by keyword, then rank. Do not invent
values for null fields, leave them empty.
coffee shops near downtown Austin
coffee shops near downtown Denver
coffee shops near downtown PortlandThe three query lines are Example. Swap in your own cities and phrases before the run
Estimated tool cost
The catalog lists dataforseo.serp.google_maps at up to $0.004 per call, unit max_call, unitPriceMicros 4000, priceRevision dataforseo-receipt-2026-11-17, read on November 22, 2026. It explains the unit as "Maximum per call. Successful runs settle at DataForSEO's actual charge, with no markup", so the totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Three city queries | calls x max price | $0.004 per call | 3 | $0.012 |
| Thirty city-query calls | calls x max price | $0.004 per call | 30 | $0.12 |
Thirty calls covers a wider set of cities for the same review. Agent model fees are not counted in these figures
Next step
Open the tool page for dataforseo.serp.google_maps at https://purrkey.app/tools/dataforseo?q=google_maps and check the input fields and the current price before the first call. The companion walkthrough sits at https://purrkey.app/blog/google-maps-api-local-lead-table-workflow
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with DataForSEO.FAQ
How do I pull Google Maps places for a city with DataForSEO?
Make one call to dataforseo.serp.google_maps per city, with the query phrase as keyword and a city location_code. The response carries up to 20 places with name, category, address, phone, website, rating, reviews and coordinates.
What inputs does dataforseo.serp.google_maps take?
keyword is required, a string of 1 to 700 characters. language_code and location_code are optional and default to en and 2840, which the contract gives as the United States.
How many places come back per call?
At most 20, because the places array has a maximum of 20 items. Three city queries give at most 60 rows before dedupe on placeId.
Which location code should I use for local results?
A city location code, fetched from DataForSEO. The default 2840 scopes the call to the United States rather than to a city.
How much does it cost to pull three city queries?
At most $0.012, because the price is up to $0.004 per call and the plan uses 3 calls. Successful runs settle at DataForSEO's actual charge, with no markup.
What do the rating and reviews fields mean?
rating is the average Google rating out of 5 and reviews is the count. Read them as a pair, since the same rating on 12 reviews and on 900 reviews is a different signal.
What does currentStatus mean?
It is the opening status when the search ran, such as open or closed, so it describes the moment of the call rather than the day you visit.
Next step
Try this with DataForSEO
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.