How to get Instagram Reel views in Python
Checked on 2026-11-24.
Meta's API returns a Reel's view count in two cases: for your own professional account, through Insights, and for other business and creator accounts, through the view_count field of Business Discovery. For personal accounts there is no official route. Below are both official requests, the Instaloader library, and an HTTP API that returns the play counts of any public account's latest Reels.
1. Business and creator accounts: view_count
Meta's changelog of 16 June 2025 reads "Introducing the new view_count field on the IG Media endpoint", available only through Business Discovery and only for Reels. The media reference defines it as "View count for Instagram Reels, which includes both paid and organic metrics", and since 22 April 2026 it "now returns combined Instagram and Facebook views for crossposted video content". Business Discovery "Allows you to get data about other Instagram Business or Creator IG Users": you send the request to your own account's ID and name the other account inside it. The field list below extends the one in Meta's own example:
import os
import requests
GRAPH = "https://graph.facebook.com/v27.0"
ME = os.environ["IG_ACCOUNT_ID"] # the ID of your own professional account
fields = "business_discovery.username(bluebottle){media{permalink,timestamp,like_count,comments_count,view_count}}"
res = requests.get(f"{GRAPH}/{ME}", params={"fields": fields, "access_token": os.environ["IG_ACCESS_TOKEN"]}, timeout=30)
body = res.json()
if "error" in body:
print(body["error"]["message"])
else:
for media in body["business_discovery"]["media"]["data"]:
if "view_count" in media: # Reels only, and only when the owner shows views
print(media["timestamp"], media["permalink"], media["view_count"], media.get("like_count"))The token is a Facebook User access token with instagram_basic, instagram_manage_insights and pages_read_engagement, plus ads_management or ads_read when the Page role came through Business Manager. Business Discovery works with the Facebook Login and the Unified Login setups. The answer has before and after cursors when there are more pages, and you build the next request from them yourself.
Where it stops: the media reference says "This API returns only data for media owned by Instagram professional accounts. It can not be used to get data for media owned by personal Instagram accounts." Age-gated accounts return nothing. And "The media owner can disable showing likes, comments, views, reposts, and shares", in which case those fields are not returned. You need your own professional account, a Meta app and a token for all of it; the guide on follower counts lists what that setup takes.
2. Your own Reels: the views metric
For an account you run, Insights has the metric views: "Total number of times IG Media has been played on Instagram". Meta's documented requests take three steps: list your media IDs, read each one's type, and ask a video for its insights.
import os
import requests
GRAPH = "https://graph.facebook.com/v27.0"
TOKEN = os.environ["IG_ACCESS_TOKEN"]
ME = os.environ["IG_ACCOUNT_ID"]
media = requests.get(f"{GRAPH}/{ME}/media", params={"access_token": TOKEN}, timeout=30).json()
for item in media["data"][:12]:
post = requests.get(f"{GRAPH}/{item['id']}", params={"fields": "media_type,permalink,timestamp", "access_token": TOKEN}, timeout=30).json()
if post.get("media_type") != "VIDEO":
continue
insights = requests.get(f"{GRAPH}/{item['id']}/insights", params={"metric": "views,reach", "access_token": TOKEN}, timeout=30).json()
metrics = {m["name"]: m["values"][0]["value"] for m in insights.get("data", [])}
print(post["timestamp"], post["permalink"], metrics.get("views"), metrics.get("reach"))On the Unified Login setup the token needs instagram_basic and instagram_manage_insights. Meta notes that the data "can be delayed up to 48 hours", that metrics are stored for up to 2 years, that media inside an album has no insights, and that a metric it cannot provide comes back as an empty data set, not as 0. With the Facebook Login setup there is also the field total_views_count: "Total view count of video content across all surfaces, including views from promoted/boosted media and replays."
If your code asks for plays or video_views
Older tutorials use metrics that are gone. The changelog entry of 21 January 2025 introduced views and deprecated plays, clips_replays_count, ig_reels_aggregated_all_plays_count and impressions for v22.0 and newer, and for all versions from 21 April 2025. video_views went earlier: "The video media metric video_views will no longer be supported", for v21.0 and newer from 2 October 2024 and for all versions from 8 January 2025. Replace them with views.
3. Instaloader, a free library
Instaloader's documentation has what you need on paper: Profile.get_reels(), which will "Retrieve all reels from a profile" (since version 4.14.0), and on each post video_play_count, "Play count of the video, or None" (since 4.14.3), next to video_view_count.
# pip install instaloader
from itertools import islice
import instaloader
L = instaloader.Instaloader()
profile = instaloader.Profile.from_username(L.context, "nasa")
for reel in islice(profile.get_reels(), 12):
print(reel.date_utc, reel.shortcode, reel.video_play_count, reel.video_view_count, reel.likes)Where it breaks: at the "or None". In issue #2735 of August 2026, a user of version 4.15.3 reported that video_play_count stayed None for a public Reel read with Post.from_shortcode() by someone other than its owner; they closed it themselves, concluding that Instagram no longer seems to return the play count for a single post to a logged-out visitor. Instagram also limits logged-out readers, on servers most of all: Instaloader's troubleshooting page says that "cloud, VPN and public proxy services, might be subject to significantly stricter limits for anonymous access". The guide to its 401, 429 and login errors covers what happens then.
4. An HTTP API: plays of any account's latest Reels
The Pipefetch profile endpoint reads a public profile without a login and returns its latest posts and Reels, each Reel with its play count. It makes no difference whether the account is personal, business or creator.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/instagram/profile",
params={"username": "nasa"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print("No such account") # not charged
else:
res.raise_for_status()
profile = res.json()["data"]
print("Average plays:", profile["avgPlays"])
for post in profile["latestPosts"]:
if post["isReel"]:
print(post["publishedAt"], post["url"], post["playCount"], post["likeCount"], post["durationSeconds"])Each Reel has playCount, likeCount, commentCount, durationSeconds, publishedAt and isPinned; a photo has isReel false and no plays, and a count Instagram does not show is null. In an answer saved on 18 November 2026 for nasa, 12 of the 15 latest posts were Reels, with between 1,605,623 and 8,371,813 plays. The one with the fewest was also the newest, 13 hours old: compare Reels of similar age.
Where it stops: it returns what a profile shows to a visitor who is not logged in, about the 12 latest Reels and the newest grid posts, not the full history. It takes a username, not the link of one Reel, so an older Reel is out of reach. A private account returns its counts but no posts. A profile costs 2 credits, an account that does not exist answers 404 and costs nothing, and when Instagram does not answer you get a 502 that is not charged and can be retried. It is not an official API, and Pipefetch is not affiliated with Instagram or Meta. A new account has 100 free credits and needs no card.
Which one should you use?
| Situation | Use |
|---|---|
| Your own Reels, with reach and watch time next to views | Insights in the official API |
| Other business and creator accounts, officially | view_count through Business Discovery |
| A few accounts from your own computer, at no cost | Instaloader, if it returns the counts that day |
| The latest Reels of any public account, from a server | An HTTP API such as Pipefetch |
Do not mix the numbers
These routes do not count the same thing. view_count includes paid views and, for crossposted Reels, Facebook views; the Insights views metric counts plays on Instagram; total_views_count adds every surface and replays; a public profile shows the count Instagram displays to visitors. Compare Reels with numbers from one route only. To turn plays into a rate, the guide to the Instagram engagement rate has the formula by views. A Reel of a private person is personal data under laws such as the GDPR, so keep such tracking to organizations, brands and public figures.
Try it with 100 free credits. No card needed. No login, cookies or proxies. Get an API key or read the docs.
APIs used in this guide
-
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
More Instagram guides
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python