Resolve any Instagram location by id, pull the top public posts geotagged at a place, and search venues by latitude and longitude — with a single REST call. No Instagram login or access token required. Clean JSON, free tier.
Every public post, reel or story can be tagged to a place, and Instagram maintains a rich database of those locations — venues, landmarks, cities and businesses. The InstaGapi Location API lets you resolve any location by its numeric id to get structured place details, pull the top public media geotagged there, and search for places by latitude and longitude.
Call /api/v1/location/by/id with a location id to get a single location object — its pk, name, category, full address (address, city, zip), phone, website, coordinates (lat, lng) and the external_id / external_id_source that link it to the underlying places database. Use /location/medias/top to fetch a JSON array of the top posts checked in at that place, or /location/search with lat and lng to return an array of nearby matching locations.
Place details
Name, address, category and coordinates
Geotagged media
Top public posts checked in at a place
Coordinate search
Find locations by lat and lng
Just send your key in the X-Api-Key header:
curl -H "X-Api-Key: sk_live_your_key_here" \
"https://api.instagapi.com/api/v1/location/by/id?id=212988663"Simplified for readability — see the docs for the full schema.
{
"pk": "212988663",
"name": "Empire State Building",
"phone": "+1 212-736-3100",
"website": "http://www.esbnyc.com/",
"category": "Landmark & Historical Place",
"hours": {}, // opening hours, when the place lists them
"address": "350 5th Ave",
"city": "New York, New York",
"zip": "10118",
"lng": -73.985428,
"lat": 40.748817,
"external_id": "212988663",
"external_id_source": "facebook_places"
}/api/v1/location/by/idGet location info
/api/v1/location/medias/topGet top media at a location
/api/v1/location/searchSearch locations by coordinates
Find the most popular public posts geotagged at a venue, neighborhood or landmark to see what people share there.
Track public media checked in at your stores or event spaces to gauge foot-traffic buzz and customer content.
Surface real visitor photos and reels for hotels, restaurants and attractions to power guides, listings or reviews.
Search places by coordinates and compare geotagged activity across areas to inform expansion or ad targeting.
One of 60+ endpoints. Explore more in the full documentation:
GET /api/v1/location/by/id returns a single location object — pk, name, phone, website, category, hours, address, city, zip, lng, lat, external_id and external_id_source. The medias/top and search endpoints each return a raw JSON array.
Use /api/v1/location/search with lat and lng coordinates to get an array of matching places, each with its pk — then pass that pk as the id to /location/by/id or /location/medias/top.
Yes. Call /api/v1/location/medias/top with the location id to get a JSON array of the top public media geotagged at that place.
No. Requests are authenticated with your InstaGapi key in the X-Api-Key header — there is no Instagram login, OAuth or access token involved.
InstaGapi is an independent service, not affiliated with Instagram or Meta, and returns publicly available data only. You are responsible for using it in line with Instagram's terms and the laws that apply where you operate.
They link the Instagram place to the underlying places database it comes from — external_id_source names the source (for example facebook_places) and external_id is that record’s identifier.
Create a free account, grab your API key, and make your first request today. No credit card required.