Business research5 min readBy Purrkey teamUpdated

How to search Google Maps for nearby coffee shops

Find up to 20 normalized Google Maps places around an exact latitude and longitude and turn the viewport into a venue shortlist

On this page

You have one downtown latitude and longitude and need a shortlist of 20 coffee shops around it for a launch area. Run a Google Maps nearby search from those coordinates, read the first viewport, and page to a second viewport if the first list is too broad

The worksheet below is the deliverable: one row per place, with the listing fields, a shortlist note and the cursor state needed to continue. No run has been executed for this guide; the table is a design, not a result

Example input and worksheet design

Example input, with values to replace:

FieldExample value
querycoffee shop
coordinates.latitude30.2672
coordinates.longitude-97.7431
zoom13.1

The deliverable has these columns: rank, name, category, address, street, city, state, postalCode, countryCode, rating, reviewCount, phone, website, placeId, url, shortlist_note. Values here are placeholders showing the shape

ranknamecategorycityratingphonewebsiteshortlist_note
1(place name)Coffee shop(city)(number)(phone or empty)(website or empty)(your reason to visit or contact)

An empty phone or website is a normal outcome for a listing. The shortlist note is the operator decision column: write the reason to visit or contact the venue, or leave it blank when the row drops out

Input the tool takes

The tool id is anyapi.maps.search_nearby; the Agents call it through POST /v1/runs with toolId anyapi.maps.search_nearby

Required fields are query and coordinates. coordinates holds latitude and longitude in decimal degrees, and query is what you would type in the Google Maps search bar. Optional fields are cursor, language with a default of en, limit with a default of 20, and zoom with a default of 13.1. A lower zoom covers a wider area; a higher zoom focuses more tightly around the coordinates

The page limit sits with this step: each call returns one full Google Maps viewport of about 20 places. limit is accepted but never trims the page, so pass nextCursor back as cursor to continue exactly where the response ended

How to read the output fields that drive a decision

Start with found and data. found is true when the search returned at least one matching place. When found is false, reason is not_found; the contract says that answer is a successful call, not an error. data is null when nothing matched

Inside data.items, each place has rank, name, category, categories, address, street, city, state, postalCode, countryCode, rating, reviewCount, phone, website, placeId, url, plus coordinates and other listing fields. items are nearest the requested coordinates first, and rank is the one-based position in the Google Maps result order

Use rating and reviewCount as review signals and phone and website as contact signals. The contract does not set a shortlist threshold, so put your own reason in shortlist_note. The nextCursor controls a second viewport: when it is null, no more pages are offered; when it is a string, pass it back as cursor. When a venue makes the shortlist, confirm the venue address and contact details before a visit or a call

The agent prompt

Example prompt for one viewport:

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Google Maps around the example coordinates for coffee shops and return a venue shortlist table. Check the current inputs and price of anyapi.maps.search_nearby before running anything. Use query "coffee shop", coordinates latitude 30.2672 and longitude -97.7431, and zoom 13.1. Return a table with rank, name, category, address, street, city, state, postalCode, countryCode, rating, reviewCount, phone, website, placeId, url and shortlist_note. If the first page is too broad, pass the returned nextCursor back as cursor for a second page. Do not invent places.

Replace the example query and coordinates with your own before the run. Keep the first pass to one viewport so you can judge whether the list is broad enough to need a second page

Estimated tool cost

Price read through the Purrkey catalog on November 13, 2026. The tool is listed at max_call, up to $0.0013 per call. max_call means Maximum per call. Successful runs settle at the actual AnyAPI charge. The table totals are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
One viewport1 call x max price$0.0013 per call1$0.0013
Three-viewport sweep3 calls x max price$0.0013 per call3$0.0039

Agent model fees are not counted

Next action

Open the nearby search tool page and run your first viewport with your own coordinates

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.
Explore Google Maps tools and pricing

FAQ

How do I search Google Maps around a latitude and longitude for coffee shops?

Use anyapi.maps.search_nearby with query set to the search text and coordinates set to latitude and longitude in decimal degrees. Each call returns one Google Maps viewport of about 20 places.

What inputs does anyapi.maps.search_nearby take?

Required inputs are query and coordinates with latitude and longitude. Optional inputs are cursor, language, limit and zoom.

What does found false mean in the nearby search output?

When found is false, reason is not_found; the contract says that answer is a successful call, not an error. data is null when nothing matched.

How do I get the next 20 places from Google Maps nearby search?

Pass the returned nextCursor back as cursor. Each call returns one full Google Maps viewport of about 20 places, and limit is accepted but never trims the page.

What fields decide which venues make the shortlist?

Use rank, name, category, address, rating, reviewCount, phone, website, placeId and url in the table, with your own reason in shortlist_note. The contract does not set a shortlist threshold.

How much does a three-viewport nearby search cost?

At the catalog price of $0.0013 per call, one viewport is at most $0.0013 and a three-viewport sweep is at most $0.0039. The totals are ceilings; successful runs settle at the actual AnyAPI charge.

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.

See Google Maps tools

Share this article