querystringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
querystringwajibPlace name, address or city to search for.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Instagram Location SearchAPI ini Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.001 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.0012 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Panduan:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/instagram/search-locations dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0011 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: query (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Instagram Location Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Instagram secara terpisah.