Social media5 min readBy Purrkey teamUpdated

How to list Instagram following accounts by username

Fetch the first page of about 50 accounts a public Instagram user follows, with handles, names, and profile details, then sort the rows by verified and private status for review

On this page

You have a prospect's public Instagram username and need the first page of about 50 accounts that user follows, with handles and profile details, before an outreach call. Call anyapi.instagram.following with that username, then sort the returned handles by verified and private to choose the peer group to examine next

The deliverable is a review table with one row per returned account. No run has been executed for this guide, so the table below is a design, not a result

Example input and the review table design

The tool description says it lists about the first 50 accounts a public Instagram user follows, with usernames, names, and profile details

Values here are placeholders showing the shape

handlenameidverifiedprivateurl
example_handleExample Name0000000000falsefalse(profile URL or empty)

What the tool accepts

anyapi.instagram.following is called with username, which is required. The contract says username accepts an Instagram username, user ID, or profile URL. Agents call it through POST /v1/runs with toolId anyapi.instagram.following

cursor is optional. It takes an opaque pagination cursor from a previous response's nextCursor. Today current sources return a single page of about 50 accounts and no continuation cursor, so nextCursor comes back empty and there is no further page to request. The parameter is accepted but has nothing to resume from

requireFields is optional. Omit it and routing is unchanged, with the cheapest source serving. Name the output fields the request must be able to return, for example private, and the request is served only by a source that returns each named field. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted

For account-level profile fields, the companion account lookup guide is at https://purrkey.app/blog/instagram-account-lookup

Read the output fields before you sort

The top level has found and data. found says whether the account was found and returned following records. When found is false, reason is present and is not_found: 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, and it has an actual cost

data.items is an array of followed accounts. Each item has handle, name, id, image, private, url, and verified. id and handle are required in each item. name is empty when the account has none. image is empty when the upstream omits it. url is empty when the lane does not return it. private says whether the followed account is private, and verified says whether it is verified

Use handle as the readable key, id as the stable identifier, and url as the profile link when the response includes it. data.nextCursor is the field to check before asking for another page. Pass it back as cursor when it is non-empty. Current sources return it empty, so the first page is the page you work with

Fetch one page and mind the cap

Call the tool once per username. The contract caps the return at about the first 50 followed accounts on a single page. nextCursor is empty in current sources, so this is not the full following list and you cannot walk further pages today. Plan the review around that page, and do not present it as the account's full following list

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the first page of following accounts for the Example username below. Check the current inputs and price of anyapi.instagram.following before running anything. Call the tool once per username. Use username "natgeo" for the Example run, then replace it with your target. Return a table with handle, name, id, verified, private, and url. Do not ask for more pages when nextCursor is empty.

Replace the Example username with your target. The prompt asks for the first page and a table, not a scrape of the full following list

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. anyapi.instagram.following is listed at up to $0.018 per call, unit max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
One username checkcalls x max price$0.018 per call1$0.018
Five-username batchcalls x max price$0.018 per call5$0.090

A one-username check is $0.018 in the table. A five-username batch is $0.09 in the table

Next action

Open the Instagram following tool page to run anyapi.instagram.following with your username: https://purrkey.app/tools/instagram?q=following

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 accounts a public user follows?

Call anyapi.instagram.following with the target username, user ID, or profile URL. It returns about the first 50 followed accounts on a single page, with handle and profile fields.

What inputs does anyapi.instagram.following take?

It requires username. The optional cursor takes a nextCursor from an earlier response, and optional requireFields names output fields such as private; naming a field can change which source serves and raise the price.

How many following accounts does the tool return?

About the first 50. Current sources return one page and no continuation cursor, so nextCursor comes back empty and you cannot request further pages today.

What do verified and private mean in the output?

verified says whether the followed account is verified, and private says whether it is private. Both are boolean fields on each item in data.items.

How much does a one-username check cost?

At most $0.018, because the listing is up to $0.018 per call. A successful run settles at the actual AnyAPI charge.

What happens when the username is not found?

The response has found false and reason not_found. The contract says a found: false answer is a successful call, not an error, and it has an actual cost.

Can I use cursor to fetch more than the first page?

Not today with current sources. The cursor input is accepted, but current sources return one page of about 50 accounts and nextCursor is empty, so there is no continuation to resume.

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