fetchapi

List Instagram posts tagged at a location API

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.

Get a keySee it in the catalogUse it from MCP

Price per call, by route

The upstream price you are metered at, cheapest first. A route without a published price says so.

ProviderEndpointPriceTested
Media by locationGET ig/locations$0.00099$0.99 / 1k calls✓ 2026-10-07pricing ↗

What it returns

From a real call to the route: FlashAPI.

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.
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 post

Paging: 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.

Call it

HTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.

GET /api/gw/flashapi/ig/locations$0.00099 / call✓ working · tested 2026-10-078.51 s latency
Parameters
ParameterTypeNotes
nocorsstring · queryoptionaldefault false
max_idstring · queryoptional
next_media_idsstring · queryoptional
next_pagenumber · queryoptional
location_idnumber · queryrequireddefault 213862033
HTTP
curl "https://fetchapi.co/api/gw/flashapi/ig/locations?nocors=false&location_id=213862033" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("flashapi.media_by_location", {"nocors": "false", "location_id": "213862033"})
Real example answer (trimmed) · 2026-10-03
{
  "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": []
}

Related Instagram APIs

All 22 Instagram jobs →

One key for every API on this page.

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.