Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Instagram Location Details (V3)

Dokumentacja API
https://api.sandbase.ai/v1/api/instagram/v3/location-info

Returns detailed place information including name, address, coordinates, and nearby places for an Instagram location. Queries are based on a specific location ID.

Cena
$0.008USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 1 opcjonalnych

Playground

Wejście
Location ID (numeric)
Whether to show nearby places (default true)
WyjściePrzykład
Odpowiedźoutputs · 595 B · 28 wierszy
[
  {
    "data": {
      "_rid": "32345defb5990",
      "address": "",
      "city": "Changwon",
      "external_id": 144811708967490,
      "external_id_source": null,
      "id": "1016248898",
      "lat": null,
      "lng": null,
      "location": {
        "address": "",
        "city": "Changwon",
        "external_id": 144811708967490,
        "external_id_source": null,
        "id": "1016248898",
        "lat": null,
        "lng": null,
        "name": "창원",
        "pk": "1016248898"
      },
      "name": "창원",
      "nearby_locations": [],
      "pk": "1016248898"
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README API

Instagram Location Details (V3) API

Returns details for one Instagram location, such as its name, city, address, and coordinates. It needs a numeric location_id. It can also list nearby places when show_nearby is on.

Use cases

  • Resolve a numeric Instagram location ID into a readable place name and city.
  • Link an Instagram location to an outside place record using external_id.
  • Label location-tagged posts with a place name before you analyze them.
  • Check whether a location has coordinates and a street address on file.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/location-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location_id": "1016248898"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
location_idstringYesLocation ID (numeric)
show_nearbybooleanNoWhether to show nearby places (default true)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "_rid": "3cda064c29f93",
  "address": "",
  "city": "Changwon",
  "external_id": 144811708967490,
  "external_id_source": null,
  "id": "1016248898",
  "lat": null,
  "lng": null,
  "location": {
    "address": "",
    "city": "Changwon",
    "external_id": 144811708967490,
    "external_id_source": null,
    "id": "1016248898",
    "lat": null,
    "lng": null,
    "name": "창원",
    "pk": "1016248898"
  },
  "name": "창원",
  "nearby_locations": [],
  "pk": "1016248898"
}

Response fields

FieldMeaning
nameDisplay name of the location. In this response it is 창원, written in Korean.
cityCity the location belongs to, for example Changwon.
id / pkThe Instagram location ID as a string. Both hold the same value as the location_id you sent.
addressStreet address text. It can be an empty string when none is on file.
lat / lngLatitude and longitude of the place. Both are null when the location has no coordinates.
external_idNumeric ID of the place in an outside source. external_id_source names that source and can be null.
nearby_locationsList of nearby places. It is empty here, and may be empty for locations with no neighbors.
locationNested copy of the main place fields: name, city, address, lat, lng, id, pk and external_id.

Notes

Pricing

$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Instagram$0.008 za wywołanieJSON
Instagram$0.008 za wywołanieJSON
Instagram$0.008 za wywołanieJSON
Instagram$0.008 za wywołanieJSON
Instagram$0.002 za wywołanieJSON
Instagram$0.008 za wywołanieJSON

Przewodniki:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Instagram Location Details (V3)?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/instagram/v3/location-info z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Instagram Location Details (V3)?

$0.008 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Instagram Location Details (V3)?

Wymagane: location_id (string). Opcjonalne: show_nearby (boolean). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Instagram Location Details (V3)?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Instagram lub klucza API?

Nie. Instagram Location Details (V3) działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Instagram.