Find places that match intents near a location
atly.places.search.intentFind places for an intent near a location
- Price
- freeAt list price
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Nov 2, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/atly.places.search.intentBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
Ranked by Atly's 0-10 score for the requested categories, relative to other places in the same country; a place with no score is unmeasured, not bad. Each place carries quotable reasons from reviews, the Atly url to cite, a Google Maps link, and open_now when its hours are known. The first three results also carry hours, contact and good-to-know facts.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (JSON) | ||||
lat | number | Optional | With lon (and optionally radius_km) instead of area_id. | |
lon | number | Optional | ||
limit | integer | Optional | Places to return. | 3 |
area_id | string | Optional | Up to 120 characters. An area id from atly.places.areas, or a city name such as "Austin" or "Boise, ID". Give this or lat and lon, not both. | New York |
radius_km | number | Optional | Search radius around lat/lon in km, held to 0.2-50. | |
categories | array[string] | Required | 1-5 category names or ids from atly.places.categories, most important first. A name must be exact; a near miss is refused with the close matches. Every result matches all of them; if none does, trailing ones are dropped (never the first) and dropped_categories names them. | ["Cappuccino"] |
place_type | array[string] | Optional | Words matched as whole words against each place's Google place types, e.g. ["restaurant"]. Google's types are literal: for cafes pass ["cafe", "coffee"]. Use it for a kind of venue, not a dish or a feature. | |
- Request body (JSON)
latnumberOptionalWith lon (and optionally radius_km) instead of area_id.
lonnumberOptionallimitintegerOptionalPlaces to return.
Example:
3area_idstringOptionalUp to 120 characters. An area id from atly.places.areas, or a city name such as "Austin" or "Boise, ID". Give this or lat and lon, not both.
Example:
New Yorkradius_kmnumberOptionalSearch radius around lat/lon in km, held to 0.2-50.
categoriesarray[string]Required1-5 category names or ids from atly.places.categories, most important first. A name must be exact; a near miss is refused with the close matches. Every result matches all of them; if none does, trailing ones are dropped (never the first) and dropped_categories names them.
Example:
["Cappuccino"]place_typearray[string]OptionalWords matched as whole words against each place's Google place types, e.g. ["restaurant"]. Google's types are literal: for cafes pass ["cafe", "coffee"]. Use it for a kind of venue, not a dish or a feature.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X POST 'https://toolswitch.dev/v1/tools/atly.places.search.intent' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"limit":1,"area_id":"canonical-area::c790a21e-65a4-5e5c-8061-64900cd3fd0e","categories":["69e178c3-14be-11ee-a9cb-614c6a0a867a"]}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/atly.places.search.intent",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"limit\":1,\"area_id\":\"canonical-area::c790a21e-65a4-5e5c-8061-64900cd3fd0e\",\"categories\":[\"69e178c3-14be-11ee-a9cb-614c6a0a867a\"]}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/atly.places.search.intent", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"limit\":1,\"area_id\":\"canonical-area::c790a21e-65a4-5e5c-8061-64900cd3fd0e\",\"categories\":[\"69e178c3-14be-11ee-a9cb-614c6a0a867a\"]}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.