Menu

Places

Places quickstart

Places near a name, then near a point, then what comes back.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

1. Find places near a name

Example
Shell
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "coffee",
    "near": "Leslieville, Toronto",
    "limit": 5
  }'

query says what you are looking for: a kind of place, a name or a brand. near says where, as a name. The two are separate on purpose: nothing in query is read as a location.

2. Or around a point

When you already have coordinates, send them. This is the most reliable way to say where, in any country.

Example
Shell
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "pharmacy",
    "lat": 43.6532,
    "lng": -79.3832,
    "radius_m": 1000
  }'

Where to look is one of near, lat with lng, bbox, ip, near_me or neighbourhood. Send one. The address your request comes from is used only when you send "near_me": true. Parameters has every field with an example, including the filters (category, brand, has_phone, open_now and the rest), sort and fields.

3. Read the answer

JSON
{
  "data": {
    "resolved": {
      "name": "Leslieville",
      "region": "ON",
      "country": "CA",
      "lat": 43.66883,
      "lng": -79.3267,
      "kind": "point",
      "accuracy": null,
      "alternatives": []
    },
    "results": [
      {
        "id": "pawx2ncgk7b6wsi3t",
        "name": "Harbour Lane Coffee",
        "category": { "id": "cafe", "label": "Cafe" },
        "categories": ["food_and_drink", "casual_eatery", "cafe"],
        "address": {
          "street": "1180 Queen St E",
          "unit": null,
          "city": "Toronto",
          "region": "ON",
          "postcode": "M4M 1L4",
          "country": "CA",
          "formatted": "1180 Queen St E, Toronto, ON M4M 1L4, CA"
        },
        "lat": 43.662514,
        "lng": -79.333905,
        "distance_m": 912,
        "phone": "+14165550142",
        "website": "https://harbourlanecoffee.example/",
        "brand": null,
        "hours": null,
        "open_now": null,
        "last_seen": "2026-11-02",
        "popularity": 46
      }
    ],
    "attribution": {
      "text": "Place data from open data sources. Credits and licences: https://millionshort.com/credits#places",
      "url": "https://millionshort.com/credits#places"
    }
  },
  "request_id": "req_01JD0PLACES7Q2M4T8V",
  "usage": { "credits": 1, "cost_usd": 0.001, "breakdown": { "places": 1 } },
  "warnings": []
}

4. Show the credit line

If you show these places to people, you must show data.attribution.text, or a link to data.attribution.url, with them. Every answer carries it, and no parameter removes it. See Attribution, and the data notices that go with the data. Places asked for with "layer": "osm" or "layer": "both" are a separate list under their own licence, and each carries its own credit: see Data sources and licences.

Next

This page as Markdown ยท llms.txt