LurkAPI
Docs · Search Google Maps

Search Google Maps

Businesses and places matching a Google Maps search, with address, phone, website, rating, hours and coordinates.

1 credit per callFresh within 12 hoursMCP tool: google_maps_search
GEThttps://api.lurkapi.com/v1/google/maps/search

Example response

When to use this

Use it to find businesses by type and area ("dentists in Miami") for lead lists, local SEO or market maps. Each place comes with its contact details, so you rarely need place details too.

Pass what you'd type into Maps as query. Give the area as location (free text, e.g. Austin, TX) or as lat and lng; one or the other is required.

Pagination. 20 places per page in Google's order, up to 10 pages. Pass next_page as page for more. It's null on the last page. Later pages can repeat a few places from earlier ones.

A query that names one place (empire state building) returns just that place.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?, as in ?query=coffee+shop. Join several with &.

ParameterDescription
query
stringrequired
What you'd type into Google Maps, e.g. coffee shop or plumbers near me.
Example
coffee shop
location
stringoptional
Where to search, as free text: a city, area or address, e.g. Austin, TX.
Example
Austin, TX
lat
numberoptional
Latitude to center the search on, with lng, e.g. 30.2672.
lng
numberoptional
Longitude to center the search on, with lat, e.g. -97.7431.
zoom
integeroptional
How far in the map is zoomed around lat/lng, as on Maps: 10 ≈ a city, 14 ≈ a neighborhood (default), 17 ≈ a few streets.
Default
14
page
integeroptional
Page of results, 1–10; 20 places each. Use next_page from the previous answer.
Default
1
language
stringoptional
Language of names, categories, hours and review text, e.g. en, de, pt-BR. Default en.
Default
en

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (4 KB)
{
  "success": true,
  "credits_remaining": 999984,
  "credits_charged": 1,
  "places": [
    {
      "placeId": "ChIJ1S_Bov20RIYRe7MiR8tYawY",
      "cid": "462561016830669691",
      "featureId": "0x8644b4fda2c12fd5:0x66b58cb4722b37b",
      "name": "Jo's Coffee – South Congress",
      "url": "https://www.google.com/maps?cid=462561016830669691",
      "categories": [
        "Coffee shop",
        "Cafe",
        "Takeout Restaurant",
        "Sandwich shop"
      ],
      "address": "1300 S Congress Ave, Austin, TX 78704",
      "street": "1300 S Congress Ave",
      "city": "Austin",
      "state": "Texas",
      "postalCode": "78704",
      "countryCode": "US",
      "neighborhood": "Bouldin Creek",
      "plusCode": null,
      "latitude": 30.2510458,
      "longitude": -97.7493717,
      "phone": "(512) 852-2300",
      "phoneInternational": "+15128522300",
      "website": "https://www.joscoffee.com/south-congress-jos",
      "rating": 4.4,
      "reviewsCount": 2005,
      "hours": [
        {
          "day": "Monday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Tuesday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Wednesday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Thursday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Friday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Saturday",
          "hours": "7 AM–7 PM"
        },
        {
          "day": "Sunday",
          "hours": "7 AM–7 PM"
        }
      ],
      "timezone": "America/Chicago",
      "description": "La Colombe coffee, specialty beverages & snacks in a down-to-earth, convivial locale.",
      "photo": "https://lh3.googleusercontent.com/grass-cs/AABkmLeA8s7ovG7n-CmQy3bJA92IH…",
      "permanentlyClosed": false,
      "temporarilyClosed": false
    },
    {
      "placeId": "ChIJG-gJw2vKRIYROWi2uwOp8QE",
      "cid": "140078896924485689",
      "featureId": "0x8644ca6bc309e81b:0x1f1a903bbb66839",
      "name": "Epoch Coffee",
      "url": "https://www.google.com/maps?cid=140078896924485689",
      "categories": [
        "Coffee shop"
      ],
      "address": "221 W N Loop Blvd, Austin, TX 78751",
      "street": "221 W N Loop Blvd",
      "city": "Austin",
      "state": "Texas",
      "postalCode": "78751",
      "countryCode": "US",
      "neighborhood": "North Loop",
      "plusCode": null,
      "latitude": 30.318603699999997,
      "longitude": -97.72454019999999,
      "phone": "(512) 454-3762",
      "phoneInternational": "+15124543762",
      "website": "http://www.epochcoffee.com/",
      "rating": 4.5,
      "reviewsCount": 2538,
      "hours": [
        {
          "day": "Monday",
          "hours": "12 AM–11:30 PM"
        },
        {
          "day": "Tuesday",
          "hours": "Open 24 hours"
        },
        {
          "day": "Wednesday",
          "hours": "Open 24 hours"
        },
        {
          "day": "Thursday",
          "hours": "Open 24 hours"
        },
        {
          "day": "Friday",
          "hours": "Open 24 hours"
        },
        {
          "day": "Saturday",
          "hours": "Open 24 hours"
        },
        {
          "day": "Sunday",
          "hours": "Open 24 hours"
        }
      ],
      "timezone": "America/Chicago",
      "description": "Cool, vibrant small-chain cafe featuring nibbles, tea & carefully brewed espresso drinks.",
      "photo": "https://lh3.googleusercontent.com/grass-cs/AABkmLeXAOUdE-8mLrosYeEJM3Iqh…",
      "permanentlyClosed": false,
      "temporarilyClosed": false
    }
  ],
  "page": 1,
  "next_page": 2
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: places[].placeId is the placeId of every item in places. null means there's no value.

Show all 35 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
placesobject[]Matching places in Google's order.
places[].placeIdstringcan be nullGoogle's place id (ChIJ…), the id Google's Places API uses too. Pass it as place_id to place details or reviews.
places[].cidstringThe place's cid (customer id), stable for the life of the listing: maps.google.com/?cid=<cid>.
places[].featureIdstringGoogle Maps' own feature id (0x…:0x…), as it appears in Maps links.
places[].namestringThe place's name as Google lists it.
places[].urlstringThe place on Google Maps.
places[].categoriesstring[]Google's categories, main one first, e.g. ["Coffee shop", "Cafe"].
places[].addressstringcan be nullFull street address on one line, e.g. 1300 S Congress Ave, Austin, TX 78704.
places[].streetstringcan be nullStreet and number.
places[].citystringcan be nullCity or town.
places[].statestringcan be nullState, province or region, when the country uses one.
places[].postalCodestringcan be nullPostal code.
places[].countryCodestringcan be null2-letter country code, e.g. US.
places[].neighborhoodstringcan be nullNeighborhood or district, when Google names one.
places[].plusCodestringcan be nullThe place's global plus code, e.g. 86247722+C7. Place details only: null in search results with more than one place.
places[].latitudenumbercan be nullLatitude of the place's pin.
places[].longitudenumbercan be nullLongitude of the place's pin.
places[].phonestringcan be nullPhone number as written locally, e.g. (512) 852-2300; null when the listing has none.
places[].phoneInternationalstringcan be nullPhone number in E.164 form, e.g. +15128522300, ready to dial or match.
places[].websitestringcan be nullThe business's own website; null when the listing has none.
places[].ratingnumbercan be nullAverage star rating, 1–5; null with no reviews.
places[].reviewsCountnumbercan be nullHow many reviews Google counts; null with none.
places[].hoursobject[]can be nullRegular weekly hours, starting with the current day; null when the listing has none. Holiday hours can differ.
places[].hours[].daystringDay of the week, in language.
places[].hours[].hoursstringOpening hours that day as Google writes them, e.g. 7 AM–7 PM, Open 24 hours or Closed.
places[].timezonestringcan be nullThe place's IANA timezone, e.g. America/Chicago.
places[].descriptionstringcan be nullGoogle's one-line summary of the place; null for most places.
places[].photostringcan be nullThe listing's main photo, 800 px wide (edit =w800 in the URL for another size).
places[].permanentlyClosedbooleantrue when Google marks the place permanently closed.
places[].temporarilyClosedbooleantrue when Google marks the place temporarily closed.
pagenumberThis page's number.
next_pagenumbercan be nullPass as page for the next 20 places; null on the last page.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 12 hours. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the google_maps_search tool. For example:

Ask Claude
Use LurkAPI's google_maps_search tool with query "coffee shop", location "Austin, TX", then summarize what you find.

Claude calls google_maps_search with arguments like these, and each call costs 1 credit:

Tool arguments
{"query": "coffee shop","location": "Austin, TX"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts