Social media6 min readBy Purrkey teamUpdated

How to search Instagram Reels through a web index

Find Instagram Reels for one keyword through a web search index, page them by number, and shape the captions, engagement counts and timestamps into a format shortlist

On this page

You have one keyword, travel, and need up to 20 Instagram Reels for it, split across two pages, with a last-month recency hint, so the content team can compare formats before the next sprint. The tool for that job is anyapi.instagram.web_reels_search, which searches a web search index instead of Instagram's own search

That choice sets what you can and cannot expect. You get captions, likes, comments, creator handles, durations and timestamps, and you can page by number and narrow by a recency window. You do not get view or play counts, and the reels are whatever the index has crawled rather than what Instagram ranks right now

The deliverable is a shortlist table with one row per reel and a note column you fill by hand. No run was executed for this article, so the values below are placeholders showing the shape

The shortlist table you are building

One row per reel, with the engagement and format numbers in their own columns so you can sort them. Example rows, invented and labelled as such:

shortcodeusernamelikescommentsdurationSecondscreatedUtcshortlist_note
(id)(handle)(count)(count)(seconds or null)(epoch)(your note)

The remaining columns come from the same contract: url, caption, hashtags, mentions, locationName, verified and paidPartnership. createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date in milliseconds. durationSeconds is null when the source does not report it, which keeps the format decision honest for that row

Inputs the tool takes

The contract's input object lists three properties. query is required and takes a search keyword such as "crossfit"; this guide uses the Example keyword travel. datePosted is optional and accepts last-week, last-month or last-year. page is optional, defaults to 1, and is a 1-based results page

datePosted is a recency hint, not a hard filter. Reel discovery runs on top of Google search, so the window narrows Google's index by when it discovered or last crawled the reel, which is not the same as when the reel was published to Instagram. Returned reels can have a createdUtc outside the requested window, and the narrowest window, last-week, often returns older reels or no results. Check createdUtc yourself if you need exact publication-time precision

Reading the output fields that drive a decision

found tells you whether the index had any matching reels. data holds the reels array, or is null when nothing was found. When found is false, reason appears with the value not_found, and the call is still billed as a successful call

Inside each reel, use the numbers this way. likes and comments rank engagement for a format shortlist. durationSeconds separates short cuts from long ones, and null means the source did not report it. createdUtc settles how recent a reel is, whatever the recency hint said. username and verified tell you who posted it. paidPartnership flags a sponsored reel so you can keep it out of an organic format count. hashtags, mentions and locationName give the caption context for your note

What you cannot do here is read view or play counts. The contract says Instagram does not return them in this tool

Paging and the 110-reel ceiling

Call the tool once for page 1 and once for page 2 to get up to 20 reels for the keyword. Results are whatever the index has crawled rather than what Instagram ranks right now, so expect the two pages to differ in quality from a live search

Paging tops out around 110 reels per query, 11 pages of 10. That ceiling sits on the paging step itself: a two-page run for one keyword is nowhere near it, but a broader harvest past 110 reels needs a second keyword rather than a twelfth page. For more on working from a keyword list, the companion guide at https://purrkey.app/blog/search-instagram-reels-by-keyword covers that framing

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Instagram
Reels through the web index for one keyword. Check the current inputs and
price of anyapi.instagram.web_reels_search before running anything. Call
it once with page 1 and once with page 2, both with datePosted last-month
and the query below. Merge the reels into one table with columns
shortcode, url, caption, username, verified, likes, comments,
durationSeconds, createdUtc, hashtags, mentions, locationName,
paidPartnership and an empty shortlist_note. Convert createdUtc from
seconds to a readable date and leave shortlist_note empty. Return the
table and stop. Do not invent reels.

query: travel

The keyword above is an Example; replace it with your own. Keep the first pass to page 1 so you can see whether the index has anything for that keyword before you pay for a second call

Estimated tool cost

The catalog lists that the tool is called through POST /v1/runs with toolId anyapi.instagram.web_reels_search with a unit of max_call, which it defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges, and model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
First-page keyword checkcalls x max price$0.0012 per call1$0.0012
Two-page shortlist run (this task)calls x max price$0.0012 per call2$0.0024
Full paging runcalls x max price$0.0012 per call11$0.0132

The two-page run is the plan for the 20-reel deliverable. A full paging run at 11 calls is the ceiling case if you push a single keyword to the end of its pages

Run the first page

Pick the keyword, decide whether the recency hint should be last-month, and start with one call. The tool page is at https://purrkey.app/tools/instagram?q=web_reels_search

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.
Explore Instagram tools and pricing

FAQ

How do I search Instagram Reels through a web index?

Send a keyword in the query field to anyapi.instagram.web_reels_search, optionally with datePosted and page. The call returns a reels array with captions, likes, comments, creator handles, durations and timestamps.

How many reels can one query return?

Paging tops out around 110 reels per query, which is 11 pages of 10. A two-page run for a keyword gives up to 20 reels, well inside that ceiling.

Does datePosted restrict results to that window?

No. The contract calls it a recency hint, not a hard filter, because discovery runs on top of Google search and narrows by when the index discovered or last crawled the reel. Returned reels can have a createdUtc outside the window.

Does this tool return view or play counts?

No. The contract says Instagram does not return view or play counts here. For Instagram's own live reels search, with view counts, the contract points to instagram.reels_search.

What does a found false response mean?

It is a successful call, not an error. reason appears with the value not_found, and costUsd is what it actually cost.

How much does a two-page reels search cost?

Two calls at up to $0.0012 per call is at most $0.0024. A full paging run of 11 calls is at most $0.0132.

Which fields does the tool return for each reel?

Each reel carries shortcode, url, caption, thumbnail, username, verified, paidPartnership, likes, comments, durationSeconds, createdUtc, hashtags, mentions and the location fields.

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.

See Instagram tools

Share this article