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"const res = await fetch('https://pipefetch.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDgX8EUzjaaS%2F', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/instagram/post",
params={"url": "https://www.instagram.com/p/DgX8EUzjaaS/"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]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
{
"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
}
}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
| Name | Type | Description |
|---|---|---|
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.
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.
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.
Each endpoint says what a request costs. Requests that return nothing are free.
- $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
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 Instagram APIs
-
2 credits
Instagram Profile API
Exact followers, bio, links, account type and engagement of a public Instagram account, with its latest posts and Reels.
GET /v1/instagram/profile -
1 credit
Instagram Search API
Instagram business and creator accounts named after a keyword, with follower counts, or the hashtags for a word with post counts.
GET /v1/instagram/search -
1 credit
Instagram Posts API
The latest posts and Reels of a public Instagram account: caption, likes, comments, views, date, type, hashtags and media links.
GET /v1/instagram/posts -
2 credits
Instagram Transcript API
The spoken words of an Instagram Reel as text, with timed segments, the language, the opening line, and the Reel's caption and counts.
GET /v1/instagram/transcript
Other sources
YouTubeWebsitesTikTokFacebookGoogleThreadsLinkedInApp storesSteamXPinterestAmazonAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tendersTrustpilotProduct HuntAudio & video
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 10 free credits.