Skip to Content
Documentation

Get recent posts

Instagram Posts API · 100 points per successful call

Product overview and demoAll Instagram API endpointsError codes

GET
/v1/instagram/posts

Returns a public account's most recent posts — image, video/reel and carousel — each with its permalink, caption, like and comment counts, media and thumbnail URLs, dimensions and publish time. Shares the profile snapshot, so a posts call right after a profile call is served from cache. Pagination is cursor-based; today the source serves the latest window, so next_cursor is null.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.

Query Parameters

username*string

The public Instagram username, without the leading @.

Match^[A-Za-z0-9._]+$
Length1 <= length <= 30
limit?integer

Most recent posts to return (1–12).

Range1 <= value <= 12
Default12
cursor?string

Opaque pagination cursor from a previous response, if any.

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/instagram/posts?username=nasa&limit=12'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-08-01T12:00:00.000Z",
    "cache": "MISS",
    "pagination": {
      "next_cursor": null,
      "limit": 12,
      "returned": 1
    }
  },
  "data": {
    "posts": [
      {
        "id": "3953558216907780078",
        "shortcode": "Dbd3EBdnW_u",
        "url": "https://www.instagram.com/p/Dbd3EBdnW_u/",
        "type": "image",
        "caption": "Are you ready for the total solar eclipse?",
        "likes": 245158,
        "comments": 385,
        "media_url": "https://scontent.cdninstagram.com/v/t51.2885-15/…jpg",
        "thumbnail_url": "https://scontent.cdninstagram.com/v/t51.2885-15/…jpg",
        "width": 1080,
        "height": 856,
        "taken_at": "2026-07-31T18:41:36.000Z"
      }
    ]
  }
}