Twitter Following API
List the accounts any X (Twitter) user follows, with full profiles. $0.01 per call.
Get the list of accounts that any public X (Twitter) user follows, by username or user id. Each account comes back as a full profile with bio, counts, verification, and avatar, with cursor pagination.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"cursor": "1597662469098825850|2116337024431554491",
"users": [
{
"avatar": "https://pbs.twimg.com/profile_images/3468011581/efb985f24af0a814a722457a768f3cc5_400x400.jpeg",
"banner": "https://pbs.twimg.com/profile_banners/14091091/1669391293",
"created_at": "2008-03-06T20:15:02+00:00",
"description": "The official X account for the NASA Hubble Space Telescope, managed and operated by NASA's Goddard Space Flight Center.",
"followers_count": 8895459,
"following_count": 44,
"id": "14091091",
"is_blue_verified": true,
"likes_count": 1243,
"listed_count": 15212,
"location": "Goddard Space Flight Center",
"media_count": 3156,
"name": "Hubble",
"pinned_tweet_ids": [],
"protected": false,
"tweet_count": 8501,
"url": "https://x.com/NASAHubble",
"username": "NASAHubble",
"verified": false,
"verified_type": "Government",
"website": "http://www.nasa.gov/mission_pages/hubble/main/index.html"
}
]
}
}Features
Each followed account is a complete User object.
Walk the full following list page by page; count sets the page size.
Accepts NASA, @NASA, a profile URL, or a numeric user_id.
Pages are cached for an hour.
Use cases
Interest Mapping
See what accounts a person or brand pays attention to.
Network Analysis
Build follow graphs between accounts in a niche.
Source Discovery
Find the accounts experts in your field follow.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/twitter/user-following', {
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);The Twitter Following API for who an account follows
The YepAPI Twitter Following API lists the accounts any public X user follows. Send a username to /v1/twitter/user-following and get back full profiles with bio, counts, and verification, plus a cursor, at $0.01 per call.
Who someone follows says a lot about their interests. This endpoint makes it a data set.
What does the Twitter Following API return?
A users array of User objects (id, username, name, description, location, website, avatar, followers_count, following_count, tweet_count, verification, and more) and a cursor for the next page.
Build follow graphs
Pull the following lists of the top accounts in a niche and count how often each followed account appears. The most-followed accounts are the niche's key voices. Combine with the Twitter Followers API to map both directions.
Twitter Following API pricing: $0.01 per call
Every call costs a flat $0.01 and failed calls are free. There is no monthly tier to buy, no developer account to get approved, and no separate Twitter API key: one YepAPI key covers every endpoint. Pages are cached for an hour.
Followers vs. following
Use the Twitter Followers API for who follows an account, and this endpoint for who the account follows. Both return the same User shape and take the same inputs.
Try the Twitter Following API free
Sign up and get $5 in free credit with no card required. That is 500 calls at $0.01 each to test the Twitter Following API on live X data before you spend anything. Every Twitter / X endpoint is on the same key.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Get the list of accounts that any public X (Twitter) user follows, by username or user id. Each account comes back as a full profile with bio, counts, verification, and avatar, with cursor pagination.
Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/twitter/user-following. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More Twitter / X API endpoints
Twitter User API (X Profile API)
$0.01Get any X (Twitter) profile by username: followers, following, tweets, bio, and verification. $0.01 per call.
X About This Account API
$0.01Get X's "About this account" data: country, username changes, verified-since date, and affiliation. $0.01 per call.
Twitter Bulk Users API
$0.01Look up to 100 X (Twitter) profiles by user id in a single call. $0.01 per call.
Tweet Scraper API (User Tweets)
$0.01Get the latest tweets from any X (Twitter) account with full engagement metrics. A tweet scraper at $0.01 per call.
Twitter User Replies API
$0.01Get an X (Twitter) account's tweets and replies timeline with full metrics. $0.01 per call.
Twitter Media API
$0.01Get the photos and videos an X (Twitter) account has posted, with media URLs. $0.01 per call.