Google Maps API workflow: build a local lead table and a Purrkey cost plan
A repeatable workflow for local lead research: search places, enrich contact details, and check reviews, with a call plan and a cost table for a small outreach list
On this page
You need a monthly budget for a local lead list before you run it: twelve place searches, contact details for the businesses that survive a rating check, and reviews for five finalists. The Google Maps API workflow below runs three calls in sequence, and the cost table is built before the first request goes out
The task and the two tables
The reader is a local marketing freelancer or researcher who repeats an outreach list each month for trades, clinics or studios and wants the spend settled first. The work is not one big query. It is a search step that produces candidates, an enrichment step that produces usable contact details, and a review step that settles the last few decisions
Two tables come out of the workflow. The first is the lead table, one row per business:
| Business | Address | Rating | Place ID | Emails | Phones | Decision |
|---|---|---|---|---|---|---|
| Acme Plumbing (example) | 12 Example Street, Example City | rating (placeholder) | kept from the search row | filled by contacts | filled by contacts | call, review or skip |
Values here are placeholders showing the shape. Nothing in this article was run, so the row describes the columns the agent should fill, not a result. A row with no email and no phone stays in the table with those columns empty and takes no further calls
The second table is the monthly cost plan: one row per tool, the calls planned, the unit price and the total. You build it before the run and reconcile it against the settled charges afterwards
The three tools on Purrkey
Prices below are as read from the public catalog. Each figure is the tool's ceiling per call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge"
| Tool | Returns | Price per call | Pick it when |
|---|---|---|---|
anyapi.maps.search | Up to 20 normalized place records with ratings, addresses and contact basics per request | $0.116 | You have a category and a location and no list yet |
anyapi.maps.contacts | Businesses enriched with emails, phones and social profiles from their websites, up to 20 records per request | $0.0991 | A candidate passed your rating check and you need outreach details |
anyapi.maps.reviews | Up to 100 Google Maps reviews for a place by place ID, sorted the way you need, in one normalized response | $0.0441 | The rating alone does not settle whether the business is worth contacting |
Each tool is called as POST /v1/runs with toolId set to its id. Have the agent read the current input shape and price from the catalog before it runs, since the table above is a snapshot
How to choose for this task
Start with the place search. One call turns a category and a location into candidates, so run it once per neighborhood and run it again when you want a fresh list for another area. Twelve calls a month each cover up to 20 place records; a neighborhood with more than 20 businesses you care about is two calls, not one
Run the contacts call only on candidates that survive a quick rating check, because it returns the emails and phone details you will use for outreach. Batch the survivors at 20 records per request. Eight calls a month each cover up to 20 enriched records, and a longer shortlist means more calls rather than a bigger request
Pull reviews for the shortlist when the rating alone does not settle whether a business is worth contacting. Keep review pulls for finalists: one call fetches up to 100 reviews for a single place by place ID, so five calls in the plan means five finalists, not five pages of results
The fields that drive the decision sit in this order. The rating from the search record decides whether a row moves to contacts. The emails and phones from the contacts call decide whether it enters the outreach list. The reviews settle the last few rows, and the place ID from the search record is what makes the review call possible
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to build a lead table and a monthly cost table for the example searches below. Before running anything, check the current inputs and price of anyapi.maps.search, anyapi.maps.contacts and anyapi.maps.reviews.
Example searches (invented values, replace with your own category and location):
1. plumber in Example City North
2. electrician in Example City North
3. dentist in Example City South
Steps:
1. Call anyapi.maps.search once for each search above. For each place record keep the name, address, rating and place ID.
2. Keep records rated 4.0 or above and call anyapi.maps.contacts for them, batching at 20 records per call. Leave the other rows in the table with empty email and phone columns.
3. Call anyapi.maps.reviews once per shortlisted place ID and note what the recent reviews say about responsiveness and price.
4. Return table one with business, address, rating, place ID, emails, phones and decision (call, review or skip). Return table two with tool id, calls planned, unit price and total.
Do not send any email or message.Swap the example searches for your own pairs, and keep the first run to one category in one neighborhood. The business names and locations above are invented for illustration
Estimated tool cost
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Place searches | 12 x $0.116 | $0.116 per call | 12 calls | $1.392 |
| Contact enrichment | 8 x $0.0991 | $0.0991 per call | 8 calls | $0.7928 |
| Review pulls | 5 x $0.0441 | $0.0441 per call | 5 calls | $0.2205 |
| Monthly plan | sum of the rows above | sum of the rows above |
Totals are ceilings, not settled charges, because each price is a maximum per call. Agent model fees are not counted in the table. The plan assumes 12 search calls at up to 20 records each, 8 contact calls at up to 20 records each, and 5 review calls at one place each
Next action
Run a single search before you commit to the monthly plan: open the Google Maps tools on Purrkey, call anyapi.maps.search once for your own category and neighborhood, and compare the settled charge against the $0.116 maximum in the table above
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 Google Maps.FAQ
What does a Google Maps API workflow cost for a monthly lead list?
At the prices read on 2026-11-13, a plan of 12 place searches, 8 contact enrichment runs and 5 review pulls totals $2.4053 at the per-call maximums: $1.392 for search, $0.7928 for contacts and $0.2205 for reviews. Agent model fees are not counted in that figure.
What does anyapi.maps.search return?
Up to 20 normalized place records per request, with ratings, addresses and contact basics. The listed price is $0.116 per call as a maximum.
When should I run anyapi.maps.contacts instead of the search call?
Run it only on candidates that survive a quick rating check, because it returns the emails, phones and social profiles you use for outreach. One request enriches up to 20 records.
How many reviews does anyapi.maps.reviews return per call?
Up to 100 Google Maps reviews for one place, fetched by place ID, sorted the way you need, in one normalized response. The listed price is $0.0441 per call as a maximum.
Do I need a place ID to pull reviews?
Yes. The review tool fetches by place ID, so keep the place ID from each search record before you shortlist.
Why keep review pulls for finalists rather than each candidate?
Each review call covers a single place, so five calls in the monthly plan means five finalists. The rating from the search step is what decides which candidates move on to contact enrichment.
Can I use placeholder .example domains in this workflow?
Placeholder domains are fine in a draft, but Purrkey's verifier contract rejects reserved TLDs such as .example, .test and .invalid with no charge, so swap in a real domain before any step that verifies one.
Next step
Try this with Google Maps
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.