querystring必須
Place name, address or city to search for.
https://api.sandbase.ai/v1/api/instagram/search-locationsSearch Instagram locations by keyword and return each place's id, name, address and coordinates.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API searches Instagram locations by keyword. It needs one query (a place name, address or city) and returns matching places with an id, name, address, city and coordinates.
id for a landmark so you can pull posts tagged there.curl -X POST "https://api.sandbase.ai/v1/api/instagram/search-locations" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Eiffel Tower"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Place name, address or city to search for. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"locations": [
{
"address": "Champ-de-Mars",
"city": "",
"id": "103912118089363",
"latitude": 48.85824768693,
"longitude": 2.2944650859978,
"name": "Eiffel Tower, Paris, France",
"shortName": "Eiffel Tower"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.locations[].id | Instagram location ID as a string. Use it to look up posts or details for that place. |
data.locations[].name | Full display name of the place, sometimes with city and country, such as Eiffel Tower, Paris, France. |
data.locations[].shortName | Shorter name of the place without the city or country. |
data.locations[].address | Street or area address of the place. It can be an empty string. |
data.locations[].city | City of the place. It can be an empty string. |
data.locations[].latitude / data.locations[].longitude | Coordinates of the place in decimal degrees. |
found | true when the search returned at least one location. |
city, latitude and longitude before you pick an id.address and city are often empty strings. Use name and the coordinates when they are.id to Instagram Location Posts to get posts tagged at that place.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/instagram/search-locations" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Eiffel Tower"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
querystring必須Place name, address or city to search for.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Instagram | 1回あたり $0.0011 から | JSON |
Instagram | 1回あたり $0.0011 から | JSON |
Instagram | 1回あたり $0.001 から | JSON |
Instagram | 1回あたり $0.0011 から | JSON |
Instagram | 1回あたり $0.0012 から | JSON |
Instagram | 1回あたり $0.0011 から | JSON |
ガイド:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/instagram/search-locations に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0011 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: query (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Instagram Location Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Instagram の API アクセスを別途申請する必要はありません。