Skip to main content

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​

ParameterInRequiredDescription
pkpathyesNumeric 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"
}
FieldTypeDescription
location.pkstringLocation id — pass to location medias
location.name / short_namestringDisplay names
location.lat, location.lngfloatCoordinates
location.address, location.citystringPostal address parts, may be empty
location.categorystringPlace category, e.g. "Public Square"
location.external_sourcestringWhere the place originated — facebook_places for Instagram locations
location.facebook_places_idstringFacebook Places id; equals pk
location.phone, location.websitestringContact 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​

HTTPMeaning
401 / 403 / 429see Rate limits
404location 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).