How to list an Instagram account's reels with view counts
Pull the last 24 reels for five candidate accounts with views, likes and comments per reel, then compute a median per account and see which reels beat it
On this page
Five candidate accounts sit in a spreadsheet before a creator partnership, and you need the last 24 reels from each one with views, likes and comments, so a median views figure can be computed per account and each reel compared against it. Two calls per account cover the window
The deliverable is a table per account plus a summary row with the median. The tables below are designs with placeholder values. One real call on a public account was made for this guide, and its result follows the field guide
Example inputs and the table design
anyapi.instagram.user_reels takes one account per call. Three invented handles for this guide:
| # | handle |
|---|---|
| 1 | example_roaster |
| 2 | example_barista_jo |
| 3 | example_cafe_tools |
Replace them with the real handles of your five candidates before anything runs. When a handle is missing from your list, the companion guide on looking up an Instagram account covers how to find it without running the reels call
The table per account has one row per reel, ordered newest first:
| shortcode | views | likes | comments | pinned | date |
|---|---|---|---|---|---|
| (id) | (number) | (number) | (number) | true or false | (from createdUtc) |
The summary table collects one row per candidate:
| handle | reels sampled | median views | reels above median |
|---|---|---|---|
| example_roaster | (count) | (number) | (count) |
The median is computed by the agent from the rows it returns. The tool itself has no median field, and no aggregate of any kind
The input and the public-account limit
The schema requires handle or userId, one of the two, and the alias username maps onto handle. userId is the faster option when you already hold the numeric id. cursor is optional and takes the max_id value a previous response returned as nextCursor

Instagram User Reels card. Source: Purrkey tool directory, captured November 12, 2026. The card shows "$0.0036 per call"
The limit sits right here at the input step: the tool lists public accounts only. A private account comes back with found: false and reason: not_found, which the contract counts as a successful call rather than an error, with costUsd reporting what it actually cost. There is nothing to sample from that account, so drop the row from the summary instead of writing a zero into it
One call returns one page, and a page holds about a dozen reels, so two pages cover roughly 24. Pass data.nextCursor back as cursor for the second page, and stop when nextCursor is null, because that lane has no more
Reading the output fields that drive the decision
found and data sit at the top level. When data is null and found is false, a reason field appears
data.reels is an array, and each entry is required to carry id, shortcode, caption, views, likes, comments, createdUtc, username, verified and durationSeconds. createdUtc is a UTC epoch in seconds, so multiply by 1000 before you build a JavaScript date. shortcode is the row key and builds the reel link if you need one in the sheet
isPinned is the field that decides whether your sample means anything. A pinned reel sits at the top of the profile grid and can be months older than the reels around it, so leaving it in the median lets an old outlier move the number the whole partnership decision rests on. The contract adds a second wrinkle: on a collaboration post, isPinned can be true because a coauthor pinned it to their own profile. Mark the pinned rows in their own column and leave them out of the median, and state that rule before the run rather than after
username is worth keeping as a column. A reels tab includes collaborator reels, so a row is not always posted by the handle you asked for, and the summary should not credit a candidate for a collaborator's view count
countsHidden reports whether the author has hidden the like and view counts, and is null when the serving source does not report it. Read it before treating a low views figure as a weak reel. views is an integer and always present, but the flag tells you whether the number is the whole story
What one real call returned
One call was made on November 12, 2026 with handle set to nasa. Run run_01a1cfd7-ed64-75aa-b8e9-f7802e086389 settled at $0.0008 against the $0.0036 cap
| Field | Value returned |
|---|---|
data.reels | 12 reels |
views, lowest to highest | 2,345,528 to 5,857,656 |
median views | 3,571,842 |
reels with isPinned true | 0 |
data.nextCursor | a string, so a second page exists |
The three highest by views:
| shortcode | views | likes | comments |
|---|---|---|---|
| DfcY5c7Prno | 5,857,656 | 95,426 | 7,700 |
| DffPrVthplr | 4,942,764 | 41,809 | 623 |
| DfdSpM1PMVs | 4,407,447 | 63,563 | 335 |
So a page is 12 reels here, which is where the "about a dozen" planning figure above comes from, and the median for this account sits at about 3.57 million views. The settled charge was less than a quarter of the ceiling
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to pull the last 24
reels for each of the five Instagram accounts below with
anyapi.instagram.user_reels.
Check the current inputs and price of anyapi.instagram.user_reels before
running anything.
Call it once per account, passing handle (or userId when known). Read
data.nextCursor and pass it back as cursor until you have about 24 reels
for that account or nextCursor is null. If found is false, record the
account as unavailable and move on without retrying.
Keep one row per reel with shortcode, views, likes, comments, isPinned,
createdUtc and username. Mark pinned rows and leave them out of the
median. Compute the median of views per account yourself, since the tool
returns only per reel numbers.
Return one table per account plus a summary table with handle, reels
sampled, median views and the count of reels above the median.
example_roaster
example_barista_jo
example_cafe_toolsSwap the three example handles for your five real candidates. Ask for the tables back rather than a paragraph, so the rows paste straight into the sheet. Run one account first and check how many rows two pages actually gave you before you spend on the other four
Estimated tool cost
Prices are from the Purrkey catalog, read November 12, 2026, under price revision anyapi-catalog-2026-11-05. The tool runs through POST /v1/runs with toolId anyapi.instagram.user_reels and is billed at unit max_call, which the catalog explains as "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Full list | 5 accounts x 2 pages x max price | $0.0036 per call | 10 | $0.036 |
| Trial run | 1 account x 2 pages x max price | $0.0036 per call | 2 | $0.0072 |
A found: false answer on a private account is still a successful call. Model fees for the agent are not counted
Next action
Open the Instagram user reels tool page, run two pages on one candidate and read nextCursor and isPinned on the returned rows before you commit the full $0.036
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Instagram.FAQ
How do I get an Instagram account's reels with view counts?
Send the handle or the numeric userId to anyapi.instagram.user_reels. Each entry in data.reels carries views, likes, comments, caption, shortcode, createdUtc and isPinned.
How many reels come back in one call?
One call returns one page, and a page holds about a dozen reels. Pass data.nextCursor back as cursor to continue, so two pages cover roughly 24 reels.
Why does the list include a reel from an account I did not request?
A reels tab includes collaborator reels. The username field on each reel says which account posted it, which is not always the requested handle.
What happens when the account is private?
The call returns found false with reason not_found. The contract treats that as a successful call rather than an error, and costUsd reports what it actually cost.
Does the tool return median views?
No. data.reels returns per reel numbers only, so the median is computed by the agent or by you from the views column of each account.
What does isPinned mean on a reel?
It marks a post pinned to the top of a profile grid. A pinned reel can be older than the rest of the page, and on a collaboration post it can be true because a coauthor pinned it to their own profile.
How much does it cost to check five accounts for 24 reels each?
At most $0.036, at two pages per account and the $0.0036 per call ceiling. A single account trial is at most $0.0072.
Next step
Try this with Instagram
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.