Location
A place, with how many posts are tagged at it.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe place's link (https://www.instagram.com/explore/locations/<id>/<name>/).
id?stringThe place's id (a post's ext.location.id), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*An Instagram place.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.instagram.location({ id: "212988663" });Example Response
{ "data": { "id": "212988663", "name": "New York, New York", "url": "https://www.instagram.com/explore/locations/212988663/new-york-new-york", "category": "City", "address": null, "city": null, "zip": null, "phone": null, "website": null, "latitude": 40.7142, "longitude": -74.0064, "posts": 84371541, "priceRange": 3 }}