Nearby Places API: Search Cafes, Stores and Brands by Latitude and Longitude (Overture Maps)

Find points of interest within 10 km of any lat/lon with the Overture Places API on API.market. Real responses, paging, filters, the 400 error shape, a geocode-then-search pipeline and cost math.
Nearby Places API: Search Cafes, Stores and Brands by Latitude and Longitude (Overture Maps)
Nearby Places API: Search Cafes, Stores and Brands by Latitude and Longitude (Overture Maps)

Plenty of apps need one simple answer: what is near this point? A delivery app wants the pharmacies within a kilometer. A store locator wants the five closest branches of one brand. A site-selection spreadsheet wants a count of cafes around a candidate address. All of these are the same query, a coordinate, a radius and an optional filter, and they do not need a full maps platform to answer.

This guide walks through the Overture Places API on API.market. It searches Overture Maps points of interest around any latitude and longitude, up to 10 km out, and returns the closest places first with name, category, brand, address, coordinates and distance in meters. We subscribed to the Free plan on 2026-11-30 and ran four real calls through the API.market tool layer. Everything marked as an observed response below came from those calls. Code that we did not run is labeled as such, so you know what to paste-test before you rely on it.

Featured API from this guide
Overture Places API: Nearby POI Search WorldwideSearch 70M+ Overture Maps places near any point by name, brand or category, closest first.
MappingBy ayatskov
Lowest plan: 200 FREE API units

What you get, and what you do not

The API has two GET endpoints on one base URL:

  • /api/places returns one page of results and a cursor for the next page.
  • /api/places-all returns every match in one response, up to 5,000 places.

Both take the same core inputs: lat, lon, range_m, and optional q (place or brand name) and category filters. Results come back closest first, each with a distance_m field.

The listing describes the dataset as more than 70 million Overture Maps points of interest worldwide. We did not measure coverage ourselves, so treat that as the listing's claim. What we can say is what we saw: 800 m around Times Square matched 41 Starbucks locations, and 300 m around central Belgrade matched 25 cafes.

Some things it does not do, and you should know them before you design around it:

  • No address or city search. It searches around coordinates only. If your user types "221 Baker Street", you geocode that first and pass the result in. A later section shows the pipeline.
  • No ratings, reviews, opening hours or phone numbers in the fields we saw. The response items we observed carried id, name, category, brand_name, address, latitude, longitude and distance_m, nothing else.
  • A hard ceiling of 10,000 m for the radius.

If you need phone numbers or reviews for lead lists, a different kind of listing is the better fit. Our comparison of Google Maps business data APIs covers that side. This one is for plain "what is around here" lookups.

Step 1: Subscribe and get a key

Open the listing page and subscribe to the Free plan. As listed, it includes 200 calls for 7 days with a hard limit and costs $0. A finite free plan like this is a one-time trial for the product, not a monthly refill, so spend those 200 calls deliberately. Copy your key from your API.market account page, in the API keys section.

Every request sends the key in one header:

x-api-market-key: YOUR_API_KEY

The base URL is:

https://prod.api.market/api/v1/ayatskov/apihub

One thing worth knowing before you start: every request counts as one call on both endpoints, and a request that returns zero places still counts. If you are building a loop over many coordinates, the trial runs out faster than you think. The cost section near the end has the arithmetic.

Step 2: Your first call, Starbucks near Times Square

Here is the request we ran. It asks for Starbucks locations within 800 m of Times Square, two per page.

The curl, Python and Node blocks in this article were not run in a shell by us. They send the same URL, query parameters and header as the call we did run, so they should behave the same, but paste-test them with your own key before you ship anything.

curl -G 'https://prod.api.market/api/v1/ayatskov/apihub/api/places' \
  --data-urlencode 'lat=40.758' \
  --data-urlencode 'lon=-73.9855' \
  --data-urlencode 'range_m=800' \
  --data-urlencode 'q=starbucks' \
  --data-urlencode 'limit=2' \
  -H 'x-api-market-key: YOUR_API_KEY'

The same call in Python with requests:

import requests

BASE = "https://prod.api.market/api/v1/ayatskov/apihub"
HEADERS = {"x-api-market-key": "YOUR_API_KEY"}

