
Returns posts tagged at one location (location_id), grouped into sections. Each section's layout_content.medias holds media entries, each with a media object (a post). The visible part shows no cursor field; the parameters max_id, next_media_ids and next_page exist for paging, but the values to use are not visible in the cut-off sample.
1 live route on Instagram, from $0.00099 per call. Every route below answered our last live test on 2026-10-07; the gateway re-tests them daily.
The upstream price you are metered at, cheapest first. A route without a published price says so.
| Provider | Endpoint | Price |
|---|---|---|
Media by locationGET ig/locations | $0.00099$0.99 / 1k calls |
From a real call to the route: FlashAPI.
statusRequest status ('ok')sections[].layout_content.medias[].media.idMedia id of the postsections[].layout_content.medias[].media.codePost shortcode, usable in the shortcode parameter of media endpointssections[].layout_content.medias[].media.user.idPoster's user idsections[].layout_content.medias[].media.user.usernamePoster's usernamesections[].layout_content.medias[].media.caption.textCaption text (may be truncated)sections[].layout_content.medias[].media.location.nameLocation name (e.g. 'Nicosia, Cyprus')sections[].layout_content.medias[].media.latLatitude of the postsections[].layout_content.medias[].media.lngLongitude of the postsections[].layout_content.medias[].media.like_countNumber of likessections[].layout_content.medias[].media.taken_atUnix timestamp of the postPaging: read `next_max_id` from the answer and send it back as `max_id=` for the next page; stop when it is empty or repeats. From MCP: call_endpoint("flashapi.media_by_location", params, pages=3) follows it for you.
HTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.
| Parameter | Type | Notes | |
|---|---|---|---|
| nocors | string · query | optional | default false |
| max_id | string · query | optional | |
| next_media_ids | string · query | optional | |
| next_page | number · query | optional | |
| location_id | number · query | required | default 213862033 |
curl "https://fetchapi.co/api/gw/flashapi/ig/locations?nocors=false&location_id=213862033" \ -H "x-api-key: YOUR_KEY"
call_endpoint("flashapi.media_by_location", {"nocors": "false", "location_id": "213862033"}){
"status": "ok",
"sections": [
{
"feed_type": "media",
"layout_type": "media_grid",
"layout_content": {
"medias": [
{
"media": {
"id": "…",
"pk": "…",
"lat": "…",
"lng": "…",
"code": "…",
"fbid": "…",
"user": "…",
"caption": "…",
"location": "…",
"taken_at": "…",
"usertags": "…",
"has_liked": "…",
"locations": "…",
"like_count": "…",
"…": "87 more fields"
}
},
"… 2 more"
]
},
"explore_item_info": {
"autoplay": false,
"num_columns": 3,
"aspect_ratio": 3,
"total_num_columns": 3
}
},
"… 18 more"
],
"next_page": 1,
"next_max_id": "QVFDSGg2a09JN2JoTXdkMnUzVVlsUHpTZE94T0pGNWM0TFpyX28zZ1Vkbk1peVUzdGZBd1J1YzZ6c1M2VlYteHhDRmJkT1VRYk5wV1pOTk8tdi1YMllBQw==",
"more_available": true,
"next_media_ids": []
}Call it over HTTP or from any MCP client. Each key has a rate limit and a monthly cap; calls are metered at the upstream price.