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:

Python
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.

Python
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.

Python
# 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.

Python
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?

SituationUse
Your own Reels, with reach and watch time next to viewsInsights in the official API
Other business and creator accounts, officiallyview_count through Business Discovery
A few accounts from your own computer, at no costInstaloader, if it returns the counts that day
The latest Reels of any public account, from a serverAn 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.

Every source

YouTube

Websites

TikTok

Facebook

Google

Threads

LinkedIn

App stores

Steam

X

Pinterest

Airbnb

Real estate

Keywords

Job boards

Eventbrite

Shopify stores

Public tenders

All guides