Instagram API

Instagram Posts API

Send a username and get the account's latest posts and Reels back as JSON: caption, likes, comments, views, posting date, type, hashtags, mentions, location and the media links, with the account's follower count.

  • 10 free credits
  • No card needed
  • No login, cookies or proxies
curl "https://pipefetch.com/v1/instagram/posts?username=nasa" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to the 12 latest posts, Reels only or photos only if you ask
  • Caption, hashtags, mentions, co-authors and location of each post
  • Likes, comments and, for Reels and videos, views and duration
  • Engagement rate against the account's followers, pinned and paid-partnership flags
  • The image or video address and the number of carousel items
200 OK · application/json
{
  "data": {
    "account": {
      "username": "nasa",
      "fullName": "NASA",
      "id": "528817151",
      "isVerified": true,
      "followers": 104242414
    },
    "posts": [
      {
        "id": "4041963370596640402",
        "shortCode": "DgX8EUzjaaS",
        "url": "https://www.instagram.com/p/DgX8EUzjaaS/",
        "type": "Image",
        "productType": null,
        "caption": "Whee! 🤸\n\nThe Cartwheel Galaxy formed as the result of a high-speed collision that occurred about 400 million years ago. Despite the impact, this gala…",
        "hashtags": [
          "NASA",
          "Galaxy"
        ],
        "mentions": [],
        "likes": 184321,
        "comments": 863,
        "views": null,
        "videoDuration": null,
        "postedAt": "2026-11-30T17:26:50.000Z",
        "engagementRate": 0.1776,
        "isPinned": false,
        "isPaidPartnership": false,
        "location": null,
        "coauthors": [],
        "imageUrl": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-15/937581708_18674448895049152_7974541415753429337_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_k…",
        "videoUrl": null,
        "carouselItems": 0
      },
      {
        "id": "4040808299306161664",
        "shortCode": "DgT1b01mBYA",
        "url": "https://www.instagram.com/p/DgT1b01mBYA/",
        "type": "Image",
        "productType": null,
        "caption": "Have you finished your application to join NASA's astronaut corps?\n\nTime is running out — submit your info by 11:59 p.m. EST on Thursday, Dec. 3.\n\n#NA…",
        "hashtags": [
          "NASA",
          "Astronaut"
        ],
        "mentions": [],
        "likes": 110721,
        "comments": 1422,
        "views": null,
        "videoDuration": null,
        "postedAt": "2026-11-29T19:15:01.000Z",
        "engagementRate": 0.1076,
        "isPinned": false,
        "isPaidPartnership": false,
        "location": null,
        "coauthors": [],
        "imageUrl": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-15/936664021_18673965166049152_2290026260522370931_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_n…",
        "videoUrl": null,
        "carouselItems": 0
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/instagram/posts

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
usernamerequired string Instagram username (nasa or @nasa) or profile URL.
typeoptional string all: the posts grid as Instagram shows it. reels: Reels only. photos: photo and carousel posts only. One of: all, reels, photos. Default: all.
limitoptional integer How many of the latest posts to return. Default: 12. From 1 to 12.

Good to know

  • The latest posts as a visitor who is not logged in sees them, newest first, up to 12. Pinned posts come first on Instagram and are marked isPinned.
  • views is filled for Reels and videos; likes is null when the account hides like counts. engagementRate is (likes + comments) per 100 followers.
  • A private account answers 404 private_account and an account that does not exist 404 not_found; neither costs anything. When Instagram refuses the request, the answer is 502 upstream_error, free and worth a retry.

Open the reference

Use cases

What people build with it

  • Influencer vetting

    See how often an account posts and how its latest posts perform before you work with it.

  • Competitor monitoring

    Follow what brands in your market post, and which posts and Reels get the most engagement.

  • Content research

    Collect captions, hashtags and formats that work for an account or a niche.

  • Social data for AI agents

    An agent gets an account's recent posts with their numbers in one tool call.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
2,500requests at 2 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 10 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Is this the official Instagram API?

No. Pipefetch is an independent service and is not affiliated with Instagram. It returns what Instagram shows publicly to a visitor who is not signed in; you need no Instagram account, only one Pipefetch API key.

How many posts do I get?

Up to the 12 latest, as a visitor who is not logged in sees them. Older posts need a login and are not available.

Can I read a private account?

No. A private account answers 404 private_account and costs nothing.

Why are likes null for some posts?

The account hides like counts on them. Comments and, for Reels, views are still filled.

What does a request cost?

One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 10 free credits without a card.

More

More Instagram APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 10 free credits.