YepAPI
Twitter / X API

Twitter Followers API (X Followers)

Twitter Followers API — list the followers of any X (Twitter) account with full profiles, follower counts, and bios. Paginated JSON, $0.01 per call.

POST/v1/twitter/user-followers
$0.01/call

The Twitter Followers API lists the accounts that follow an X user, most recent followers first, each with a full profile (bio, follower counts, verification). Use it for audience analysis, influencer vetting, or lead lists. The reverse direction is User Following.

Usage

const res = await fetch('https://api.yepapi.com/v1/twitter/user-followers', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"username": "NASA", "count": 20}),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/twitter/user-followers \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "NASA", "count": 20}'
import requests

res = requests.post(
    "https://api.yepapi.com/v1/twitter/user-followers",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"username": "NASA", "count": 20},
)
print(res.json()["data"])

Request Body

ParameterTypeRequiredDescriptionDefault
usernamestringOne ofX handle — NASA, @NASA, or an x.com / twitter.com profile URL—
user_idstringOne ofNumeric X user ID (skips the username lookup). Send username or user_id—
countnumberNoPage size hint, 1–10020
cursorstringNocursor from the previous response, to fetch the next page—

Response

{
  "ok": true,
  "data": {
    "cursor": "1880524837318699245|2116337016386879417",
    "users": [
      {
        "avatar": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_400x400.jpg",
        "banner": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
        "created_at": "2009-04-23T21:53:30+00:00",
        "description": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
        "followers_count": 41941885,
        "following_count": 127,
        "id": "34743251",
        "is_blue_verified": true,
        "likes_count": 529,
        "listed_count": 45956,
        "location": "Earth",
        "media_count": 4751,
        "name": "SpaceX",
        "pinned_tweet_ids": [],
        "protected": false,
        "tweet_count": 11912,
        "url": "https://x.com/SpaceX",
        "username": "SpaceX",
        "verified": false,
        "verified_type": "Business",
        "website": "http://spacex.com"
      },
      {
        "avatar": "https://pbs.twimg.com/profile_images/2050149546685022208/72MxNUv-_400x400.jpg",
        "banner": "https://pbs.twimg.com/profile_banners/17471979/1789591798",
        "created_at": "2008-11-18T21:28:10+00:00",
        "description": "Step into wonder and find your inner explorer with National Geographic 🌎",
        "followers_count": 28088149,
        "following_count": 179,
        "id": "17471979",
        "is_blue_verified": true,
        "likes_count": 7559,
        "listed_count": 59007,
        "location": "Global",
        "media_count": 8616,
        "name": "National Geographic",
        "pinned_tweet_ids": [
          "2110807923106386140"
        ],
        "protected": false,
        "tweet_count": 73703,
        "url": "https://x.com/NatGeo",
        "username": "NatGeo",
        "verified": false,
        "verified_type": "Business",
        "website": "http://www.nationalgeographic.com"
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.usersobject[]Accounts
data.users[].idstringNumeric user ID — use it as user_id on timeline endpoints
data.users[].usernamestringHandle without @
data.users[].namestringDisplay name
data.users[].descriptionstring | nullBio
data.users[].locationstring | nullLocation from the profile
data.users[].websitestring | nullWebsite link from the profile
data.users[].created_atstringAccount creation, ISO 8601
data.users[].avatarstring | nullProfile image URL (400×400)
data.users[].bannerstring | nullBanner image URL
data.users[].urlstringx.com profile URL
data.users[].followers_countnumberFollowers
data.users[].following_countnumberAccounts followed
data.users[].tweet_countnumberPosts, including replies and reposts
data.users[].likes_countnumberPosts liked
data.users[].media_countnumberPhotos and videos posted
data.users[].listed_countnumberLists the account is on
data.users[].is_blue_verifiedbooleanHas a blue check
data.users[].verifiedbooleanLegacy verification flag
data.users[].verified_typestring | nullBusiness, Government, or null
data.users[].protectedbooleanPosts are protected (private)
data.users[].pinned_tweet_idsstring[]IDs of pinned posts
data.cursorstring | nullCursor for the next page

Pagination

Each response includes a cursor. Send the same request again with that value in cursor to get the next page; cursor is null when there is nothing more (or the page came back empty). count is a page-size hint — X may return a few more or fewer items than you ask for. Every page is a separate $0.01 call.

Caching

Responses are cached for 1 hour.

Errors

StatusCodeWhen
400VALIDATION_ERRORNeither username nor user_id was sent, or one is malformed
404NOT_FOUNDUser not found or suspended
429RATE_LIMITED_UPSTREAMToo many requests in a short burst — retry after a few seconds
502 / 503UPSTREAM_ERROR / SERVICE_UNAVAILABLETemporary problem fetching data from X — retry later

Failed calls are not charged.

A protected account returns 200 with an empty users list.

On this page