How to search Instagram hashtags by date and media type
Find dated Instagram hashtag posts and reels through a search index with captions, engagement counts and permalinks for an evidence table
On this page
You have a competitor content review next month and need 30 skincare reels from Instagram hashtag searches, each with a caption, engagement counts and a permalink. The deliverable is an evidence table for a decision on which reel formats and engagement levels to test next month
The table is a design, not a result: no run has been executed for this article
The task and the table design
The review needs 30 usable posts, not 30 raw rows. A usable row is a reel that matches the review and has the fields the table needs. Values here are placeholders showing the shape
Example row with placeholders:
| username | caption | createdUtc | likes | comments | productType | url | fit_note |
|---|---|---|---|---|---|---|---|
| @example_brand | (caption text) | 1760000000 | (number) | (number) | clips | (permalink) | (format and engagement note) |
Use a notes column for the manual call: format label, engagement band, and flags such as isAd or paidPartnership that make the reel a poor organic comparison
What the tool takes
anyapi.instagram.search_hashtag is called through POST /v1/runs with toolId anyapi.instagram.search_hashtag. The contract defines hashtag as required and says to enter it without the # prefix. It also defines datePosted with last-hour, last-day, last-week, last-month and last-year; mediaType can be set to reel; and cursor as a pagination cursor from a previous response. For this review, set datePosted to last-month and mediaType to reel
The hashtag value is entered without the # prefix. The date window restricts results; the table still needs createdUtc so you can order rows after the run. The media filter keeps the review to reels, while the output's productType gives the Instagram product type, for example feed, clips or igtv
Example input with a placeholder tag; replace it with your own:
| Field | Value |
|---|---|
hashtag | skincare |
datePosted | last-month |
mediaType | reel |
After the first response, copy data.nextCursor into cursor to continue. If nextCursor is null, the lane has no more
Page until the table has 30 usable posts
Pagination decides the table size. found tells you whether the source has a result. When found is true, read data.posts; when it is false, reason is not_found and the contract calls that a successful call, not an error. Each post has username, caption, createdUtc, likes, comments, productType and url for the table, plus isAd and paidPartnership for the notes column
createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. likes is absent when the account hides it, so record a blank and a note in the notes column rather than a zero
Use url as the permalink for the evidence table. comments is the comment count and likes is the like count; both are integers in the contract. productType feeds the format column, and username identifies the account
This tool cannot return Instagram's own live ranking or chronological feed. It searches a web search index instead. That is what lets it filter by date and media type and return reels whose like counts have settled, and it is also why results skew older, with a median around three months, and stop at roughly 110 posts per hashtag. Page with cursor until nextCursor is null or the table has 30 usable rows
A page can return fewer rows than expected; the cursor is the control, not a page count. Stop when nextCursor is null or 30 usable rows are in the table, whichever comes first
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Instagram hashtag posts for a competitor content review. Check the current inputs and price of anyapi.instagram.search_hashtag before running anything. Use hashtag skincare, datePosted last-month, mediaType reel. Call the tool, then page with data.nextCursor until the table has 30 usable reels or nextCursor is null. Return a table with username, caption, createdUtc, likes, comments, productType, url and fit_note. Leave likes blank when the field is absent and do not treat it as zero. Do not add posts that do not match the review.Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The tool is listed with max_call: "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 |
|---|---|---|---|---|
| First page | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Four-page sweep | calls x max price | $0.0012 per call | 4 | $0.0048 |
The first page is a probe of the query. The four-page sweep is the planned quantity for the 30-post review. If the table is short of 30 usable posts after four pages, continue with nextCursor and add calls at the same unit price. Agent model fees are not counted
Next action
Open the search_hashtag tool page to run the first page and check the current price before the four-page sweep
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 hashtags by date and media type?
Run anyapi.instagram.search_hashtag with hashtag set without the # prefix, then set datePosted to a window such as last-month and mediaType to reel. The result comes from a web search index, so page with nextCursor until the table has enough usable posts.
What inputs does anyapi.instagram.search_hashtag take?
The contract defines hashtag as required and also defines datePosted, mediaType and cursor. datePosted lists last-hour, last-day, last-week, last-month and last-year; cursor comes from a previous response.
What does found false mean?
A found: false response with reason: not_found means the source states the target does not exist or returned nothing for it. The contract says a found: false answer is a successful call, not an error.
Why do results skew older and stop at about 110 posts?
The tool searches a web search index rather than Instagram's own hashtag feed. The catalog says results skew older with a median around three months and stop at roughly 110 posts per hashtag.
How many calls does a 30-post review need?
The plan uses a first page as one call and a four-page sweep as four calls. Each call is priced up to $0.0012 under max_call; if nextCursor is not null after four pages, add calls at the same unit price.
What fields go in the evidence table?
Use username, caption, createdUtc, likes, comments, productType and url for the table, with fit_note for your own format and engagement note. isAd and paidPartnership can feed fit_note when a paid placement should not pass as an organic comparison.
What happens when likes is absent?
The contract says likes is absent when the account hides it. Leave the cell blank and add a note in fit_note rather than recording zero.
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.