How to search Instagram Reels by keyword
Find relevance-ranked Instagram Reels for a keyword with caption, creator, views, likes, comments and duration, then sort the results into an engagement worksheet
On this page
You need 30 Instagram Reels that match the keyword "collab", with per-post engagement so a creator shortlist for outreach rests on numbers rather than impressions. anyapi.instagram.reels_search searches Instagram's own reels search and returns matching reels with view, like and comment counts, caption, creator and duration. No run has been executed for this guide, so the worksheet below is a design, not a result
The deliverable table
One row per reel, eight columns. Views, likes and comments carry the engagement comparison, while durationSeconds and createdUtc let you split the rows by format and age before you compare creators
Values here are placeholders showing the shape
| username | caption | views | likes | comments | durationSeconds | createdUtc | url |
|---|---|---|---|---|---|---|---|
| @example_creator_one | (caption text) | 0 | 0 | 0 | 0 | 0 | (reel url) |
| @example_creator_two | (caption text) | 0 | 0 | 0 | 0 | 0 | (reel url) |
Input the tool takes
query is required and holds the keyword. The contract's example is "crossfit"; for this job the value would be "collab"
cursor is optional and takes the nextCursor string from a previous response, which fetches the next page
requireFields is optional. Name output fields the request must be able to return, drawn from audioId, locationId, locationLat, locationLng and locationName. Omit it and routing is unchanged, with the cheapest source serving. Fields you do not name are still returned when the serving source has them. Naming a field the cheapest source cannot return sends the request to a dearer source, which is quoted and charged at its price. The contract documents these three fields and does not state that other keys are refused
How to read the output
found is true when matching reels were found and false when the search returned nothing. data holds the reels array, or null when nothing was found, and reason appears only when found is false, with the value not_found. A found: false answer is a successful call, not an error
Inside data, reels is your row source and nextCursor is the string you pass back as cursor
Decisions come from a handful of fields. views is the play count, likes and comments are counts on the reel, and countsHidden says whether the author has hidden the like and view counts, so check it before you rank rows by those two numbers. durationSeconds is the reel length. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. username, verified and paidPartnership describe the poster, caption and hashtags give you the text, and url and shortcode identify the reel
Paging limit
Results are relevance-ranked, not chronological, and later pages can repeat reels from earlier pages. The contract adds that overlap with recent pages is removed, that older reels may reappear during a long search, and that nextCursor is null when a page contains only reels seen in recent pages. Five calls can therefore deliver fewer than 30 distinct reels, so deduplicate on shortcode as you collect
The input has no date parameter, so you cannot ask the search for a posting window. Filter or sort the finished worksheet by createdUtc instead
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Instagram
Reels for the keyword "collab" and return a table of the matching reels.
Check the current inputs and price of anyapi.instagram.reels_search before
running anything. Call it once for the first page, then pass nextCursor
back as cursor for more pages until you have 30 distinct reels or
nextCursor comes back null. Return a table with username, caption, views,
likes, comments, durationSeconds, createdUtc and url. Leave a field empty
when a reel has no value for it, and do not invent reels.Replace the keyword with your own. Keep the first call to a single page so you can see the caption format and the spread of counts before you commit to five calls
Estimated tool cost
The tool is called through POST /v1/runs with toolId anyapi.instagram.reels_search and is listed at max_call, the catalog's unit: "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| First page | 1 call x max price | up to $0.00188 per call | 1 | $0.00188 |
| Five pages | 5 calls x max price | up to $0.00188 per call | 5 | $0.0094 |
Prices read from the Purrkey catalog on November 13, 2026, price revision anyapi-catalog-2026-11-05. A second keyword run costs the same again. Model fees for the agent are not counted
Next step
Open https://purrkey.app/tools/instagram?q=reels_search and run the first page with query set to your keyword before you plan the rest. The catalog points to a web-search-index view of the same keyword with a recency filter and numbered pages, and the companion guide is at https://purrkey.app/blog/instagram-reels-for-an-account
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 search Instagram Reels by keyword?
Call anyapi.instagram.reels_search with query set to the keyword. It returns matching reels with caption, creator, views, likes, comments and duration, plus a nextCursor you pass back as cursor to fetch another page.
Are the results in date order?
No. Results are relevance-ranked, not chronological, and a later page can repeat reels from an earlier one.
What does a null nextCursor mean?
The contract says it is null when a page contains only reels seen in recent pages. Treat the lane as exhausted at that point.
What happens when the search finds nothing?
found is false, data is null and reason is not_found. The contract states that a found: false answer is a successful call, not an error.
What does requireFields do?
It names output fields the request must be able to return, from audioId, locationId, locationLat, locationLng and locationName. Naming a field the cheapest source cannot return sends the request to a dearer source at its quoted price, and a combination no single source returns together is refused as invalid input, with no charge.
How much does it cost to pull five pages of Reels?
At up to $0.00188 per call, five calls are at most $0.0094. That figure is a ceiling, successful runs settle at the actual AnyAPI charge, and agent model fees are not counted.
Can I search Reels with a recency filter and numbered pages?
The catalog describes instagram.web_reels_search as a web-search-index view of the same keyword, with a recency filter and numbered pages.
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.