Social media5 min readBy Purrkey teamUpdated

How to export an X account's followers list

Get a paginated follower list for a public X (Twitter) account with profile fields and a next cursor

On this page

You have a public X account and need a 200-follower sample for a partnership review. Pull one native page of followers with anyapi.twitter.followers, keep the profile fields that drive the shortlist, and follow nextCursor until the sample is large enough

The deliverable is a table with one row per follower and a shortlist decision. The table below is a design, and values are placeholders showing the shape. No run has been executed for this guide

Example input and worksheet design

Example input: username set to openai. The reader replaces this handle with the target account

FieldValue
usernameopenai

The worksheet uses these columns

usernamenamefollowersfollowingverifiedlocationavatarUrlbioidcreatedUtcshortlist
(handle)(display name)(count)(count)(true or false)(text or empty)(URL or empty)(text or empty)(numeric string)(Unix seconds)keep or skip

Values here are placeholders showing the shape. The shortlist cell is your decision after reading the profile fields; the tool does not fill it

The table feeds a shortlist of accounts to vet for audience overlap. Keep one row per follower, including rows you skip, so the sample size stays visible. The shortlist column records your decision, not a tool output

Fetch one native page

anyapi.twitter.followers is called through POST /v1/runs with toolId anyapi.twitter.followers. The required input is username, the public X handle without the @ prefix. The contract lists optional cursor, limit and requireFields

cursor is the opaque value from a previous response's nextCursor. Omit it on the first call and pass it back to continue the walk. limit has a default of 200 and a range of 1 to 100000, but the contract says it does not change the page. One call returns one full native page of up to 200 followers, depending on the source. The tool cannot trim that page with limit. Follow nextCursor for more

requireFields accepts bio and following. Name one or both when the source must return the named fields. The contract says this can raise your quoted price; if no single source returns the combination, the request is refused as invalid input with no charge

Plan the cursor walk

For a 200-follower audit, plan one call when the source returns a full native page. If the first page returns fewer than 200 records, read nextCursor: a non-null value means another page exists. For a 1,000-follower review, plan five calls. The page size depends on the source, so treat 200 as a per-page ceiling, not a fixed count

The walk can stop before nextCursor is null when the sample is large enough. Keep the last cursor outside the deliverable table if you plan to resume; the table columns above do not include it

Read output fields for the shortlist

The follower records sit in data.items. Each record carries username, name, followers, following, verified, location, avatarUrl, bio, id and createdUtc. id is the numeric X user id as a string. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JavaScript Date in milliseconds

Read followers, verified, bio and location first when you set the shortlist column. The contract does not say those fields predict audience overlap. They are the profile signals you review before you decide

nextCursor is the field that controls pagination. It is a string or null. Null means no more pages. If found is false, reason says not_found and data is null; the contract calls that a successful call, not an error

Agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the
followers of a public X account. Check the current inputs and price of
anyapi.twitter.followers before running anything. Request one page for
the username openai. Follow nextCursor until you have five pages or
nextCursor is null. Return a table with username, name, followers,
following, verified, location, avatarUrl, bio, id, createdUtc and a
shortlist column. Leave fields empty when the response leaves them
empty. Do not invent values.

username: openai

Replace openai with the target handle before you run the prompt

Estimated tool cost

The catalog lists anyapi.twitter.followers as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The table totals are ceilings

StepFormulaUnit pricePlanned quantityTotal
One native pagecalls x max priceup to $0.00054 per call1$0.00054
Five-page cursor walkcalls x max priceup to $0.00054 per call5$0.0027

A five-page walk can return up to 1,000 follower records when each page is full, depending on the source. Model fees for the agent are not counted. A short sample of one page is at most $0.00054

Fetch the first page

Open the X followers tool, set username to your target handle, and run one page. Use the returned nextCursor only if you need more followers

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 X (Twitter).
Explore X (Twitter) tools and pricing

FAQ

How do I export an X account's followers list?

Use anyapi.twitter.followers with the public handle in username. Read the follower records from data.items and follow nextCursor to fetch another page.

What inputs does anyapi.twitter.followers take?

The required input is username. The contract lists optional cursor, limit and requireFields, and handle appears as an alias for username.

How many followers does one call return?

One call returns one full native page of up to 200 followers, depending on the source. limit does not trim that page.

How do I get more than 200 followers?

Copy nextCursor from the response into cursor on the next call. A null nextCursor means no more pages.

Which output fields should I use to shortlist followers?

The records carry username, name, followers, following, verified, location, avatarUrl, bio, id and createdUtc. Set the shortlist column after reading followers, verified, bio and location.

How much does it cost to pull five pages of followers?

Five calls at up to $0.00054 per call is a ceiling of $0.0027. One native page is at most $0.00054.

What happens if the X account is not found?

The response has found false and reason set to not-found, with data null. The contract calls that a successful call, not an error.

Next step

Try this with X (Twitter)

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 X (Twitter) tools

Share this article