querystringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
querystringobbligatorioPlace name, address or city to search for.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Instagram Location SearchQuesta API Instagram | Da $0.0011 per chiamata | JSON |
Instagram | Da $0.0011 per chiamata | JSON |
Instagram | Da $0.001 per chiamata | JSON |
Instagram | Da $0.0011 per chiamata | JSON |
Instagram | Da $0.0012 per chiamata | JSON |
Instagram | Da $0.0011 per chiamata | JSON |
Guide:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/instagram/search-locations con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.0011 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: query (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Instagram Location Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Instagram.