Instagram location info API
GET /ig/location/info/{pk} · base https://api.getsocialapi.com/v1
Location card: coordinates, address and category. The pk equals
facebook_places_id. Upstream: locations/{pk}/info/.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
pk | path | yes | Numeric location id, 1–20 digits (= facebook_places_id) |
Example
curl https://api.getsocialapi.com/v1/ig/location/info/213145014 \
-H "X-API-Key: gsa_live_..."
Response
{
"location": {
"pk": 213145014,
"facebook_places_id": 106339232734991,
"external_source": "facebook_places",
"name": "Florianópolis, Santa Catarina",
"address": "",
"city": "",
"has_viewer_saved": false,
"short_name": "Florianópolis",
"lng": -48.5466,
"lat": -27.593
},
"status": "ok"
}
| Field | Type | Description |
|---|---|---|
location.pk | string | Location id — pass to location medias |
location.name / short_name | string | Display names |
location.lat, location.lng | float | Coordinates |
location.address, location.city | string | Postal address parts, may be empty |
location.category | string | Place category, e.g. "Public Square" |
location.external_source | string | Where the place originated — facebook_places for Instagram locations |
location.facebook_places_id | string | Facebook Places id; equals pk |
location.phone, location.website | string | Contact fields, empty string when not filled |
note
There is no location-name search route yet — find pk externally (any place
database keyed by facebook_places_id works).
Errors
| HTTP | Meaning |
|---|---|
401 / 403 / 429 | see Rate limits |
404 | location does not exist |
note
The location id in the example is verified to exist, but third-party objects
are not stable: a location or profile can be deleted or hidden at any moment,
and a 404 is a valid outcome for such requests (counted as a successful
lookup — see Rate limits).