List a profile's following
The accounts a profile follows on X (Twitter), the most recently followed first, each with its name, bio, counts and verification, read with your connected X account.
x/following/list20 credits a callv1.1.0When to use it
You want who an account follows on X: pass its handle (nasa, @nasa) or its profile's address. Each account comes as x/profiles/get gives a profile (following_count there says how many to expect). Follow next unchanged for more, 50 to 70 accounts a page: the list goes further than x.com's own page shows, which stops scrolling after the first page. An empty page is not the end of the list: X answers one now and then in the middle of a long list. Keep following next until it is null; empty pages are free. X never says a list is over (it gives a cursor on every page): next is null when X gives none, or after three empty pages in a row, a rule of this API. It needs one of your X accounts connected (POST /v2/accounts), and X counts each account's requests: about 500 pages for 15 minutes. For the accounts that follow a profile, use x/followers/list.
Try it
The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "x", "operation": "following/list", "options": { "profile": "nasa" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "object": "run", "id": "run_3uwd3s2ez5hr7cxwnzvzgianky", "livemode": true, "source": "x", "operation": "following/list", "version": "1.1.0", "schema_url": "https://api.lobstr.io/v2/catalog/x/following/list", "options": { "profile": "nasa" }, "fields": null, "status": "succeeded", "count": 1, "has_more": false, "next": null, "cost": { "credits": 20 }, "results": [ { "object": "profile", "id": "1700000000000000001", "position": 1, "handle": "NASAHubble", "name": "Hubble", "url": "https://x.com/NASAHubble", "description": "The official X account for the NASA Hubble Space Telescope.", "description_language": "en", "description_urls": [], "location": "Goddard Space Flight Center", "website_url": "http://www.nasa.gov/hubble", "created_at": "2008-03-07T19:07:50Z", "follower_count": 8700000, "following_count": 116, "tweet_count": 1930, "media_count": 164, "like_count": 5210, "is_blue_verified": true, "is_verified": false, "verified_type": "government", "is_protected": false, "is_possibly_sensitive": false, "professional": null, "avatar_url": "https://pbs.twimg.com/profile_images/1700000000000000002/abcdEFGH_normal.jpg", "banner_url": null, "avatar_shape": "square", "pinned_tweet_ids": [], "affiliation": { "name": "NASA", "url": "https://twitter.com/NASA", "badge_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_bigger.jpg", "type": "business_label", "detail": null, "account": null }, "is_identity_verified": false, "verified_since": null, "verification_reason": null, "affiliate_count": null, "parody_label": null, "interstitial": null, "highlighted_tweet_count": 0, "subscription_count": 0, "has_hidden_subscriptions": false, "is_subscribable": false, "birthdate": null, "source_url": "https://x.com/nasa/following", "observed_at": "2026-11-18T12:30:00Z" } ] }
Options
profilestringrequiredaccountstringcursorstringnext in an answer, as it is: opaque, and only for the profile it was given with (otherwise invalid_cursor). Leave it out to start at the accounts followed most recently.Record
Each record of results, in the envelope every call returns (Run an operation).
objectstringidstringpositionintegerhandlestringnamestringurlstringdescriptionstringdescription_languagestringdescription_urlslistlocationstringwebsite_urlstringcreated_atdatefollower_countintegerfollowing_countintegertweet_countintegermedia_countintegerlike_countintegeris_blue_verifiedbooleanis_verifiedbooleanverified_typestringis_protectedbooleanis_possibly_sensitivebooleanprofessional.typestringprofessional.categorieslistavatar_urlstringbanner_urlstringavatar_shapestringpinned_tweet_idslistis_identity_verifiedbooleanverified_sincedateverification_reasonstringaffiliation.namestringaffiliation.urlstringaffiliation.badge_urlstringaffiliation.typestringaffiliation.detailstringaffiliation.account.idstringaffiliation.account.handlestringaffiliate_countintegerparody_labelstringinterstitialstringhighlighted_tweet_countintegersubscription_countintegerhas_hidden_subscriptionsbooleanis_subscribablebooleanbirthdate.dayintegerbirthdate.monthintegerbirthdate.yearintegersource_urlstringobserved_atdateErrors
Its own, besides those of every call (Errors). A failed call is free.
| Code | Status | What it means |
|---|---|---|
invalid_profile | 422 | Pass a profile's handle (nasa, @nasa) or its address (https://x.com/nasa). |
profile_not_found | 404 | X has no profile with this handle (not charged). |
profile_unavailable | 404 | X does not show this profile, suspended or withheld (not charged). |
profile_protected | 403 | This profile is protected: X shows the accounts it follows to its own followers only, and your connected X account does not follow it (not charged). |
account_required | 422 | You have no connected X account. Connect one with POST /v2/accounts {"site": "x", "cookies": ...}: the cookies of a browser where you are logged in to x.com (https://docs.lobstr.io/accounts). |
account_rate_limited | 429 | This X account cannot read a list right now: it pauses a couple of seconds between two pages, and X counts each account's requests (about 500 pages for 15 minutes). retry_after says when it can again, in seconds. Retrying before then gets this same answer: nothing is queued. Retryable. |
account_unusable | 409 | X logged this account out, or locked it. Open x.com in the browser the account comes from, then connect it again with POST /v2/accounts and fresh cookies (the same account keeps its id). |
site_unavailable | 503 | X did not answer properly; retry later (not charged). Retryable. |
unexpected_answer | 424 | X answered in a shape we do not read yet; we are told and fix it (not charged). |
Price
20 credits per call that returns accounts, a short page included. An empty answer (the call after the last page), a failed call and a busy account are free. What a credit costs on each plan: Credits and pricing.
Each connected account makes one call every 2 seconds, plus 0 to 2 seconds; a busy account answers at once with account_rate_limited and retry_after.
Changelog
1.1.02026-11-20affiliation: detail, the label's own sentence (Automated by @x), and account, the account that sentence names.1.0.32026-11-20next is null when X gives no cursor or after three empty pages in a row, a rule of this API. Nothing changes in the answers.1.0.22026-11-18next now goes on past an empty page, and is null after three in a row.1.0.12026-11-181.0.02026-11-18