# Places parameters

Every field of a Places request, and everything that comes back for each place.

```text
POST https://api.millionshort.com/v1/places
```

Finds businesses and points of interest by what they are and where they are, and returns them as data. The call is synchronous. Nothing is fetched from any site to answer it. There is no map and there are no tiles.

## Request

A request says **what** is sought, **where** to look, how to **narrow** the places, and how to **shape** the answer. Any field not listed here is a `400 INVALID_PARAM`.

### What

Send at least one of `query`, `category` and `brand`.

| Field | Type | Example | Notes |
|---|---|---|---|
| `query` | string, 1 to 200 characters | `"query": "bike repair"` | A kind of place, a name or a brand. Never read as a location |
| `category` | a category id or its name, or a list of up to 10 | `"category": "coffee_shop"`, `"category": ["Coffee shop", "cafe"]` | Keeps only places filed under one of them, or below it. See [Categories](#categories) |
| `brand` | string, up to 120 characters | `"brand": "Tim Hortons"` | A chain or brand by name. Sent alone, it is searched by that name |

With both `query` and `category`, `category` decides which places are kept: `"query": "coffee", "category": "bakery"` returns bakeries.

### Where

Send at most **one** of these six. Two of them in one request is a `400`.

| Field | Type | Example | Notes |
|---|---|---|---|
| `near` | string, up to 200 characters | `"near": "Leslieville, Toronto"` | A place by name. See [How `near` is read](https://millionshort.com/docs/places/guides#how-near-is-read) |
| `lat`, `lng` | numbers, -90 to 90 and -180 to 180 | `"lat": 43.6532, "lng": -79.3832` | A point. They go together |
| `bbox` | `[south, west, north, east]`, in degrees | `"bbox": [48.85, 2.29, 48.87, 2.35]` | A box |
| `ip` | one public IPv4 or IPv6 address | `"ip": "203.0.113.24"` | The approximate location of that address: the nearest city we can place it in. See [IP addresses](#ip-addresses) |
| `near_me` | boolean | `"near_me": true` | As `ip`, with the address this call came from |
| `neighbourhood` | string, up to 120 characters | `"neighbourhood": "Leslieville", "city": "Toronto"` | A neighbourhood by name. Send `city` with it when the name is common |

A name or a brand can be searched with no location at all. A kind of place cannot: "coffee" with nowhere to look is a [`400`](https://millionshort.com/docs/places/errors#location-errors). The address a request comes from is used only when `near_me` says so.

### Narrowing

| Field | Type | Example | Notes |
|---|---|---|---|
| `city` | string, up to 120 characters | `"city": "Austin"` | With none of the six fields above, `city` is where to look. Beside `neighbourhood` it says which city's. Otherwise it keeps only places whose address has that city. Compared without case |
| `region` | string, up to 120 characters | `"city": "Austin", "region": "TX"` | Goes with `city` as a location, and is then not checked on the places. Otherwise it keeps only places whose address has that region code. Compared without case |
| `country` | two-letter country code | `"country": "CA"` | Keeps only places whose address is in that country |
| `radius_m` | integer, 10 to 50,000 | `"radius_m": 1500` | A fixed radius in metres around the location. Not with `bbox`. Without it the radius fits the place |
| `exclude_category` | as `category` | `"exclude_category": ["fast_food_restaurant"]` | Leaves out places filed under any of these |
| `has_phone` | boolean | `"has_phone": true` | `true` keeps only places with a phone number |
| `has_website` | boolean | `"has_website": true` | `true` keeps only places with a website |
| `has_hours` | boolean | `"has_hours": true` | `true` keeps only places whose opening hours we know |
| `open_now` | boolean | `"open_now": true` | `true` keeps only places whose hours we know and that are open now |
| `min_popularity` | integer, 0 to 100 | `"min_popularity": 50` | Keeps only places whose [`popularity`](https://millionshort.com/docs/places/guides#how-popularity-is-scored) is at least this, among the best matches (up to 100 of them) |

### Shaping

| Field | Type | Default | Example | Notes |
|---|---|---|---|---|
| `sort` | `relevance`, `distance` or `popularity` | `relevance` | `"sort": "distance"` | `distance` needs a point to measure from. With an area, or with no location, it is not applied, and the answer carries a `sort_not_applied` warning. `popularity` takes the best matches (up to 100 of them) and returns the most popular first |
| `fields` | a list of [place fields](#a-place) | all | `"fields": ["name", "address", "phone"]` | Only these fields come back on each place. It changes no price |
| `limit` | integer, 1 to 50 | `10` | `"limit": 20` | How many places to return. With `"layer": "both"`, how many in each list |
| `layer` | `merged`, `osm` or `both` | `merged` | `"layer": "both"` | Which list of places to search. `merged` is our combined list. `osm` is the OpenStreetMap layer, a separate list under its own licence. `both` returns the two lists side by side, `results` and `osm_results`, never mixed. The OpenStreetMap layer is being switched on: until it is, `layer` is refused as an unknown parameter (400 INVALID_PARAM, free). See [Data sources and licences](#data-sources-and-licences) |

### Which filters work where

Every field works worldwide, on the same places. What varies from one part of the world to another is how well a place *name* is read, and how much of the data a filter has to work with.

| | Canada and the United States | Elsewhere |
|---|---|---|
| `lat` with `lng`, `bbox`, `radius_m` | Works | Works the same |
| `near` with a city name | Read well, with or without the state or province ("Denver, CO") | A plain city name, or a city with its country ("Paris, France"), usually works |
| `near` with a neighbourhood, a postcode, an intersection; `neighbourhood` | Read best here | Uneven. Prefer `lat` with `lng` |
| Everyday trade words in `query` ("plumber", "dentist") | Read best here | Category ids are the safer choice |
| `city`, `country` as a check on the address | Works | Works |
| `region` as a check on the address | A state or province code (`ON`, `TX`) | An address may carry its region in words, or none. Prefer `country` and `city` |
| `ip`, `near_me` | Placed in a city, more reliably here | Placed in a city, or the nearest town we know |
| `category`, `exclude_category`, `brand` | Works | Works |
| `has_phone`, `has_website` | Works | Works |
| `has_hours`, `open_now` | Only where hours exist: few places | The same, and fewer still |
| `sort`, `min_popularity`, `fields`, `limit` | Works | Works |

Three more things to know:

- **The Local directory is not part of this endpoint.** The search site's Local tab is a curated directory for cities of Canada and the United States, with its own categories. Places returns the worldwide places behind the Maps tab.
- **Cuisines are categories.** There is no separate cuisine field: use `sushi_restaurant`, `italian_restaurant` and the like.
- **What we do not hold has no filter.** No amenity tags (wifi, parking, wheelchair access), no ratings, reviews, photos or price levels.

### Categories

A category has an id, such as `coffee_shop`, `pharmacy` or `museum`, and a name, such as "Coffee shop". `category` and `exclude_category` take either: a name is read as its id. Categories form a tree, and a category matches the places filed under it or under anything below it, so `restaurant` covers `sushi_restaurant`.

Every place in an answer lists the ids it is filed under in `categories`, the broader ones first, and any of them can be sent as `category`. A category we do not have is a `400 INVALID_PARAM`. The list below has every one.

#### The category list

```text
GET https://api.millionshort.com/v1/places/categories
```

Free. Returns the categories a place can be filed under.

| Query parameter | Example | Notes |
|---|---|---|
| `q` | `?q=sushi`, `?q=coffee%20shop` | Keeps the categories whose id holds every word. Up to 80 characters |
| `parent` | `?parent=italian_restaurant` | Keeps the categories directly under this one |

```bash
curl "https://api.millionshort.com/v1/places/categories?q=sushi" \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY"
```

```python
import os

import requests

r = requests.get(
    "https://api.millionshort.com/v1/places/categories?q=sushi",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/places/categories?q=sushi', {
  headers: { Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}` },
});
if (!res.ok) throw new Error(`GET /v1/places/categories failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);
```

```text
{
  "data": {
    "categories": [
      { "id": "sushi_restaurant", "label": "Sushi restaurant", "parent": "japanese_restaurant" }
    ]
  },
  "request_id": "req_01JD0PLACESCAT4H8W2",
  "usage": { "credits": 0, "cost_usd": 0, "breakdown": { "place_categories": 0 } },
  "warnings": []
}
```

Each entry has `id`, `label` and `parent`; `parent` is `null` at the top of the tree. With no parameter the whole tree comes back, about two thousand categories. The list does not say how many places a category holds.

### IP addresses

`ip` and `near_me` search around the approximate location of an IP address.

- **City level only.** The address is placed in the nearest city we know for its network, and the search runs around that city's point, rounded to two decimals. `resolved` says which city was used, with `"kind": "ip"` and `"accuracy": "city"`. It can be the wrong city: a mobile network or a VPN is often placed far from the person.
- **The address is used to look up a city and then dropped.** It is not written to the request log, not kept, and not returned. It goes no further than our own search service, which does the lookup and keeps nothing of it.
- **`near_me` means the machine that makes the call.** With cURL or an SDK on a server, that is the server, not the person your agent is working for. To search near a person, send that person's address as `ip` or, better, a position they shared as `lat` with `lng`.
- An address we cannot place, and a call from a private network with `near_me`, is a [`location_not_found`](https://millionshort.com/docs/places/errors#location-errors).

## Examples

A category inside a box:

```bash
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "category": "museum",
    "bbox": [48.85, 2.29, 48.87, 2.35],
    "limit": 20
  }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/places",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "category": "museum",
        "bbox": [
            48.85,
            2.29,
            48.87,
            2.35
        ],
        "limit": 20
    },
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/places', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "category": "museum",
    "bbox": [
      48.85,
      2.29,
      48.87,
      2.35
    ],
    "limit": 20
  }),
});
if (!res.ok) throw new Error(`POST /v1/places failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);
```

Restaurants in a neighbourhood, nearest first, leaving two categories out, with only four fields back:

```bash
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "restaurant",
    "neighbourhood": "Leslieville",
    "city": "Toronto",
    "exclude_category": ["pizza_restaurant", "Fast food restaurant"],
    "has_website": true,
    "sort": "distance",
    "fields": ["name", "category", "distance_m", "website"]
  }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/places",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "query": "restaurant",
        "neighbourhood": "Leslieville",
        "city": "Toronto",
        "exclude_category": [
            "pizza_restaurant",
            "Fast food restaurant"
        ],
        "has_website": True,
        "sort": "distance",
        "fields": [
            "name",
            "category",
            "distance_m",
            "website"
        ]
    },
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/places', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "query": "restaurant",
    "neighbourhood": "Leslieville",
    "city": "Toronto",
    "exclude_category": [
      "pizza_restaurant",
      "Fast food restaurant"
    ],
    "has_website": true,
    "sort": "distance",
    "fields": [
      "name",
      "category",
      "distance_m",
      "website"
    ]
  }),
});
if (!res.ok) throw new Error(`POST /v1/places failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);
```

Branches of a chain around an IP address's city that have opening hours on record:

```bash
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "brand": "Tim Hortons",
    "ip": "203.0.113.24",
    "radius_m": 3000,
    "has_hours": true
  }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/places",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "brand": "Tim Hortons",
        "ip": "203.0.113.24",
        "radius_m": 3000,
        "has_hours": True
    },
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/places', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "brand": "Tim Hortons",
    "ip": "203.0.113.24",
    "radius_m": 3000,
    "has_hours": true
  }),
});
if (!res.ok) throw new Error(`POST /v1/places failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);
```

Dentists in a city, by city and state:

```bash
curl https://api.millionshort.com/v1/places \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "category": "dental_clinic",
    "city": "Austin",
    "region": "TX",
    "has_phone": true
  }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/places",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "category": "dental_clinic",
        "city": "Austin",
        "region": "TX",
        "has_phone": True
    },
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/places', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "category": "dental_clinic",
    "city": "Austin",
    "region": "TX",
    "has_phone": true
  }),
});
if (!res.ok) throw new Error(`POST /v1/places failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);
```

## Response

`data` has three parts: `resolved`, `results` and `attribution`. The envelope around it (`request_id`, `usage`, `warnings`) is the one every endpoint uses.

With `"layer": "osm"`, `data` also has `"layer": "osm"`, and `results` are places of the OpenStreetMap layer. With `"layer": "both"`, `data` has `"layer": "both"`, then `results` and `attribution` as for `merged`, and `osm_results` and `osm_attribution` for the OpenStreetMap layer. See [Data sources and licences](#data-sources-and-licences).

### resolved

What the location was taken to mean. For a name (`near`, `neighbourhood`, or a `city` used as the location) it is the place found. For `ip` and `near_me` it is the city the address was placed in. It is `null` for `lat` with `lng`, for `bbox`, and for a search with no location.

| Field | Type | Notes |
|---|---|---|
| `name` | string | The place found |
| `region` | string or null | For a named place, a state, province or region code such as `ON`, when it has one. For an IP address, the region as we have it, which can be in words |
| `country` | string or null | Two-letter country code |
| `lat`, `lng` | numbers | Its position |
| `kind` | `area`, `point` or `ip` | A city or a region is an `area`. A neighbourhood, a postcode, an address or a landmark is a `point`. `ip` is the city an address was placed in |
| `accuracy` | `"city"` or null | `"city"` for `ip` and `near_me`; `null` otherwise |
| `alternatives` | list, up to 5 | Other places of that name, each with `name`, `region` and `country`. Empty for `ip` |

```text
"resolved": {
  "name": "Toronto",
  "region": "ON",
  "country": "CA",
  "lat": 43.71,
  "lng": -79.4,
  "kind": "ip",
  "accuracy": "city",
  "alternatives": []
}
```

The IP address itself is never in an answer.

### A place

Each entry of `results`. Every field is present unless the request's `fields` picked some; what is not known is `null`.

| Field | Type | Notes |
|---|---|---|
| `id` | string | Our id for the place |
| `name` | string | |
| `category` | object or null | The place's own category: `id` and `label` |
| `categories` | list of strings | Every category id the place is filed under, the broader ones first |
| `address` | object | `street`, `unit`, `city`, `region`, `postcode`, `country` (two letters) and `formatted`, each a string or null |
| `lat`, `lng` | numbers | |
| `distance_m` | integer or null | Metres from the point searched around: a named place when it is a `point`, the city an `ip` was placed in, `lat` and `lng`, or the middle of `bbox`. `null` when the location is an `area`, which has no one point, and when no location was sent |
| `phone` | string or null | In international form, such as `+14165550142` |
| `website` | string or null | |
| `brand` | string or null | For a branch of a chain |
| `hours` | object or null | `timezone`, `weekly` and `partial`. See below. `null` for most places |
| `open_now` | boolean or null | `null` when the hours are not known |
| `last_seen` | date or null | The day the place was last confirmed by one of the data's sources. Not an edit by its owner |
| `popularity` | integer 0 to 100, or null | How well known the place is. See [How popularity is scored](https://millionshort.com/docs/places/guides#how-popularity-is-scored) |

`hours.weekly` has one list per day, `monday` to `sunday`, of opening spans in the place's local time, written `"07:00-17:00"`. A day with none listed is an empty list. `hours.timezone` is the place's time zone, and `hours.partial` is `true` when some of the hours on record could not be read.

```text
"hours": {
  "timezone": "America/Toronto",
  "weekly": {
    "monday": ["07:00-17:00"], "tuesday": ["07:00-17:00"], "wednesday": ["07:00-17:00"],
    "thursday": ["07:00-17:00"], "friday": ["07:00-19:00"], "saturday": ["08:00-19:00"], "sunday": []
  },
  "partial": false
},
"open_now": true
```

Results come most relevant first, nearest first with `"sort": "distance"`, or most popular first with `"sort": "popularity"`. A place carries no rating, review, photo or price level, and no answer says which source a field came from.

### Attribution

```text
"attribution": {
  "text": "Place data from open data sources. Credits and licences: https://millionshort.com/credits#places",
  "url": "https://millionshort.com/credits#places"
}
```

The places come from open data, and some of its licences ask for a credit. Every answer carries this object: one line of text, and the address of the page that lists each source and its licence. No parameter removes it: `fields` shapes the places, not the credit.

**If you show these places to people, you must show that line, or a link to that page, with them.** Our terms of service require it, and following it is up to you. Take the text from the answer; do not copy it from this page, because it can change.

### Data sources and licences

The OpenStreetMap layer is being switched on. Until it is, the API refuses `layer` as an unknown parameter (400 INVALID_PARAM, free), and every answer is our combined list. What follows applies from the day it is on.

Places of the OpenStreetMap layer (`"layer": "osm"`, and `osm_results` with `"layer": "both"`) are © OpenStreetMap contributors. The data is available under the [Open Database License (ODbL) 1.0](https://opendatacommons.org/licenses/odbl/1-0/). See [openstreetmap.org/copyright](https://www.openstreetmap.org/copyright).

This layer is a separate list. Its places are never merged, de-duplicated or ranked with the other places. With `"layer": "both"` the two lists come back side by side: each is the answer its layer gives alone, and a place can be in both. `limit`, `sort`, `min_popularity`, `fields` and every filter apply to each list on its own.

Every place of the OpenStreetMap layer carries its credit, and `fields` cannot remove it:

```text
{
  "name": "…",
  "layer": "osm",
  "licence": "ODbL-1.0",
  "attribution": {
    "text": "© OpenStreetMap contributors",
    "url": "https://www.openstreetmap.org/copyright"
  }
}
```

The answer carries the layer's credit too: `attribution` with `"layer": "osm"`, or `osm_attribution` with `"layer": "both"`. Each has `text`, `url` and `licence` (`"ODbL-1.0"`).

**Terms for the OpenStreetMap layer.** Our terms of service say two things about these places:

- If you show places of the OpenStreetMap layer to people, show "© OpenStreetMap contributors", linked to [https://www.openstreetmap.org/copyright](https://www.openstreetmap.org/copyright), next to them.
- Nothing in our terms restricts the rights the ODbL gives you over places of the OpenStreetMap layer. Paying for the API and its rate limits apply to calls, not to what you do with those places once you have them.

#### How to obtain the OpenStreetMap layer

The OpenStreetMap layer is a database derived from OpenStreetMap alone. We offer it under the Open Database License (ODbL) 1.0. It is refreshed every week from the public OpenStreetMap data. Write to support@millionshort.com for a copy of the layer as we serve it (a data file, under the ODbL), or for a description of how it is made from the public data. The same offer is on the [Credits page](https://millionshort.com/credits#osm).

### Data notices

Some of the place data comes from Foursquare Open Source Places, which Foursquare Labs, Inc. publishes under the Apache License, Version 2.0 (apache.org/licenses/LICENSE-2.0). Its notice asks that its content go in the developer documentation of an API that serves the data. Here it is, as Foursquare publishes it:

```text
© 2026 Foursquare Labs, Inc. All rights reserved.
The Foursquare OS Places dataset (the “Data”) is licensed under the Apache License, Version 2.0 (the “License”). You may not use, modify, or distribute the Data except in compliance with the License.
As set forth more fully in the License, if you use, modify, or distribute the Data, you must:
– provide recipients with a copy of the License.
– if applicable, include prominent notices to the extent you’ve changed the Data.
– preserve attribution to Foursquare, including preserving the full content of this NOTICE.txt file.
To ensure appropriate attribution to Foursquare, we recommend the following:
– if using/distributing the Data in flat file form as-is or after making changes/modifications: include this NOTICE.txt file, which may be modified to include an additional notice of your changes/modifications, if any.
– if using/distributing the Data in API form as-is or after making changes/modifications: include a copy of the content from this NOTICE.txt file prominently in your developer documentation for such API, which may be modified to include an additional notice of your changes/modifications, if any.
You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, the Data distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
We also encourage you to join our Placemaker community where you can contribute and provide suggestions to improve the accuracy of the Data for future releases for yourself and others.
```

**Our changes:** we transformed the Data to our own format, normalised it, and combined it with other sources, keeping one listing per place. The same notice is on the [Credits page](https://millionshort.com/credits#places). Naming the source here is only to give the credit its licence asks for; it implies no endorsement.

### Warnings

| Code | When |
|---|---|
| `hours_coverage` | Whenever `open_now` is sent: most places have no hours on record, so open places can be missing |
| `sort_not_applied` | `"sort": "distance"` was sent and there is no point to measure from (the location is an `area`, or there is none). The places are in order of relevance |

## Limits

| Limit | Value |
|---|---|
| `limit` | 1 to 50 |
| `radius_m` | 10 to 50,000 metres |
| `category`, `exclude_category` | up to 10 each |
| `query`, `near` | up to 200 characters each |
| `brand`, `neighbourhood`, `city`, `region` | up to 120 characters each |

A plan's requests a minute and searches in flight apply as they do to a search; Places is not one of the heavy sources. [Pricing and limits](https://millionshort.com/docs/places/pricing) has the numbers.

## Credits

1 credit per list covers up to 10 places. Each further 10 places returned in that list, or part of 10, is 0.5. A call returns one list, or two with `"layer": "both"`, and each list is priced on its own. Every filter, `sort` and `fields` are free, the category list is free, and a call that fails costs nothing. [Pricing and limits](https://millionshort.com/docs/places/pricing) has worked examples.
