This is for creators and small social teams who look at competitors' Reels and try to guess what's working. The trouble is raw view counts. A Reel with 80k views from an account that always gets 100k is a flop. A Reel with 15k views from an account that usually gets 3k is the one worth studying.
So I built the core of a tool (it's turning into a small SaaS called Content Outlier) that does one thing: for a list of competitor accounts, it pulls their recent Reels, works out each account's normal performance, and flags the Reels that clearly beat it.
The data source
Instagram's official Graph API only covers accounts you manage, so it can't read competitors. I didn't want to maintain my own scraping setup with logins and proxies, so I used HikerAPI, a REST API for public Instagram data. You send an access key in a header and get JSON back.
Here's the first sanity check I ran, getting a user and their highlights:
import requests headers = {"x-access-key": "YOUR_KEY"} user = requests.get("https://api.hikerapi.com/v2/user/by/username?username=apple", headers=headers).json() r = requests.get("https://api.hikerapi.com/v2/user/highlights", params={"user_id": user["pk"]}, headers=headers) print(r.json()) For outliers I only need two things: a username → user ID lookup and that user's Reels.
Fetching Reels
/v1/user/clips/chunk returns a two-item array: a list of Reels and a cursor for the next page. You pass the cursor back as end_cursor until it comes back empty.
import os import requests BASE = "https://api.hikerapi.com" HEADERS = {"x-access-key": os.environ["HIKERAPI_KEY"]} def get(path, **params): r = requests.get(f"{BASE}{path}", params=params, headers=HEADERS, timeout=30) r.raise_for_status() return r.json() def user_id(username): return get("/v2/user/by/username", username=username)["pk"] def recent_reels(uid, pages=3): reels, cursor = [], None for _ in range(pages): params = {"user_id": uid} if cursor: params["end_cursor"] = cursor items, cursor = get("/v1/user/clips/chunk", **params) reels.extend(items) if not cursor: break return reels One page is usually enough for a baseline. I fetch up to three so accounts that post a lot still give me a few weeks of history.
The harder part: defining "normal"
I expected fetching to be the hard part. Deciding what "above baseline" means turned out to be harder.
My first version used the average views as the baseline. One viral Reel per account was enough to push the average so high that nothing else looked good. I switched to the median, which a single spike doesn't move.
The second problem was age. Raw views favour old Reels, since they've had weeks to add up. A Reel posted two days ago with 20k views says more than a two-month-old Reel with 40k. So I score each Reel on views per day since posting and compare that against the account's median views per day.
import statistics from datetime import datetime, timezone def views(m): # Reels expose plays under different keys depending on the item return m.get("play_count") or m.get("view_count") or 0 def age_days(m): t = m["taken_at"] if isinstance(t, (int, float)): posted = datetime.fromtimestamp(t, timezone.utc) else: posted = datetime.fromisoformat(str(t).replace("Z", "+00:00")) hours = (datetime.now(timezone.utc) - posted).total_seconds() / 3600 return max(hours / 24, 0.5) # stop a 2-hour-old Reel from scoring as huge def velocity(m): return views(m) / age_days(m) def outliers(reels, factor=2.0, min_reels=6): scored = [m for m in reels if views(m)] if len(scored) < min_reels: return [], 0 baseline = statistics.median(velocity(m) for m in scored) hits = [m for m in scored if velocity(m) >= factor * baseline] return sorted(hits, key=velocity, reverse=True), baseline min_reels exists because a median of three Reels doesn't mean much. Accounts with less history are skipped, not guessed at.
Putting it together
COMPETITORS = ["competitor_one", "competitor_two"] for name in COMPETITORS: reels = recent_reels(user_id(name)) hits, baseline = outliers(reels) print(f"\n@{name}: baseline {baseline:,.0f} views/day, {len(hits)} outliers") for m in hits: ratio = velocity(m) / baseline print(f" {ratio:4.1f}x {views(m):>9,} views https://www.instagram.com/reel/{m['code']}/") The output is a short list per account: how far each Reel beat that account's normal, its view count, and a link. That's the list I actually open and study, instead of scrolling every profile.
Notes and limits
- Cursors expire. Pagination cursors are short-lived, so I request the next page right away and never queue page 2 for later.
- Views aren't the whole story. A Reel can beat its baseline because of a trending sound, a collab, or paid boosting, and public data can't tell those apart. The tool says "look at this one", not "copy this".
- Cost scales with accounts × pages. Pricing is per request, so a weekly run over a fixed competitor list is cheap and easy to predict. Re-checking hourly isn't worth it.
- Public data only. Private accounts and anything behind a login are out of scope, which is fine for this use case.
Next I'm adding a layer that looks at the flagged Reels together (hook, length, format) and suggests what's likely driving the difference. If you've done something similar, how do you separate "good content" from "got lucky with distribution"?