params = {"lat": 40.758, "lon": -73.9855, "range_m": 800, "q": "starbucks", "limit": 2}
r = requests.get(f"{BASE}/api/places", params=params, headers=HEADERS, timeout=30)
r.raise_for_status()
data = r.json()
print(data["total"], [p["address"] for p in data["items"]])

And in Node 18 or newer, which has fetch built in:

const BASE = "https://prod.api.market/api/v1/ayatskov/apihub";
const params = new URLSearchParams({
  lat: "40.758", lon: "-73.9855", range_m: "800", q: "starbucks", limit: "2",
});
const res = await fetch(`${BASE}/api/places?${params}`, {
  headers: { "x-api-market-key": "YOUR_API_KEY" },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();
console.log(data.total, data.items.map((p) => p.address));

The real response we observed (HTTP 200, 2026-11-30):

{
  "total": 41,
  "items": [
    {
      "id": "3743631c-453c-4f15-aa2d-8862b22d6225",
      "name": "Starbucks",
      "category": "coffee_shop",
      "brand_name": "Starbucks",
      "address": "10036, US, NY, New York, 152 W 45th St",
      "latitude": 40.75766,
      "longitude": -73.98507,
      "distance_m": 52.35505393367765
    },
    {
      "id": "69374491-9f31-4fd2-9f80-533ab629db2b",
      "name": "Starbucks",
      "category": "coffee_shop",
      "brand_name": "Starbucks",
      "address": "10036, US, NY, New York, 1500 Broadway",
      "latitude": 40.75667456,
      "longitude": -73.98594331,
      "distance_m": 152.03877778428267
    }
  ],
  "next_cursor": "eyJkIjoxNTIuMDM4Nzc3Nzg0MjgyNjcsImlkIjoiNjkzNzQ0OTEtOWYzMS00ZmQyLTlmODAtNTMzYWI2MjlkYjJiIn0"
}

You may notice that the nearest distance here, 52.355 m, differs slightly from the 52.383 m shown in the listing's own documentation example. The place and the coordinates are identical. The documentation example was written from an earlier run, and the live service is what we trust.

Reading the response

A few details are easy to miss on first read.

total is the full match count, not the page size. We asked for two items and total said 41. That is the number of Starbucks locations inside the 800 m circle. It is useful on its own: if all you need is a count, a single call with limit=1 gives it to you, and you pay for one call.

items is one page, ordered by distance. The first item is the closest place. distance_m is a float in meters measured from the point you sent, so you can display it directly or round it.

category is an Overture category string. We saw coffee_shop for Starbucks and cafe for independent cafes in Belgrade. Those are different categories. That matters for your filters, as the next sections show.

brand_name can be null. The Belgrade cafes had brand_name: null. Do not assume a brand string exists when you render a list.

address is a single flattened string. In the examples it began with a postal code, then country code, then region and street, joined with commas, and the exact shape varied between places (the Belgrade results mixed Cyrillic and Latin spellings). If you need clean structured address fields, plan to parse defensively or just show the string. Do not build logic that depends on a fixed number of comma-separated parts.

next_cursor is an opaque token. It is base64 text, but treat it as a black box. Pass it back as cursor and do not try to build one yourself.

Step 3: Paging with the cursor

When next_cursor is not null, there is more. To fetch the next page, send the same request again with one extra parameter, cursor, set to the value you just received. Keep every other parameter identical, including lat, lon, range_m, q, category and limit. Changing the filters mid-way is how you get inconsistent pages.

curl -G 'https://prod.api.market/api/v1/ayatskov/apihub/api/places' \
  --data-urlencode 'lat=40.758' --data-urlencode 'lon=-73.9855' \
  --data-urlencode 'range_m=800' --data-urlencode 'q=starbucks' \
  --data-urlencode 'limit=2' \
  --data-urlencode 'cursor=eyJkIjoxNTIuMDM4Nzc3Nzg0MjgyNjcsImlkIjoiNjkzNzQ0OTEtOWYzMS00ZmQyLTlmODAtNTMzYWI2MjlkYjJiIn0' \
  -H 'x-api-market-key: YOUR_API_KEY'

We ran this one too. Page 2 returned HTTP 200 with two further places: "1585 Broadway" at about 198.64 m and "1101 1109 Avenue Of The Americas" at about 292.17 m. total still said 41, and next_cursor was non-null, so there were more pages. The listing documentation says next_cursor is null on the last page. We did not page all the way to the end in our test, so that last-page behavior is documented, not observed by us.

Here is a loop that walks every page, written for Python. It is not executed code, and it stops on any non-200 response rather than guessing:

import time
import requests

BASE = "https://prod.api.market/api/v1/ayatskov/apihub"
HEADERS = {"x-api-market-key": "YOUR_API_KEY"}

def fetch_all(lat, lon, range_m, q=None, category=None, page_size=100, max_pages=50):
    params = {"lat": lat, "lon": lon, "range_m": range_m, "limit": page_size}
    if q:
        params["q"] = q
    if category:
        params["category"] = category

    places = []
    for _ in range(max_pages):
        r = requests.get(f"{BASE}/api/places", params=params, headers=HEADERS, timeout=30)
        if r.status_code == 429:
            wait = r.headers.get("Retry-After", "1")
            time.sleep(float(wait) if wait.replace(".", "", 1).isdigit() else 1.0)
            continue
        if r.status_code != 200:
            raise RuntimeError(f"{r.status_code}: {r.text}")
        body = r.json()
        places.extend(body["items"])
        cursor = body.get("next_cursor")
        if not cursor:
            return places
        params["cursor"] = cursor
        time.sleep(0.15)  # stay well under 10 requests per second
    raise RuntimeError("stopped at max_pages, narrow the query")

Three small decisions in there are worth copying. There is a page ceiling, so a bug cannot loop forever and burn your plan. The Retry-After header is only parsed when it looks like a number, because HTTP allows a date there too. And the sleep keeps you under the documented limit of 10 requests per second. Note that a 429 retry still costs calls if the 429 was caused by an exhausted plan, so the loop above would spin on that case until max_pages. For a real service, treat a 429 that persists after one or two waits as "out of calls" and stop.

Step 4: Everything at once with places-all

If the result set is small and you want it in one response, /api/places-all skips the cursor. We ran it for every cafe within 300 m of central Belgrade:

curl -G 'https://prod.api.market/api/v1/ayatskov/apihub/api/places-all' \
  --data-urlencode 'lat=44.8176' \
  --data-urlencode 'lon=20.4569' \
  --data-urlencode 'range_m=300' \
  --data-urlencode 'category=cafe' \
  -H 'x-api-market-key: YOUR_API_KEY'

The observed result was HTTP 200 with total: 25, 25 items and next_cursor: null. The first two, shortened:

{
  "total": 25,
  "items": [
    {"id": "1eba781c-94bf-4be6-b4eb-dac7d1fd11a3", "name": "Vitraz Kafe", "category": "cafe", "brand_name": null,
     "address": "11102, RS, Београд, 7 DJURE JAKSICA, 11102, Belgrade (Stari Grad), Belgrade county",
     "latitude": 44.81729558, "longitude": 20.4564779, "distance_m": 47.47957074530857},
    {"id": "104b1623-f749-4806-b7fd-519f3fe17647", "name": "Local", "category": "cafe", "brand_name": null,
     "address": "11000, RS, Београд, Đure Jakšića 7",
     "latitude": 44.81730589, "longitude": 20.45642472, "distance_m": 49.7485750403877}
  ],
  "next_cursor": null
}

The Python and Node versions are the same as the first-call examples with the path changed to /api/places-all and the parameters set to lat=44.8176, lon=20.4569, range_m=300, category=cafe. Leave out limit and cursor, since this endpoint does not page.

When is places-all the right choice? When you want to count or aggregate and the area is bounded. When the area is big, switch to /api/places. The endpoint caps at 5,000 places. If more than that match, the documented behavior is a 413 response, and the fix is to shrink range_m or add a filter. We did not trigger a 413 in testing, so that is from the listing docs.

One cost note that surprises people: both endpoints cost one call per request. A places-all request that returns 2,000 places costs the same as one that returns two. If you need a lot of results, places-all is the cheaper way to get them, as long as you stay under the 5,000 cap.

Filters: q and category

Both filters are case-insensitive substring matches. That is simple, and it has consequences.

q matches against the place and brand name. q=starbucks finds every place whose name or brand contains "starbucks". q=pizza would also match "Pizzaiolo" and "Pizza Hut", which is probably what you want, and "Pizzazz Salon", which is probably not.

category matches against the Overture category string. category=cafe matches cafe but, as a substring match, would not match coffee_shop, because "cafe" is not a substring of "coffee_shop". We saw both categories in our two tests, so if you want every place where people drink coffee, you may need two queries, one per category. This is the sort of thing to check against your own area before you trust a count.

You can combine both filters. They narrow the result together. Practical habits:

  1. Start without filters and look at what categories come back for your area. Then pick the strings you need.
  2. Prefer category for "what kind of place" and q for "which brand".
  3. Do not stack a very short q such as q=a. It will match nearly everything.
  4. Remember that substring matching is not fuzzy matching. A misspelled brand returns nothing, and a call with no results still counts as a call.

Errors: the 400 you will hit first

The most likely failure is a bad coordinate, and the usual cause is swapped latitude and longitude. We sent lat=200 on purpose and got this (HTTP 400, observed 2026-11-30):

{
  "error": "validation_error",
  "message": "one or more query parameters are invalid",
  "fields": [
    { "field": "lat", "message": "must be a finite number between -90 and 90" }
  ]
}

That response is friendly in one way that matters: it lists the field that failed. Per the listing docs, fields lists every bad parameter, so a request with two problems should show both. We only tested one bad field.

The ranges are: lat from -90 to 90, lon from -180 to 180, and range_m required, up to 10,000. A mangled cursor also returns a 400 according to the docs. We did not test that either.

The other status codes below come from the listing documentation. We did not trigger them:

Code Meaning What to do
401 Key missing or invalid Check the x-api-market-key header
403 No active subscription for this endpoint Subscribe on the listing page
404 Path does not match an endpoint Check base URL and path
413 More than 5,000 matches on places-all Smaller radius or add a filter
429 Over 10 requests per second, or out of calls Back off, honor Retry-After
500 Server failure Retry once, then contact support
503 Service unavailable Retry after a short wait

A sensible client handles the 400 family by failing loudly (it is your bug, not a transient fault), the 429 and 503 family by waiting and retrying a bounded number of times, and the 401 and 403 family by stopping and surfacing a configuration problem.

Putting it together: geocode first, then search nearby

Real users do not type coordinates. They type an address or a city. The Places API intentionally does not geocode, so a typical flow has two steps. First you turn the text into a latitude and longitude, then you search around that point.

For US street addresses, our free US address geocoding guide covers the AireLit geocoding API, including batching and the confidence rating on every match. For a city name or for turning GPS coordinates into a city and time zone, see the reverse geocoding guide, built on the tidydata city geocoding API.

The shape of the pipeline is below. The geocoding function is deliberately a stub, because each geocoder has its own request and response format and you should follow its guide. Only the Places half calls the endpoint documented above. None of this code has been executed.

import requests

PLACES = "https://prod.api.market/api/v1/ayatskov/apihub/api/places"
HEADERS = {"x-api-market-key": "YOUR_API_KEY"}

def geocode(address: str) -> tuple[float, float]:
    """Return (lat, lon) for an address using the geocoder of your choice."""
    raise NotImplementedError("call your geocoding API here")

def nearby(address: str, what: str, radius_m: int = 1000, how_many: int = 5):
    lat, lon = geocode(address)
    r = requests.get(
        PLACES,
        params={"lat": lat, "lon": lon, "range_m": radius_m, "q": what, "limit": how_many},
        headers=HEADERS,
        timeout=30,
    )
    r.raise_for_status()
    body = r.json()
    return {
        "center": {"lat": lat, "lon": lon},
        "total_matches": body["total"],
        "closest": [
            {"name": p["name"], "meters": round(p["distance_m"]), "address": p["address"]}
            for p in body["items"]
        ],
    }

Two things to check in a pipeline like this. First, geocoders return coordinates in different orders in different formats. Some give [lon, lat] arrays. Passing them to this API swapped gives you the 400 above for many locations, and worse, a valid but wrong location for others. Second, a geocode can be a rough match, such as a city centroid. If the geocoder reports low confidence, a 1 km search around that point may not be anywhere near what the user meant. Show the center point, or the confidence, to the user when it matters.

Three jobs this API suits

A store locator. Geocode the visitor's input, then call /api/places with q=yourbrand, limit=5 and a radius that fits your market (dense cities need a few kilometers, rural areas the full 10 km). Show distance_m converted to kilometers or miles. One call per search is cheap, and results are already sorted. If your brand has inconsistent naming in the data, q substring matching will catch variants but may also catch unrelated places, so keep a short review list of false positives.

Competitor and amenity counts for site selection. For a candidate address, run /api/places with limit=1 and a category filter, and read total. One call per category per site gives you a count. For ten candidate sites and six categories, that is 60 calls, which fits inside the 200-call Free trial. Remember that the count depends on the category string, so check the category names in a sample result first. Also remember that the data is a snapshot of Overture Maps, and a place that opened last month may not be in it. A count like this is a screening signal, not a census.

"What is near me" for travel and agent tools. An AI agent or a travel app can ask for places in a category near a point and show the first few. Because the endpoint is a simple GET with a header key, wrapping it as a tool for an agent is a short job. Cap the radius and the page size in your wrapper so an agent cannot spend your plan on one runaway query.

Cost math you can check

The plan facts below come from the listing documentation at the time of writing. We verified the Free plan by subscribing (200 calls, ends 2026-12-07 for our test account). We did not verify the Pro or pay-as-you-go prices by being charged, so check the listing page before you commit.

Plan Price Calls Notes
Free $0 200 for 7 days Hard limit, one-time trial for this product
Pro $35 per month 10,000 per month $0.005 per extra call
PAYG $0.01 per call Pay as you go Billed per request

Some arithmetic, using those listed numbers:

  • 1,000 calls on pay-as-you-go cost $10.
  • 10,000 calls on Pro cost $35, which works out to $0.0035 per call.
  • Pro becomes cheaper than pay-as-you-go at 3,500 calls a month ($35 against 3,500 x $0.01 = $35).
  • 12,000 calls on Pro would be $35 plus 2,000 extra calls at $0.005, so $45.

Because each request is one call regardless of how many places it returns, the ways to spend less are about request count, not result size. Use limit=1 when you only need total. Use /api/places-all instead of paging when the area is small enough. Cache results for places that do not change often, but check the data's terms and your own freshness needs before you store results for long, since we have not verified what the listing allows for retention.

Empty results are billed. That means a typo in q costs you a call, and so does a search in the middle of the ocean.

A pre-launch checklist

Before you point real traffic at this API, run through these:

  1. Paste-test the code with your own key. The curl, Python and Node blocks here mirror the tested calls but were not shell-run by us.
  2. Check category strings for your region. Run a few unfiltered searches near your target locations and note what categories actually appear.
  3. Validate coordinates before sending them. Reject out-of-range values on your side so a bad input does not become a billed 400. We did not verify whether a 400 consumes a call, so assume it might.
  4. Bound your loops. Page ceilings, retry ceilings and request timeouts. A paging loop with no ceiling is how a trial disappears.
  5. Handle null brands and variable address strings. Do not index into the address by position.
  6. Decide what happens at 429. Back off on rate limiting, stop on an exhausted plan, and tell the user rather than retrying forever.
  7. Record the Overture place id if you want to match a place across calls. It is in the id field and comes from Overture.
  8. Plan for stale data. Overture is a periodically updated open dataset. A place that closed or opened recently may be wrong. If freshness matters, pair this with a source you control.

FAQ

Can I search by city name or address? No. Geocode first, then pass lat and lon. See the geocoding guides linked above.

How do q and category match? Both are case-insensitive substring matches. q looks at the place and brand name, category at the Overture category.

When should I use places-all? When you want every match in one request and expect under 5,000. Otherwise page through /api/places.

What is the maximum radius? 10,000 meters.

How many results per page? Up to 100 with limit. The default is 20.

Is an empty result billed? Yes. According to the listing, a call with no results is a successful call and counts as one.

Where does the data come from? Overture Maps places. The id field carries the Overture place id.

Where to go next

Subscribe to the Free plan on the Overture Places API listing, run the first call with limit=2, and then try the same coordinates with a category filter to see what your area looks like. If your app starts from addresses, add a geocoder from the AireLit or tidydata listings in front of it. Then measure how many calls a typical user session really makes before you pick a paid plan.