Find places that match intents near a location
atly.places.search.intentFind places for an intent near a location
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- 2026/11/02動作確認済み
POSThttps://toolswitch.dev/v1/tools/atly.places.search.intentBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
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.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
lat | 数値 | 任意 | With lon (and optionally radius_km) instead of area_id. | |
lon | 数値 | 任意 | ||
limit | 整数 | 任意 | Places to return. | 3 |
area_id | 文字列 | 任意 | 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 | 数値 | 任意 | Search radius around lat/lon in km, held to 0.2-50. | |
categories | array[string] | 必須 | 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] | 任意 | 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. | |
- リクエストボディ(JSON)
lat数値任意With lon (and optionally radius_km) instead of area_id.
lon数値任意limit整数任意Places to return.
例:
3area_id文字列任意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 Yorkradius_km数値任意Search radius around lat/lon in km, held to 0.2-50.
categoriesarray[string]必須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_typearray[string]任意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.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。