Docs · Search Google Maps
Search Google Maps
Businesses and places matching a Google Maps search, with address, phone, website, rating, hours and coordinates.
https://api.lurkapi.com /v1/google/maps/searchWhen 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.
curl "https://api.lurkapi.com/v1/google/maps/search?query=coffee+shop&location=Austin%2C+TX" \
-H "x-api-key: YOUR_API_KEY"Paste it into a terminal, with your key in place of YOUR_API_KEY.
const params = new URLSearchParams({
query: "coffee shop",
location: "Austin, TX",
});
const res = await fetch(`https://api.lurkapi.com/v1/google/maps/search?${params}`, {
headers: { "x-api-key": process.env.LURKAPI_API_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.places);Node 18+. Save it as lurk.mjs and run node lurk.mjs. It reads your key from LURKAPI_API_KEY.
import os
import requests
res = requests.get(
"https://api.lurkapi.com/v1/google/maps/search",
params={
"query": "coffee shop",
"location": "Austin, TX",
},
headers={"x-api-key": os.environ["LURKAPI_API_KEY"]},
timeout=60,
)
data = res.json()
if not data["success"]:
raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["places"])Run pip install requests, save it as lurk.py and run python lurk.py. It reads your key from LURKAPI_API_KEY.
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"time"
)
func main() {
params := url.Values{}
params.Set("query", "coffee shop")
params.Set("location", "Austin, TX")
req, _ := http.NewRequest("GET", "https://api.lurkapi.com/v1/google/maps/search?"+params.Encode(), nil)
req.Header.Set("x-api-key", os.Getenv("LURKAPI_API_KEY"))
client := &http.Client{Timeout: 60 * time.Second}
res, err := client.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var data map[string]any
if err := json.NewDecoder(res.Body).Decode(&data); err != nil {
panic(err)
}
if data["success"] != true {
panic(fmt.Sprintf("%v: %v", data["code"], data["error"]))
}
out, _ := json.MarshalIndent(data["places"], "", " ")
fmt.Println(string(out))
}Save it as main.go and run go run main.go. It reads your key from LURKAPI_API_KEY.
<?php
$params = http_build_query([
'query' => 'coffee shop',
'location' => 'Austin, TX',
]);
$context = stream_context_create(['http' => [
'header' => 'x-api-key: ' . getenv('LURKAPI_API_KEY'),
'timeout' => 60,
'ignore_errors' => true,
]]);
$body = file_get_contents('https://api.lurkapi.com/v1/google/maps/search?' . $params, false, $context);
$data = json_decode($body, true);
if (!$data['success']) {
throw new Exception("{$data['code']}: {$data['error']}");
}
print_r($data['places']);Save it as lurk.php and run php lurk.php. It reads your key from LURKAPI_API_KEY.
require 'json'
require 'net/http'
uri = URI('https://api.lurkapi.com/v1/google/maps/search')
uri.query = URI.encode_www_form(
'query' => 'coffee shop',
'location' => 'Austin, TX',
)
req = Net::HTTP::Get.new(uri)
req['x-api-key'] = ENV.fetch('LURKAPI_API_KEY')
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https', read_timeout: 60) do |http|
http.request(req)
end
data = JSON.parse(res.body)
raise "#{data['code']}: #{data['error']}" unless data['success']
puts JSON.pretty_generate(data['places'])Save it as lurk.rb and run ruby lurk.rb. It reads your key from LURKAPI_API_KEY.
Parameters
Add them to the URL after a ?, as in ?query=coffee+shop. Join several with &.
| Parameter | Description |
|---|---|
querystringrequired | What you'd type into Google Maps, e.g. coffee shop or plumbers near me.
|
locationstringoptional | Where to search, as free text: a city, area or address, e.g. Austin, TX.
|
latnumberoptional | Latitude to center the search on, with lng, e.g. 30.2672. |
lngnumberoptional | Longitude to center the search on, with lat, e.g. -97.7431. |
zoomintegeroptional | How far in the map is zoomed around lat/lng, as on Maps: 10 ≈ a city, 14 ≈ a neighborhood (default), 17 ≈ a few streets.
|
pageintegeroptional | Page of results, 1–10; 20 places each. Use next_page from the previous answer.
|
languagestringoptional | Language of names, categories, hours and review text, e.g. en, de, pt-BR. 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)Hide
{
"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 fieldsHide
| Field | Type | Description |
|---|---|---|
| success | true | Always true here; errors have success: false. |
| credits_remaining | number | Your balance after this call. On anonymous playground calls: free tries left today. |
| credits_charged | number | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| places | object[] | Matching places in Google's order. |
| places[].placeId | stringcan be null | Google's place id (ChIJ…), the id Google's Places API uses too. Pass it as place_id to place details or reviews. |
| places[].cid | string | The place's cid (customer id), stable for the life of the listing: maps.google.com/?cid=<cid>. |
| places[].featureId | string | Google Maps' own feature id (0x…:0x…), as it appears in Maps links. |
| places[].name | string | The place's name as Google lists it. |
| places[].url | string | The place on Google Maps. |
| places[].categories | string[] | Google's categories, main one first, e.g. ["Coffee shop", "Cafe"]. |
| places[].address | stringcan be null | Full street address on one line, e.g. 1300 S Congress Ave, Austin, TX 78704. |
| places[].street | stringcan be null | Street and number. |
| places[].city | stringcan be null | City or town. |
| places[].state | stringcan be null | State, province or region, when the country uses one. |
| places[].postalCode | stringcan be null | Postal code. |
| places[].countryCode | stringcan be null | 2-letter country code, e.g. US. |
| places[].neighborhood | stringcan be null | Neighborhood or district, when Google names one. |
| places[].plusCode | stringcan be null | The place's global plus code, e.g. 86247722+C7. Place details only: null in search results with more than one place. |
| places[].latitude | numbercan be null | Latitude of the place's pin. |
| places[].longitude | numbercan be null | Longitude of the place's pin. |
| places[].phone | stringcan be null | Phone number as written locally, e.g. (512) 852-2300; null when the listing has none. |
| places[].phoneInternational | stringcan be null | Phone number in E.164 form, e.g. +15128522300, ready to dial or match. |
| places[].website | stringcan be null | The business's own website; null when the listing has none. |
| places[].rating | numbercan be null | Average star rating, 1–5; null with no reviews. |
| places[].reviewsCount | numbercan be null | How many reviews Google counts; null with none. |
| places[].hours | object[]can be null | Regular weekly hours, starting with the current day; null when the listing has none. Holiday hours can differ. |
| places[].hours[].day | string | Day of the week, in language. |
| places[].hours[].hours | string | Opening hours that day as Google writes them, e.g. 7 AM–7 PM, Open 24 hours or Closed. |
| places[].timezone | stringcan be null | The place's IANA timezone, e.g. America/Chicago. |
| places[].description | stringcan be null | Google's one-line summary of the place; null for most places. |
| places[].photo | stringcan be null | The listing's main photo, 800 px wide (edit =w800 in the URL for another size). |
| places[].permanentlyClosed | boolean | true when Google marks the place permanently closed. |
| places[].temporarilyClosed | boolean | true when Google marks the place temporarily closed. |
| page | number | This page's number. |
| next_page | numbercan be null | Pass 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.
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key was sent. Put it in the x-api-key header. |
| 401 | invalid_api_key | This key doesn't exist or was revoked. |
| 402 | insufficient_credits | Not enough credits for this call. Buy a pack, or wait for tomorrow's free top-up. |
| 402 | over_max_credits | This call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged. |
| 403 | account_suspended | This account is suspended. Email support@lurkapi.com. Not charged. |
| 405 | method_not_allowed | Endpoints only take GET, with parameters in the URL. |
| 429 | rate_limited | Too many calls in a short time. Wait as many seconds as the retry-after header says, then retry. |
| 500 | internal_error | Something broke on our side. Retry. Not charged. |
| 502 | upstream_error | The platform didn't send a usable answer. Retry. Not charged. |
| 503 | upstream_busy | All our connections to the platform are busy. Retry in a few seconds. Not charged. |
| 504 | upstream_timeout | The 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:
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:
{"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
· 5 min read
Reddit RSS feeds end November 13: how to keep yours working
Reddit turns off every RSS feed on November 13, 2026. Keep your feed URLs: a small Cloudflare Worker serves the same paths from LurkAPI. Change only the host.

· 4 min read
Best Facebook scrapers in 2026: prices and speed compared
LurkAPI is the best Facebook scraper: public Pages' posts at $0.19 per 1,000, about 1 s a call, with contacts, comments and events on the same key.

· 4 min read
TikTok Research API: who can get it, and what businesses use instead
Non-commercial researchers in the US, Europe, Canada and Brazil, after a review of about 4 weeks. Businesses can’t apply; they use a public-data API instead.