Find places that match intents near a location
atly.places.search.intentFind places for an intent near a location
- Prix
- freeAu prix catalogue
- Taux de réussite
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latence p50
- ——
- Dernière vérification
- 2 nov. 2026Vérifié et opérationnel
POSThttps://toolswitch.dev/v1/tools/atly.places.search.intentBeta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
lat | nombre | Facultatif | With lon (and optionally radius_km) instead of area_id. | |
lon | nombre | Facultatif | ||
limit | entier | Facultatif | Places to return. | 3 |
area_id | chaîne | Facultatif | 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 | nombre | Facultatif | Search radius around lat/lon in km, held to 0.2-50. | |
categories | array[string] | Obligatoire | 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] | Facultatif | 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. | |
- Corps (JSON)
latnombreFacultatifWith lon (and optionally radius_km) instead of area_id.
lonnombreFacultatiflimitentierFacultatifPlaces to return.
Exemple :
3area_idchaîneFacultatifUp 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.
Exemple :
New Yorkradius_kmnombreFacultatifSearch radius around lat/lon in km, held to 0.2-50.
categoriesarray[string]Obligatoire1-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.
Exemple :
["Cappuccino"]place_typearray[string]FacultatifWords 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.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.