Menu

Endpoints

Places

Businesses and points of interest, by what they are and where they are, as data an agent can use.

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

Text
POST https://api.millionshort.com/v1/places

Places finds businesses and points of interest by what they are and where they are: "coffee near Leslieville, Toronto", "pharmacy within a kilometre of this point", "museums inside this box", "branches of this chain near this IP address's city". Each place comes back as data: its name, category, address, coordinates, distance, phone number and website. The call is synchronous, and nothing is fetched from any site to answer it.

It is the places search behind the Maps tab of the MillionShort search site, as an endpoint. There is no map and there are no tiles: only the data.

What it is for

What a place carries

FieldNotes
name
category, categoriesFrom one tree of categories, so dental_clinic means the same everywhere
addressIn parts: street, unit, city, region, postcode, country, and one formatted line
lat, lng, distance_mThe distance is from the point searched around
phone, websiteWhere known
brandFor branches of a chain
hours, open_nowWhere known, which is a small share of places
last_seenThe day the place was last confirmed

What is not known is null. It is never left out and never made up.

Coverage

Read this before you build on it.

Which filters work where sets this out filter by filter. The curated Local directory of the search site is not part of this endpoint.

Attribution

The places come from open data, and some of its licences ask for a credit. Every answer carries data.attribution: one line of text, and the address of the page that lists each source and its licence. If you show these places to people, show that line, or a link to the page it names, with them. Parameters has the field.

In this section

On the search site

A person can search the same places on the Maps tab of the search site, and browse its Local tab, a curated directory of local businesses in cities of Canada and the United States.

With the other endpoints

Search finds pages; Places finds the businesses themselves. A place's website is a site you can search inside, and Extract can read its pages. The endpoints says where each one stands.

This page as Markdown ยท llms.txt