Find places that match intents near a location
atly.places.search.intentFind places for an intent near a location
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latência p50
- ——
- Última verificação
- 2 de nov. de 2026Verificado e funcionando
POSThttps://toolswitch.dev/v1/tools/atly.places.search.intentBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
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.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
lat | número | Opcional | With lon (and optionally radius_km) instead of area_id. | |
lon | número | Opcional | ||
limit | inteiro | Opcional | Places to return. | 3 |
area_id | string | Opcional | 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 | número | Opcional | Search radius around lat/lon in km, held to 0.2-50. | |
categories | array[string] | Obrigatório | 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] | Opcional | 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. | |
- Corpo (JSON)
latnúmeroOpcionalWith lon (and optionally radius_km) instead of area_id.
lonnúmeroOpcionallimitinteiroOpcionalPlaces to return.
Exemplo:
3area_idstringOpcionalUp 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.
Exemplo:
New Yorkradius_kmnúmeroOpcionalSearch radius around lat/lon in km, held to 0.2-50.
categoriesarray[string]Obrigatório1-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.
Exemplo:
["Cappuccino"]place_typearray[string]OpcionalWords 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.
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.