Get posts by location from Instagram with KonbiniAPI
Instagram API: Returns recent posts tagged at a location. Fixed page size of 21 (platform limit). The location ID is a numeric Facebook Places ID.
This API endpoint returns recent posts tagged at a location. Fixed page size of 21 (platform limit). The location ID is a numeric Facebook Places ID.
Perfect for
- Geotagged content analysis for location-based campaigns
- Local influencer and creator discovery by venue or city
- Physical event coverage and real-time venue activity tracking
1. Make the request
const response = await fetch("https://api.konbiniapi.com/v1/instagram/locations/1111", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
2. Get clean JSON
Response (200 OK)
{
"data": {
"@context": [
"https://www.w3.org/ns/activitystreams#",
"https://konbiniapi.com/ns/social#"
],
"type": "OrderedCollectionPage",
"partOf": "https://api.konbiniapi.com/v1/instagram/locations/213385402/posts",
"totalItems": 1309,
"cursor": "0",
"nextCursor": "1772217402000",
"next": "https://api.konbiniapi.com/v1/instagram/locations/213385402/posts?cursor=abc123&count=21",
"itemCount": 30,
"orderedItems": [
{
"type": "Video",
"id": "https://www.instagram.com/p/CybWViruta1/",
"url": "https://www.instagram.com/p/CybWViruta1/",
"entityId": "CybWViruta1",
"content": "When you realize there is a simpler way #learnfromkhaby",
"published": "2026-02-27T18:36:42.000Z",
"likeCount": 2800000,
"commentCount": 29200,
"attributedTo": {
"type": "Person",
"id": "https://www.instagram.com/khaby00/",
"url": "https://www.instagram.com/khaby00/",
"entityId": "779085683",
"preferredUsername": "khaby00",
"name": "Khabane Lame",
"icon": {
"type": "Image",
"url": "https://scontent.cdninstagram.com/v/t51.2885-19/avatar.jpg"
},
"role": "collaborator"
},
"location": {
"type": "Place",
"id": "213385402",
"name": "Los Angeles, California",
"url": "https://www.instagram.com/explore/locations/213385402/",
"latitude": 34.0522,
"longitude": -118.2437
},
"tag": [
{
"type": "Tag",
"name": "learnfromkhaby",
"href": "https://www.instagram.com/explore/tags/learnfromkhaby/"
}
],
"language": "en",
"isEdited": false,
"isSponsored": false,
"viewCount": 42600000,
"duration": 23,
"contentFormat": "reel",
"attachment": [
{
"type": "Video",
"url": [
"https://scontent.cdninstagram.com/v/t50.2886-16/video.mp4"
],
"mediaType": "video/mp4",
"width": 576,
"height": 1024
}
],
"image": {
"type": "Image",
"url": "https://scontent.cdninstagram.com/v/t51.2885-19/avatar.jpg",
"width": 1080,
"height": 1920
},
"audio": {
"type": "Audio",
"id": "https://www.instagram.com/reels/audio/293394603591002/",
"entityId": "293394603591002",
"name": "Original audio",
"artist": "khaby00",
"isOriginal": true,
"duration": 85.216
},
"name": "Photo of Khabane Lame",
"totalItems": 5,
"items": [
{
"type": "Image",
"entityId": "3214260996432123574",
"image": {
"type": "Image",
"url": "https://scontent.cdninstagram.com/v/t51.2885-19/avatar.jpg",
"width": 1080,
"height": 1920
},
"attachment": [
{
"type": "Video",
"url": [
"https://scontent.cdninstagram.com/v/t50.2886-16/video.mp4"
],
"mediaType": "video/mp4",
"width": 576,
"height": 1024
}
],
"name": "Photo of Khabane Lame"
}
]
}
]
}
}