Skip to Content

Location

A place, with how many posts are tagged at it.

GET
/v1/instagram/location

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The place's link (https://www.instagram.com/explore/locations/<id>/<name>/).

id?string

The place's id (a post's ext.location.id), instead of url.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

An Instagram place.

Example Request
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  }}