--- title: "Check Twitter Following in a Single API Call" description: "One request to check_follow_relationship returns following, followed_by, blocking and can_dm for two account IDs, at $0.0008 instead of a roster walk." canonical: https://www.twitterapis.com/answers/how-to-check-if-one-account-follows-another generator: md-live-route generated: 2026-11-07T16:24:07.452Z --- # Check Twitter Following in a Single API Call 1. [Home](https://www.twitterapis.com/) 2. / [Answers](https://www.twitterapis.com/answers) 3. / How do you check if one X account follows another? # How do you check if one X account follows another? Last updated November 7, 2026 To check Twitter following for a specific pair, send GET user/check\_follow\_relationship with source\_user\_id and target\_user\_id. One response carries following, followed\_by, blocking, blocked\_by, muting and can\_dm, so both directions of the edge settle at once. The probe costs $0.0008 and replaces walking a roster page by page to prove a negative. Every rate here is the pricing TwitterAPIs publishes. The billed rate is $0.0008 per call; $0.04 per 1,000 tweets is derived from it at a full 20-tweet page, which is the default page size rather than a guaranteed yield (source: [twitterapis.com/pricing](https://www.twitterapis.com/pricing)). ## One request settles the whole question GET user/check\_follow\_relationship takes a source and a target, each given either as a numeric id (source\_user\_id, target\_user\_id) or as a handle (source\_username, target\_username). There is no cursor, no page size and nothing to loop over, because the answer is a single object rather than a collection. The pair is evaluated upstream and the verdict comes back whether the accounts involved have four followers or forty million. That property is what makes this route worth knowing about: every other way of answering the same question scales with the size of somebody else's audience, and this one does not scale with anything. The documented call probes 745273 against 2178758961, and the entire request is those two query parameters plus an Authorization header carrying your key as a bearer token. ## The relationship object, field by field The response has a single top-level key, relationship. Inside it, source\_id and target\_id echo the pair you asked about, which is useful when a batch of answers comes back out of order. following is the source account following the target. followed\_by is the same edge read the other way, so the two together give four states: no connection, outbound only, inbound only, and mutual when both are true. Alongside those sit blocking, blocked\_by, muting and can\_dm. Nothing is paginated, nothing is truncated, and one request has already paid for all eight fields whether or not your code reads them. The route is filed under ordinary user reads rather than session reads, so no logged in X account has to be registered against your key for it to answer. ## Booleans and nulls are not the same answer The documented example is instructive about types. following comes back true, followed\_by false, can\_dm true, and blocking, blocked\_by and muting all come back null rather than false. So these are not clean booleans across the board. Treat them as three-valued: true means the state is confirmed, false means it is confirmed absent, and null means X did not supply a verdict for that field on this pair. Code that reads null as falsy will quietly report no block where the honest answer is that the block status is unknown, which is a different and considerably more misleading claim to store. Store the raw value rather than a coerced boolean, so a later pass can still tell a confirmed absence apart from a missing verdict without paying to probe the pair again. ## A missing account is a 404, a null relationship is X's answer There are two failure shapes to keep apart, and neither is a plain no. If the source or the target account does not exist, the call returns a 404 with error not\_found, and that call is not billed. If both accounts resolve but X returns no relationship, the relationship object comes back null. Both are categorically different from a confirmed absence of a follow edge, so branch on each explicitly and record it as unknown. If you fold either into the same bucket as a plain no, a deleted, suspended or renamed account will read for months as an account that simply does not follow the target, and nothing downstream will ever question the row. ## Ids or handles, and why to store ids The route accepts either form, numeric ids or handles, so a cold pair of @handles is a single request with no separate profile lookup. Store the ids once you have them anyway: identifiers are permanent, so a cached pair stays correct when either account renames, while a handle-keyed pair breaks silently the first time someone rebrands. The source and target names keep the direction unambiguous at the call site, which matters because a swapped pair returns a confident wrong answer rather than an error. ## Why a probe beats reading a roster The alternative is downloading a follower or following list and searching it. That works, and it is expensive in a specific way: a hit can stop early, but a miss is only certain after the final page, so the cheapest outcome to confirm is the one you were probably hoping for and the expensive one is the common result. Worse, the cost is a function of the other account's popularity, which you do not control and cannot predict from the input. Checking one pair against a large account can mean hundreds of requests for a one-bit answer. It also makes a batch job's runtime unpredictable, since one unusually popular target can take longer to settle than every other pair in the run put together. ## The arithmetic, spelled out Requests are flat priced, so cost is request count and nothing else. A roster needing 250 pages bills 250 times the standard rate, $0.20, and consumes close to half of a minute's request allowance for a single verdict. The probe answers the same question for $0.0008. That is a factor of 250 on one pair. Run it as a nightly job over a thousand pairs and the roster approach is $200 a night against eighty cents, at which point the difference is no longer an implementation detail worth debating. None of that assumes a discount tier or a negotiated rate, because there is only one rate here: every request in either approach bills the same standard amount, which is what reduces the comparison to a straight count of calls. ## Checking a thousand pairs at once Because each check is independent, the job is embarrassingly parallel and the only limits are the account ones: 20 requests in flight at any moment, 600 issued per minute per key. A thousand cached pairs therefore clears in under two minutes of wall clock, and the arithmetic scales linearly from there. Key your results on the id pair rather than the handles so a rerun skips what it already knows, and record the null-relationship cases separately so a later pass can retry them instead of treating them as settled. Nothing about the route is stateful and there is no cursor to lose, so retries are safe and a partial failure can be re-driven for just the affected pairs instead of restarting the batch. ## When the question is who do we both know A different route answers the warm-introduction version. user/followers\_you\_know returns the accounts that follow a target and that your own logged in account also follows, which is the shared-connection set a profile page shows as social proof. It takes user\_id, an optional count defaulting to 20, and a cursor, and returns count, next\_cursor and users. Unlike the pair probe it is a Session Read, so it needs the auth\_token and ct0 cookies registered against your key, because the answer is defined relative to whose account is asking. That registration is a free call carrying the auth\_token and ct0 cookies from a logged in browser session, and it is the one prerequisite the pair probe does not share. The per call price is the same, so the difference between the two is access rather than cost. That rate is $0.0008 a call, per our own rate card. ## How fresh is the data? A check is evaluated upstream when you send it, so the verdict describes the pair at the moment of the call rather than at the time of some earlier export. The one step that does use a cached lookup is turning a handle into a numeric id when you send source\_username or target\_username, and that is safe because an account keeps its id for life. The flip side of a live answer is that it can go stale the moment after you read it: someone can follow or unfollow a second later. Store a checked\_at time next to every verdict, and re-check on the schedule your use case needs rather than treating an old true as permanent. ## Key endpoints for follower tracking Five routes cover almost every follower question. user/check\_follow\_relationship answers one pair for $0.0008, and accepts handles directly through source\_username and target\_username, so the id lookup step described above is optional; an unknown handle returns a 404 that is not billed. user/check\_follow\_relationship/batch checks one fixed account against up to 100 others in one request, in either direction, and bills $0.0008 per pair answered, so 100 pairs cost at most $0.08 and a not\_found pair is free. user/followers and user/following page through the full lists at $0.0008 a page; keep paging until the users array comes back empty, because the cursor stays non-null on the final page. user/info returns followers\_count and following\_count for $0.0008, which is the cheap way to watch an audience grow without downloading it. user/followers\_you\_know returns the shared connections between a target and your own logged in account. ## Five ways to answer does A follow B, and what each one costs you | Approach | Requests needed | Certain on a negative? | | --- | --- | --- | | check\_follow\_relationship with cached ids | 1 | Yes, immediately | | check\_follow\_relationship with handles | 1 | Yes, immediately | | Paging the target's follower roster | One per page, to the end | Only after the final page | | Paging the source account's following roster | One per page, to the end | Only after the final page | | followers\_you\_know for shared connections | One per page of mutuals | Answers a different question | > The Follows endpoints let you follow and unfollow users, and retrieve follower and following lists for any user. X Developer Platform, Follows documentation. [Source](https://docs.x.com/x-api/users/follows/introduction) ## Questions and answers Which endpoint answers whether A follows B? user/check\_follow\_relationship. It is a GET taking source\_user\_id and target\_user\_id, and it returns one relationship object rather than a collection, so there is nothing to page through. The response arrives at the same speed whether the accounts have a hundred followers or a hundred million, because the pair is evaluated upstream instead of being searched for in a downloaded list. It is also an ordinary user read rather than a session read, so no X login has to be registered against your key first. Does the probe tell me which direction the follow goes? Both directions arrive in the same object. following describes the source account following the target, and followed\_by describes the reverse edge. Reading them as a pair gives four states: no connection, outbound only, inbound only, and mutual when both are true. Reciprocity therefore needs no second request, which is the usual reason people reach for two roster downloads instead. source\_id and target\_id are echoed back in the same object, which keeps a batch of answers matchable when they return out of order. Why do blocking and muting come back null? Because those fields are three-valued rather than boolean. In the documented example following is true and followed\_by is false, while blocking, blocked\_by and muting are all null. A null means X returned no verdict for that field on this pair, which is not the same claim as false. Code that treats null as falsy will record an absent block where the truthful answer is unknown. What does the response look like when an account does not exist? The call returns a 404 with error not\_found, and it is not billed. A null relationship object is a different case: both accounts resolved but X returned no relationship. Neither is a verdict on the follow edge, so branch on both explicitly, otherwise a deleted, suspended or renamed account reads forever as an account that merely does not follow the target. Can I pass handles instead of numeric IDs? Yes. The route takes either numeric ids (source\_user\_id, target\_user\_id) or handles (source\_username, target\_username), and the batch route takes comma-separated lists of either. Ids are still the safer key to store: they are permanent and handles are not, so a stored pair of ids stays correct indefinitely, while a stored pair of handles quietly breaks the first time either account rebrands. The source and target names also make the direction explicit at the call site, which is worth asserting on. Is a block visible through the same call? It is. blocking and blocked\_by sit in the same object as the follow flags, along with muting. All three can come back null, meaning no verdict rather than no block, so read them as three-valued. Because they arrive in the response you have already paid for, checking them costs nothing extra beyond the field access in your own code. The same is true of can\_dm, so one probe covers connection, block state and deliverability together. What is the can\_dm field for? It reports whether a direct message to the target could be delivered at all, which is the check worth running before any outreach attempt rather than after a send fails. Like the other relationship flags it comes back inside the single response, so a workflow that already probes the follow edge gets the deliverability answer for free in the same round trip. How many pairs can I check per minute? Up to 600 requests a minute on one key, with 20 open concurrently, and each pair is one request once its identifiers are cached. That puts a thousand pairs at under two minutes of wall clock. The work is independent per pair, so it parallelises cleanly, and results keyed on the id pair let a rerun skip everything it already resolved. Is the probe really cheaper than downloading a follower list? By a wide margin on any sizeable account. A roster that needs 250 pages bills 250 requests, twenty cents, for a single yes or no, and burns a large slice of the per minute allowance doing it. The probe settles the same pair for one request. Over a nightly run of a thousand pairs that is the difference between $200 and eighty cents. What is followers\_you\_know actually for? It answers the warm introduction question rather than the yes or no one. Given a target account it returns the accounts that follow the target and that your logged in session also follows, which is the shared connection set a profile shows as social proof. It takes user\_id with an optional count, pages with a cursor, and needs a registered session. ## Keep reading - [Twitter Followers API](https://www.twitterapis.com/twitter-followers-api) - [Twitter follow checker](https://www.twitterapis.com/tools/twitter-follow-checker) - [Rate limits](https://www.twitterapis.com/twitter-api-rate-limits) - [How do you get a Twitter user ID?](https://www.twitterapis.com/answers/how-to-get-a-twitter-user-id) - [Cost calculator](https://www.twitterapis.com/twitter-api-cost-calculator) ### Start with $0.50 in free credits No credit card. Roughly 12,500 tweets to test every endpoint. [Get your API key](https://www.twitterapis.com/signup)[See pricing](https://www.twitterapis.com/twitter-followers-api) [ TwitterAPIs ](https://www.twitterapis.com/) The cheapest pay-as-you-go Twitter and X API. $0.0008 per call, which works out to $0.04 per 1,000 tweets on a full 20-tweet page. No subscriptions and no developer account. ## Product / API - [Pricing](https://www.twitterapis.com/pricing) - [Cost Calculator](https://www.twitterapis.com/twitter-api-cost-calculator) - [Rate Limits](https://www.twitterapis.com/twitter-api-rate-limits) - [MCP Server](https://www.twitterapis.com/mcp) - [Integrations](https://www.twitterapis.com/integrations) - [Language Clients](https://www.twitterapis.com/sdk) - [Changelog](https://www.twitterapis.com/changelog) - [Status](https://www.twitterapis.com/status) ## Developers - [Documentation](https://docs.twitterapis.com/docs) - [API Reference](https://docs.twitterapis.com/docs/reference/search/tweet-advanced-search) - [User Info](https://docs.twitterapis.com/docs/reference/user-reads/user-info) - [User Tweets](https://docs.twitterapis.com/docs/reference/user-reads/user-tweets) - [Advanced Search](https://docs.twitterapis.com/docs/reference/search/tweet-advanced-search) - [Verified Followers](https://docs.twitterapis.com/docs/reference/follower-graph/user-verified-followers) ## Resources / Compare - [Answers](https://www.twitterapis.com/answers) - [Reviews](https://www.twitterapis.com/reviews) - [Free Tools](https://www.twitterapis.com/tools) - [Twitter ID Finder](https://www.twitterapis.com/tools/twitter-id-finder) - [Get a Twitter API Key](https://www.twitterapis.com/twitter-api-key) - [Official X API Comparison](https://www.twitterapis.com/twitter-api-pricing) - [Twitter API Use Cases](https://www.twitterapis.com/twitter-api-usecases) - [Twitter API Alternatives](https://www.twitterapis.com/twitter-api-alternatives) - [Twitter Unofficial API](https://www.twitterapis.com/twitter-unofficial-api) - [Twitter Free API](https://www.twitterapis.com/twitter-free-api) - [TwitterAPIs vs twitterapi.io](https://www.twitterapis.com/twitterapis-vs-twitterapi-io) - [TwitterAPIs vs GetXAPI](https://www.twitterapis.com/twitterapis-vs-getxapi) - [TwitterAPIs vs TweetAPI](https://www.twitterapis.com/twitterapis-vs-tweetapi) - [TwitterAPIs vs TwexAPI](https://www.twitterapis.com/twitterapis-vs-twexapi) - [TwitterAPIs vs RapidAPI](https://www.twitterapis.com/twitterapis-vs-rapidapi) ## Legal - [About](https://www.twitterapis.com/about) - [Security](https://www.twitterapis.com/security) - [Trust](https://www.twitterapis.com/privacy-and-data-handling) - [Terms of Service](https://www.twitterapis.com/terms-of-service) - [Affiliates](https://www.twitterapis.com/affiliates) - [Contact](https://www.twitterapis.com/contact) - [Jobs](https://www.twitterapis.com/jobs) © 2026 TwitterAPIs. All rights reserved. TwitterAPIs is an independent third-party API for developers and researchers. Not affiliated with, endorsed by, or sponsored by X Corp. All systems operational