Instagram API

Instagram Post API

Send the address of an Instagram post or Reel and get it back as JSON: caption, likes, comments, views, posting date, hashtags, the media links, the account that posted it and the latest comments.

  • 10 free credits
  • No card needed
  • No login, cookies or proxies
curl "https://pipefetch.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDgX8EUzjaaS%2F" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Caption, hashtags, mentions, co-authors and location
  • Likes, comments, views and video duration
  • The image or video address, and the alt text Instagram generated
  • The account: username, name, verified badge and followers
  • The latest comments, about 12 to 15, each with its likes and replies
200 OK · application/json
{
  "data": {
    "id": "4041963370596640402",
    "shortCode": "DgX8EUzjaaS",
    "url": "https://www.instagram.com/p/DgX8EUzjaaS/",
    "type": "Image",
    "productType": "feed",
    "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": 184805,
    "comments": 865,
    "views": null,
    "videoDuration": null,
    "postedAt": "2026-11-30T17:26:50.000Z",
    "engagementRate": 0.1781,
    "isPinned": null,
    "isPaidPartnership": null,
    "location": null,
    "coauthors": [],
    "imageUrl": "https://scontent-iad3-2.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,
    "account": {
      "username": "nasa",
      "fullName": "NASA",
      "id": "528817151",
      "isVerified": true,
      "followers": 104242414
    },
    "accessibilityCaption": "Photo by NASA on November 30, 2026. May be an image of text.",
    "latestComments": [
      {
        "id": "0000000000",
        "text": "A whole galaxy survived a high-speed collision 400 million years ago and kept its rotating arms — the Cartwheel really did just dust itself off and ke…",
        "postedAt": "2026-12-01T12:47:21.000Z",
        "likes": 0,
        "replies": null,
        "author": {
          "username": "example_user",
          "isVerified": false
        }
      },
      {
        "id": "0000000000",
        "text": "Ram Ram",
        "postedAt": "2026-12-01T12:41:10.000Z",
        "likes": 0,
        "replies": null,
        "author": {
          "username": "example_user",
          "isVerified": false
        }
      }
    ]
  },
  "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/post

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

Parameters

NameTypeDescription
urlrequired string The post or Reel address: instagram.com/p/<code>, /reel/<code> or /tv/<code>.

Good to know

  • comments are the latest comments Instagram shows a visitor who is not logged in, about 12 to 15; the full thread needs a login and is not included.
  • A post that was deleted or never existed answers 404 not_found and costs nothing. 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

  • Campaign reporting

    Check the numbers of the posts an influencer published for you, by their links.

  • Comment research

    Read what people say under a post: questions, complaints and praise.

  • Link previews

    Turn an Instagram link into a caption, an image and its numbers for your app.

  • Social data for AI agents

    An agent that gets an Instagram link can read the post and its comments in one 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.

Which links work?

instagram.com/p/<code>, /reel/<code>, /reels/<code> and /tv/<code>, with or without the username in front.

Do I get all the comments?

No, the latest ones a visitor who is not logged in sees, about 12 to 15. The full thread needs a login.

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.