{"operation":"following/list","version":"1.1.0","status":"pilot","title":"List a profile's following","summary":"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.","use_when":"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.","categories":["Social media","Lead generation"],"icon":"following","source":"x","input":{"type":"object","required":["profile"],"additionalProperties":false,"properties":{"profile":{"type":"string","minLength":1,"maxLength":200,"description":"The profile whose followed accounts you want: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). Not its display name.","examples":["nasa","@nasa","https://x.com/nasa"]},"account":{"type":"string","description":"The connected X account to read with (GET /v2/accounts). Left out, the platform takes the first of your X accounts with a free slot.","examples":["acc_7Hq2Kd9mX4pL"]},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,8000}$","description":"Where to go on, from `next` 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."}}},"requires":{"account":"x"},"limits":{"per_account":{"calls":1,"per_s":2,"jitter_s":[0,2]},"when_busy":{"error":"account_rate_limited","retry_after":true}},"pagination":{"style":"cursor","page_size":70,"next":{"profile":"<profile as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","handle","name","url","description","description_language","description_urls","location","website_url","created_at","follower_count","following_count","tweet_count","media_count","like_count","is_blue_verified","is_verified","verified_type","is_protected","is_possibly_sensitive","professional","avatar_url","banner_url","avatar_shape","pinned_tweet_ids","affiliation","is_identity_verified","verified_since","verification_reason","affiliate_count","parody_label","interstitial","highlighted_tweet_count","subscription_count","has_hidden_subscriptions","is_subscribable","birthdate","source_url","observed_at"],"properties":{"object":{"const":"profile"},"id":{"type":"string","description":"The account's id: it stays when the handle changes."},"position":{"type":"integer","minimum":1,"description":"Its rank in the list, across pages: 1 is the account followed most recently."},"handle":{"type":["string","null"],"description":"Its @handle, without the @, in the case the account wrote it."},"name":{"type":["string","null"],"description":"The display name."},"url":{"type":["string","null"],"format":"uri","description":"The profile's page."},"description":{"type":["string","null"],"description":"The bio, as X gives it: its links are t.co addresses."},"description_language":{"type":["string","null"],"description":"The bio's language, as X detects it."},"description_urls":{"type":"array","items":{"type":["string","null"]},"description":"The links of the bio","in full.":null},"location":{"type":["string","null"],"description":"As the account wrote it."},"website_url":{"type":["string","null"],"description":"The profile's link, in full."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the account joined X."},"follower_count":{"type":["integer","null"]},"following_count":{"type":["integer","null"]},"tweet_count":{"type":["integer","null"],"description":"Its posts, reposts and replies."},"media_count":{"type":["integer","null"],"description":"Its tweets with a photo or a video."},"like_count":{"type":["integer","null"],"description":"The tweets the account liked."},"is_blue_verified":{"type":["boolean","null"],"description":"The check mark next to the name, whatever its colour."},"is_verified":{"type":["boolean","null"],"description":"X's earlier verification."},"verified_type":{"type":["string","null"],"description":"business (gold check) or government (grey check), when X says so."},"is_protected":{"type":["boolean","null"],"description":"Whether only its followers see its posts."},"is_possibly_sensitive":{"type":["boolean","null"]},"professional":{"type":["object","null"],"description":"The professional profile the account declared; null when it declared none.","additionalProperties":false,"required":["type","categories"],"properties":{"type":{"type":["string","null"],"description":"business or creator."},"categories":{"type":"array","items":{"type":["string","null"]},"description":"As X names them (Media Personality)."}}},"avatar_url":{"type":["string","null"]},"banner_url":{"type":["string","null"]},"avatar_shape":{"type":["string","null"],"description":"circle, square (organizations), hexagon."},"pinned_tweet_ids":{"type":"array","items":{"type":"string"},"description":"The tweet pinned at the top of its posts."},"is_identity_verified":{"type":["boolean","null"],"description":"Whether X checked an identity document."},"verified_since":{"type":["string","null"],"format":"date-time","description":"Since when it is verified; null when it is not, or when X writes a date outside the calendar."},"verification_reason":{"type":["string","null"],"description":"Why it is verified, in X's words, as the page writes it under the check mark."},"affiliation":{"type":["object","null"],"description":"The label the account carries next to its name: the organization whose badge it has, or X's own word on it (Automated); null without one.","additionalProperties":false,"required":["name","url","badge_url","type","detail","account"],"properties":{"name":{"type":["string","null"],"description":"The organization's name on the badge."},"url":{"type":["string","null"],"description":"The organization's profile, as X links it."},"badge_url":{"type":["string","null"],"description":"The badge's image."},"type":{"type":["string","null"],"description":"business_label for an organization's badge, automated_label for an account X labels as automated."},"detail":{"type":["string","null"],"description":"The label's own sentence when it has one: Automated by @marc_krenn."},"account":{"type":["object","null"],"description":"The account the label's sentence names (who runs an automated account); null without one.","additionalProperties":false,"required":["id","handle"],"properties":{"id":{"type":"string"},"handle":{"type":["string","null"]}}}}},"affiliate_count":{"type":["integer","null"],"description":"For an organization, the accounts affiliated to it; null for others."},"parody_label":{"type":["string","null"],"description":"parody, commentary or fan, when the account carries that label."},"interstitial":{"type":["string","null"],"description":"The warning X puts before the profile, when any."},"highlighted_tweet_count":{"type":["integer","null"],"description":"The tweets of its Highlights tab."},"subscription_count":{"type":["integer","null"],"description":"The creators the account subscribes to."},"has_hidden_subscriptions":{"type":["boolean","null"],"description":"Whether it hides them on its profile."},"is_subscribable":{"type":["boolean","null"],"description":"Whether the account sells subscriptions."},"birthdate":{"type":["object","null"],"description":"The birth date the profile shows; null when it shows none.","additionalProperties":false,"required":["day","month","year"],"properties":{"day":{"type":["integer","null"]},"month":{"type":["integer","null"]},"year":{"type":["integer","null"],"description":"Null when the profile hides the year."}}},"source_url":{"type":"string","format":"uri","description":"The list's page on x.com."},"observed_at":{"type":"string","format":"date-time","description":"When we read it."}}},"price":{"credits_per_call":20,"description":"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.","free":["empty","failed","account_rate_limited"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"invalid_profile","status":422,"detail":true,"message":"Pass a profile's handle (nasa, @nasa) or its address (https://x.com/nasa)."},{"code":"profile_not_found","status":404,"message":"X has no profile with this handle (not charged)."},{"code":"profile_unavailable","status":404,"message":"X does not show this profile, suspended or withheld (not charged)."},{"code":"profile_protected","status":403,"message":"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)."},{"code":"account_required","status":422,"message":"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)."},{"code":"account_rate_limited","status":429,"retryable":true,"detail":true,"message":"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."},{"code":"account_unusable","status":409,"message":"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)."},{"code":"site_unavailable","status":503,"retryable":true,"message":"X did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"X answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"profile":"nasa"},"records":[{"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"}]}],"health":{"every_h":3,"canaries":[{"profile":"nasa","account":"monitoring","min_records":10},{"profile":"https://x.com/SpaceX","account":"monitoring","min_records":10}],"required_fields":["id","handle","created_at","follower_count","avatar_url"]},"changelog":[{"version":"1.1.0","date":"2026-11-20","notes":"Two new fields in the account's `affiliation`: `detail`, the label's own sentence (Automated by @x), and `account`, the account that sentence names."},{"version":"1.0.3","date":"2026-11-20","notes":"Said outright: X never says a list is over, so `next` 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."},{"version":"1.0.2","date":"2026-11-18","notes":"A long list is no longer cut short: X can answer a page without accounts in the middle of a list, which was read as its end. `next` now goes on past an empty page, and is null after three in a row."},{"version":"1.0.1","date":"2026-11-18","notes":"Its title is \"List a profile's following\", as x/followers/list is \"List a profile's followers\". Nothing changes in the calls nor in the answers."},{"version":"1.0.0","date":"2026-11-18","notes":"First version on the API v2, in place of the v1 Twitter Followers & Following Scraper's following: the accounts a profile follows, each as x/profiles/get gives a profile, page after page, read with your own connected X account."}],"object":"operation","id":"x/following/list","site":{"title":"X (Twitter)","domain":"x.com","color":"#C9D3DE"}}