Instagram Location Details & Posts API
Look up any Instagram place by its numeric location ID to get its address, GPS coordinates, category, contact details and post count, or pull paginated top (ranked) and latest (recent) posts tagged there.
Request
GET /v1/locations/{location_id} ·
1 credit per successful call
curl "https://api.igramapi.com/v1/locations/212988663" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/locations/212988663",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/locations/212988663", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/locations/212988663");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"location": {
"id": "212988663",
"name": "Example Landmark",
"slug": "example-landmark",
"address": "Midtown",
"city": "New York",
"zip": "10036",
"lat": 40.758,
"lng": -73.9855,
"category": "Landmark",
"post_count": 987654,
"canonical_url": "https://www.instagram.com/explore/locations/212988663/"
},
"cached": false
} All values above are made-up examples. Media links are temporary Instagram CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
location_idrequired | path | Numeric location ID (from /v1/search places or /v1/resolve). |
Response fields
| Field | Type | Description |
|---|---|---|
location.id / name / category | string | Place identifier, title and category. |
location.address / city / lat / lng | string / number | null | Street details and coordinates. |
location.post_count | integer | null | Total tagged posts reported for the place. |
Place details (1 credit)
Address, city, zip, coordinates, category, phone, website and total tagged post count.
Ranked and recent feeds (2 credits)
Call /v1/locations/{location_id}/posts?tab=ranked|recent with cursor pagination.
Pairs with Search & Resolve
Extract location IDs from /v1/search places, post payloads or /v1/resolve.
Local discovery, travel and venue analytics
Track what visitors are posting at hotels, restaurants, events and landmarks. Switch tab=recent to monitor newly tagged posts and reels in chronological order.
Frequently asked questions
Where do I get a location_id?
From places[].pk in /v1/search, from location.id on a post, or from /v1/resolve on an Instagram location URL.
How do I fetch posts at a location?
Call GET /v1/locations/{location_id}/posts (2 credits per page) with tab=ranked or tab=recent.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the Location API free
Create a key and make your first request in minutes. 100 free credits every month.