Post
One Instagram post or Reel by its address: caption, likes, comments, views, date, media links, the account, and the latest comments.
Try it in the dashboard 10 free credits when you sign up, no card.
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>. |
Example request
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"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"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
}
}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.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Instagram Post API page.