Instagram Post/Reel Info API
Get a public Instagram post or reel by URL (/p/, /reel/, /reels/ or /tv/), as a signed-out visitor sees it: media URLs, caption, owner (with follower count), like and comment counts, duration, music, date and location. video_view_count is Instagram's older view count; for the plays Instagram shows on a reel, set include_play_count=true. Comment edges are empty (comments need a login). Private or removed posts fail at 0 credits.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"data": {
"xdt_shortcode_media": {
"__typename": "XDTGraphVideo",
"id": "3657869083548472514",
"shortcode": "DLDXI0fylTC",
"thumbnail_src": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e15_tt6&ig_cache_key=MzY1Nzg2OTA4MzU0ODQ3MjUxNDE4NTAzODc0OTc5MDE3MTcy.3-ccb7-...",
"dimensions": {
"height": 2144,
"width": 1206
},
"display_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e15_tt6&ig_cache_key=MzY1Nzg2OTA4MzU0ODQ3MjUxNDE4NTAzODc0OTc5MDE3MTcy.3-ccb7-...",
"display_resources": [
{
"src": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e15_tt6&ig_cache_key=MzY1Nzg2OTA4MzU0ODQ3MjUxNDE4NTAzODc0OTc5MDE3MTcy.3-ccb7-...",
"config_width": 1206,
"config_height": 2144
},
{
"src": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&ig_cache_key=MzY1Nzg2OTA4MzU0ODQ3MjUxNDE4NTAzODc0OT...",
"config_width": 1080,
"config_height": 1920
},
{
"src": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e35_p720x720_sh2.08_tt6&ig_cache_key=MzY1Nzg2OTA4MzU0ODQ3MjUxNDE4NTAzODc0OTc5...",
"config_width": 720,
"config_height": 1280
}
],
"accessibility_caption": null,
"has_audio": true,
"video_url": "https://scontent-iad3-1.cdninstagram.com/o1/v/t2/f2/m86/AQPIiBLJBqG6YM9FzeabZmQkGTo94LpWkFoXGZJKZzy1TmBaeQneYOCvLLIE9oatPQwWEFvodXRGHTKQmyBOxJfo3UbjavdoyajuoZA.mp4",
"video_view_count": 155769,
"product_type": "clips",
"video_duration": 84.666,
"clips_music_attribution_info": {
"artist_name": "jane",
"song_name": "Original audio",
"uses_original_audio": true,
"should_mute_audio": false
},
"is_video": true,
"owner": {
"id": "21393171",
"username": "jane",
"is_verified": false,
"profile_pic_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-19/858159145_18629205538017172_2441018152328237746_n.jpg?stp=dst-jpg_s150x150_tt6&ig_cache_key=GCl4JjOUj4rqKS9CALISzpMTPeAhbmNDAQAB1501500j-ccb7-5&ccb=7-5&efg=...",
"full_name": "Jane Williamson",
"edge_followed_by": {
"count": 2004845
}
},
"edge_media_to_caption": {
"edges": [
{
"node": {
"text": "I think I like this goosey life🪿☺️🍃\n\n#crunchy #crunchymom #dayinthelife #holistic #nontoxic #homeschool #crunchymoms #momhumor #momlife #jane #janeinsane"
}
}
]
},
"edge_media_to_parent_comment": {
"count": 435,
"edges": []
},
"edge_media_preview_comment": {
"count": 435,
"edges": []
},
"taken_at_timestamp": 1750272151,
"edge_media_preview_like": {
"count": 56055
},
"location": null,
"coauthor_producers": []
}
}
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- data object
- extensions object
- status string
- cached boolean
- cached_at string
Parameters
The URL of the post or reel
Accepted for compatibility. Instagram's public pages are read from the US.
Set to true for a trimmed response.
Not supported: download_media=true returns 400. Use video_url or display_url in the response.
Set to true to add play_count (also as video_play_count) for a reel: the plays Instagram shows, the same number as /v1/instagram/user/reels. Read from the owner's 12 newest reels; null for older ones.
Use a cached response this old or newer for 0 credits. If none is available, fetch live at the endpoint’s normal price.
Use cases
- Pull a reel's views, likes and comment count from its link
- Track how a campaign post performs over its first week
- Get the video and thumbnail URLs for a post you're reviewing
- Check who posted a reel, when, and where it was tagged
- Find the music used in a reel
Billing
Errors cost zero credits, and so do cache hits through cache_max_age. Empty results follow this operation’s rules.
Default: 1 credit
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Guides
How to get Instagram profile data, posts and reels with an API
Get any public Instagram profile's exact follower count, bio, latest posts and reels with play counts as JSON. No login or Meta app review. 1 credit per call.
How to find trending Instagram reels and topic posts with an API
Get the top posts on Instagram's Popular page for a topic, the reels in its signed-out Reels feed, and a reel's play count, as JSON. 1 credit per call.
Related Instagram endpoints
FAQ
How much does the Instagram Post/Reel Info API cost?
A call costs 1 credit by default. Errors cost 0 credits, and a cached result served through cache_max_age costs 0. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header, plus url. You don't need a Instagram account or developer app.
What does it return?
Typed JSON. Top-level fields include data, extensions, status, cached and cached_at. The full schema and a real sample response are on this page and in the API reference.
Is this an official Instagram API?
No. Fetchproof is an unofficial API that returns public Instagram data only.