Social media5 min readBy Purrkey teamUpdated

How to list Instagram posts that tag an account

Get a paginated list of Instagram posts that tag a chosen account, with author, caption, likes, comments, timestamps, and URLs

On this page

You have 30 Instagram posts that tag a client account and need the newest page of them, with author, caption, likes, comments, timestamp and URL, so a partnerships analyst can shortlist creators for outreach

The worksheet below is the deliverable, one row per post and one column you fill in yourself. No run has been executed for this guide, so the cells are placeholders showing the shape rather than a result

Example input and the shortlist table

Three fields are documented for the request. handle is required and is the Instagram username without the @ prefix. Use the handle of the client account you are screening. cursor is optional and carries the pagination cursor from a previous response. requireFields is optional and accepts audioId or carouselCount; omit it and routing is unchanged with the cheapest source serving, while naming a field can raise your price when the cheapest source cannot return it

The table is what the analyst reads. Values here are placeholders showing the shape

authorcaptionlikescommentscreatedUtcurloutreach priority
(username)(text or empty)(integer or null)(integer)(epoch seconds)(post URL)high, review or skip

Fill outreach priority with your own rule, for instance a likes or comments threshold you set before the run so the column is not rewritten after you see the counts

Reading the fields that drive the shortlist

A response carries found, data and, when there is no result, reason. Inside data, posts holds the posts that tag the account, newest first, and nextCursor points at the following page. Each post carries the fields the shortlist needs

author is the username of the account that posted and applied the tag, without the @ prefix. caption is the post text and is empty when the post has none. likes and comments are the counts you rank on, with one catch: likes is null when the serving source does not report it, including when the owner hides like counts, so a null is an unreported count and not a zero. Put those rows in a separate bucket instead of at the bottom of the ranking. createdUtc is a UTC epoch timestamp in seconds, and you multiply it by 1000 for a JS Date in milliseconds. url is the post's canonical URL with tracking query parameters stripped, which is what goes into the outreach sheet

Posts also carry id, hashtags, mentions and taggedUsers, which help you describe a creator in an outreach note. If you need the account's own posts rather than posts that tag it, the recent posts guide covers that request

One page per call, and the cursor

Each call returns one page. That limit shapes the plan, because 30 posts is not 30 calls and it may not be one call either. data.nextCursor is the opaque cursor for the following page, or null when this lane has no more of them; pass it back as cursor to continue

Decide the page count before you spend. The first page gives the newest posts, and each additional page is another call at the same unit price. When found is false, reason is not_found, data carries no result, and the call is still a success rather than an error

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the Instagram
posts that tag one account. Check the current inputs and price of
anyapi.instagram.tagged_posts before running anything. Call it with
handle "nasa" and no cursor for the first page, then pass data.nextCursor
back as cursor for each following page until you have five pages or
nextCursor is null. Return a table with author, caption, likes, comments,
createdUtc, url and an empty outreach priority column. Show a null likes
value as null rather than filling in a number, and do not invent posts.

handle: nasa

Replace the handle with the client account. Keep the first run to one page and read the returned table before you ask for four more

Estimated tool cost

Prices are read from the Purrkey catalog on November 13, 2026, priceRevision anyapi-catalog-2026-11-05, and the tool is called through POST /v1/runs with toolId anyapi.instagram.tagged_posts. The unit is max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
First page1 call x max price$0.0024 per call1$0.0024
Five pages5 calls x max price$0.0024 per call5$0.012

A found: false answer settles at what it actually cost, and the response reports that figure. Model fees for the agent are not counted in either row

Next action

Run the first page for your client handle from the tagged posts tool page, then decide whether the newest posts fill the shortlist or it needs four more pages

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 list the Instagram posts that tag an account?

Call anyapi.instagram.tagged_posts with the account handle, without the @ prefix. The response returns posts that tag the account newest first, and passing data.nextCursor back as cursor returns the following page.

What inputs does anyapi.instagram.tagged_posts take?

It takes a required handle, which is the Instagram username without the @ prefix, plus an optional cursor copied from a previous response's nextCursor. An optional requireFields list accepts audioId and carouselCount.

Why does one call return only some of the posts?

Each call returns one page. data.nextCursor holds the cursor for the next page, or null when this lane has no more, and you pass it back as cursor to continue.

How much does it cost to list five pages of tagged posts?

At the listed maximum of $0.0024 per call, five calls are at most $0.012. A single page is at most $0.0024, and those figures are ceilings because a successful run settles at the actual AnyAPI charge.

What does found false mean on this tool?

When found is false, reason is not_found. That is a successful call rather than an error, and it costs what it actually cost.

Why is likes null on some tagged posts?

likes is null when the serving source does not report it, including when the owner hides like counts. A null is an unreported count, not a zero.

What is createdUtc in the response?

createdUtc is a UTC epoch timestamp in seconds. Multiply it by 1000 to get a JS Date in milliseconds.

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