Twitter and X API answers
Quick answer
TwitterAPIs is a pay-per-call Twitter and X API that returns tweets, profiles, search results, and direct messages as JSON without an X developer account. This page indexes our direct answers to the cost and access questions developers search before they build, and every entry below opens with the number rather than a preamble. Standard reads bill at $0.0008 per call, per our own published pricing, across 99 public endpoints, 63 read and 36 write, of which 60 carry that rate, 24 are free and 15 sit between $0.0016 and $0.01.
TwitterAPIs is a Twitter and X API alternative, and this page is its direct-answer index for the questions developers actually search before they touch the API: what it costs, how the pricing tiers work, whether a free option exists, and how the official API compares to third-party alternatives. Each entry below opens with the number itself, not a preamble, and links out to the full pricing or setup detail for whoever needs the longer version. One note on how to read the numbers: what you are billed is $0.0008 per call, whatever that call returns. Every "per 1,000 tweets" figure below, ours and everyone else's, is derived from a per-call rate by assuming a full 20-tweet page, which is the default page size rather than a guaranteed yield.
The four questions people arrive with
Most visits start with one of these. Each is answered here in a sentence, with the full version a click away, so you do not have to open a page to find out whether it is the one you wanted.
How much does the X API cost?
Here, $0.0008 per call, whatever that call returns, with no monthly minimum. The official API is sold in monthly tiers instead, which is why the two are hard to compare directly: one bills what you use and the other bills what you reserved. The comparison that actually decides it is not the headline rate but your duty cycle. A job that runs for an hour a day and sits idle the rest of the time pays for one hour here and a full month on a tier, so the same workload can look cheap or expensive depending only on how evenly it is spread. Work out your monthly call volume first, then multiply, then compare that against the tier you would otherwise have to buy. Note also that per-call means per REQUEST, not per record returned, so a request that comes back empty costs exactly what a full page costs. That makes tight filters cheaper in result terms and more expensive per useful row, which is the opposite of the intuition most people bring from per-record pricing.
Is there a free X API tier in 2026?
Not a useful one for reading data. What exists here instead is free credit on signup with no card, which is enough to test whether the endpoints return what you need before you spend anything. Treat that credit as a correctness check rather than a trial period: the question it answers is whether the response shape matches what your code expects, and that is answered in a handful of calls rather than over a month. The thing worth checking during it is the field set, because that is what silently breaks integrations later. Pull one record from each endpoint you intend to use, print the actual keys, and write your parser against those rather than against a documentation example. A free tier that lets you confirm the data is right is worth more than a larger one that only lets you confirm the service responds.
How do you get an X API key?
Two different things share that name: a key for the official developer platform, which needs an approved project, and a key here, which is a signup. Which one you need follows from what you are doing rather than from the name. Anything that writes as a specific user, posts, or touches a protected account needs the official platform, because that authorisation is granted by the platform and cannot be delegated. Reading public data does not, which is the whole reason a second kind of key exists. The practical difference is the wait: one is an application with an approval step and a stated use case, the other is available immediately. If you are prototyping and do not yet know which side of that line your project falls on, start with the one that does not block, and move only the parts that genuinely require official write access.
When is the official API worth the cost?
When you need write access at scale, official rate-limit guarantees, or a compliance story that names the platform itself. Reading public data at volume is where the tier pricing stops making sense, and that is the case migrating off it usually rests on. Those three reasons are worth taking seriously rather than arguing with. If a contract or a review requires that your data comes from the platform under its own terms, no price comparison changes that, and a cheaper route is the wrong answer however much cheaper it is. The honest version of the migration question is therefore narrower than it sounds: it applies to the read-heavy, public-data part of a workload, which is usually most of the volume and rarely the part anyone is contractually attached to. Splitting a system that way is often better than moving all of it, because the writes stay where they have to be and the reads stop being priced against a tier that was sized for them.
Pricing, plainly
Every figure here is interpolated from the same constants the API bills on, so this paragraph cannot drift from the product the way a typed number would. Standard reads are $0.0008 per call, charged per call rather than per record, so a call that returns nothing costs the same as one that returns a full page. There is no monthly minimum and no seat cost.
Across 99 public endpoints, 24 bill nothing at all, 60 carry the standard read rate, and 15 sit above it, between $0.0016 and $0.01, because they cost materially more to serve. The split matters more than the headline rate: which bucket your workload lands in decides your bill, not the average.
Cost, pricing tiers and the free question
What a call costs, how the tiers are drawn, and how the bill compares with the official X API. Standard reads bill at $0.0008 per call and 24 of our 99 endpoints bill nothing at all.
- How much does the Twitter/X API cost?TwitterAPIs.com costs $0.04 per 1,000 tweets, no subscription or card. The official X API runs $5 to $10 per 1,000. Start with $0.50 in free credits.
- X API pricing tiers explainedThe official X API uses paid subscription tiers with no free read access. TwitterAPIs.com has no tiers, just $0.04 per 1,000 tweets, pay-per-use.
- What is the cheapest Twitter/X API for getting tweets?$0.04 per 1,000 tweets, no credit card needed. TwitterAPIs.com is the cheapest pay-as-you-go Twitter/X API. Official X API charges $5 to $10 per 1,000.
- Is the Twitter API free? Does it have a free tier?X API removed its free tier. TwitterAPIs.com gives $0.50 in free credits (no card) at $0.04 per 1,000 tweets. Make your first call in under 2 minutes.
- Why is the Twitter/X API so expensive?X repriced its API in 2023: entry reads cost $5 to $10 per 1,000 tweets and Enterprise carries no published price. TwitterAPIs.com charges $0.04 per 1,000.
- What is the best Twitter/X API alternative to the official X API?TwitterAPIs.com costs $0.04 per 1,000 tweets, compared to $5 to $10 for the official X API. No developer account needed, $0.50 free credits to start.
- What is the best X API alternative in 2026?The best X API alternatives in 2026: TwitterAPIs at $0.04 per 1,000 tweets, twitterapi.io $0.15, Apify $0.25 to $0.40, Sorsa flat tiers. No dev account.
Access, keys and authentication
How to get a key, what that key is allowed to do, and how to reach X data without applying for an X developer account first.
- How do I use the Twitter API?Use the Twitter API in three steps: get a bearer token, call an endpoint, read JSON. TwitterAPIs covers 99 endpoints at $0.04 per 1,000 tweets.
- How do you authenticate with the Twitter API?Authenticate the Twitter API with one Bearer token in an Authorization header. TwitterAPIs skips OAuth, at $0.0008 per call plus a $0.50 free credit.
- What is an X API key?An X API key identifies your application. On X it is four values across two OAuth generations; here it is one bearer credential issued on sign-up.
- Can I use a Twitter API without a developer account?Use a Twitter API with no developer account, no OAuth app, no approval wait. TwitterAPIs issues a bearer token at signup, $0.04 per 1,000 tweets, no card.
- How do you use multiple X accounts with one API key?One credential covers billing and identifies your integration. Acting as each account is a separate session, registered ahead or passed per request.
- How do you log in to an X account with an API?Attach an X identity by storing auth_token and ct0 for free, or by trading a handle and password at $0.01 on success. Read the validation state correctly.
- Is there an unofficial Twitter API?An unofficial Twitter API returns X data outside X's own platform. TwitterAPIs offers 99 endpoints at $0.04 per 1,000 tweets, no dev account, no card.
Reading tweets, search and account history
Single posts, keyword and date-bounded search, whole threads, replies, quote tweets and a full account archive. 63 of the 99 endpoints are reads, and this is where most of them live.
- How do I get tweets programmatically in 2026?Get tweets programmatically with one bearer-token call at $0.04 per 1,000 tweets, no X developer account. Clean JSON from search, timelines, and threads.
- How do I search tweets by keyword with an API?Search tweets by keyword with one REST call that returns clean JSON. TwitterAPIs advanced search bills $0.04 per 1,000 tweets, no X developer account.
- How do you search tweets by date?Bound a query with since and until in YYYY-MM-DD form, where since includes its day and until excludes it. Hour and epoch forms cover finer windows.
- What are the Twitter advanced search operators?Reference for the X advanced search grammar: from:, min_faves:, since:, filter:, lang:, quotes, OR and negation, all evaluated server-side in one query.
- How do you get an entire Twitter thread with an API?Pass any tweet id in the chain to tweet/thread and get the ordered posts back in one call. Premium tier at $0.004, five times a standard read.
- How do you get all the replies to a tweet?Call tweet/replies with the parent post id, loop the cursor, and walk nested branches by reply id. Each page is one read at $0.0008 on TwitterAPIs.
- How do you get quote tweets and retweeters of a post?tweet/retweeters returns users, tweet/quotes returns posts with quoted_tweet. Read source and quote_matched before trusting a page. $0.0008 per call.
- How do you download an account's entire tweet history?user/tweets/complete takes a numeric user_id and a max, paginates internally, and returns the archive in one $0.0024 call instead of dozens of pages.
- How do you get tweets with Python?Fetch tweets in Python with requests: one Session header, a get helper, a generator for cursors, and a Retry adapter. Standard reads bill $0.0008 per call.
- What does the Twitter API return as JSON?The JSON shape: tweets or users plus count and next_cursor, real fields like favorite_count and view_count, string ids, and where nulls appear.
Profiles, the follow graph and saved items
Turning a handle into the numeric id every other endpoint wants, searching people rather than posts, reading who follows whom, and exporting likes and bookmarks.
- How do you get a Twitter user ID from the API?Get a Twitter user ID with GET /twitter/user/info and read the numeric id field. On TwitterAPIs the lookup is $0.0008 per call, no developer account.
- How do you search for Twitter users by keyword?user/search matches a query against handles, display names and bios, returning full profiles with cursor paging. Every page of results costs $0.0008.
- How do you check if one X account follows another?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.
- How do you get the accounts a Twitter user follows?user/following and following_v2 page the outbound graph edge by username. Stop on an empty users array, not a null cursor. Pages bill $0.0008 each.
- How do you get the tweets a user has liked?user/likes reads a favourites timeline by numeric user_id behind a registered session, 20 per page, newest first. Each page of results costs $0.0008.
- How do you export your Twitter bookmarks?Register your x.com session, then page user/bookmarks, search them and read each folder. Six bookmark routes, all billed at $0.0008 per call.
Posting, direct messages and media
The write half of the surface: publishing posts and Articles, sending DMs, deleting in bulk, and pulling the video file out of a post. 36 of the 99 endpoints write rather than read.
- How do you post a tweet with an image using the API?Posting an image takes two calls: upload the file for a media id, poll until processing succeeds, then create the post referencing that id.
- How do you send a DM with the Twitter API?Register an X session, then post a numeric recipient_id and text. Sends cap at 150 an hour per key and each call bills at $0.0016.
- How do you publish an X Article with an API?Create a draft, set its title, content and cover, then publish and X posts the announcement tweet. Six premium article writes at $0.0016 per call.
- How do you bulk delete tweets with an API?Enumerate an account's tweet ids, then POST each one to tweet/delete at $0.0008. A 5,000 post cleanup costs $4.00 and paces against 600 requests a minute.
- How do you download a video from a tweet with an API?Resolve a tweet with tweet/detail for $0.0008, read the media entry, pick the highest bitrate playback variant, and fetch the file from X directly.
- How do you build a Twitter auto reply bot with an API?Watch mentions or an account for free, dedupe on tweet id, then reply with tweet/create at $0.0016. One answered mention costs well under a cent.
Realtime, monitoring and webhooks
Watching accounts and keywords while they move: polling against webhooks, following one post over time, trends, Spaces, Communities and Grok.
- How do I stream tweets in real time?Stream tweets in real time by polling the TwitterAPIs search or timeline endpoint at $0.0008 per call, no enterprise X filtered stream contract needed.
- How do you set up a Twitter webhook?Register an https URL, save the HMAC-SHA256 signing secret shown exactly once, then fire a signed test delivery. Webhook routes cost $0 and use no credits.
- How do you track a tweet with an API?Poll tweet/detail for changing counters at $0.0008, or run a free monitor that pushes new posts. Read monitor/health to prove deliveries arrive.
- How do you get Twitter trends with an API?Look up a WOEID once with trends/locations, cache it, then poll trends by woeid or country. Every call is $0.0008 and as_of tells you if it refreshed.
- How do you get data about an X Space?The Twitter Spaces API route spaces/info returns one Space title, state, host, topics, counts and rosters from its id. Metadata only, $0.0008 per call.
- How do you get posts from an X Community?Pass a community id to community/tweets for the feed and its pinned post. All 7 X Community routes are pooled reads at $0.0008 per call.
- How do you use Grok through an API?Call X's in-app Grok over REST: free grok/config for eligibility and modes, then grok/chat at $0.0040 a turn returning the answer plus its citations.
Rate limits, pagination and the legal position
What rate limiting means on X, how paging through a large result set works, whether proxies are part of the job, where collecting public posts stands legally, and what the endpoint catalogue holds.
- What does rate limited mean on Twitter?Rate limited means X returned 429 because an endpoint ceiling was crossed inside a fixed window. Windows, headers, and the 403 difference explained.
- How does Twitter API pagination work?Twitter API pagination uses cursors: read next_cursor and has_more, then loop. On TwitterAPIs each page is one call at $0.0008 under a 600 req/min ceiling.
- Is it legal to scrape Twitter/X?Scraping public Twitter/X data is generally legal in the US, but X terms ban it and accounts get banned. TwitterAPIs.com returns it at $0.04 per 1,000.
- Do you need proxies to scrape Twitter?Pooled reads need no proxy at all. Only the user_login route takes a proxy_url, where a residential address is strongly advised. Reads run $0.0008 a call.
- What is the best Twitter/X MCP server for AI agents?The TwitterAPIs MCP server gives Claude and Cursor 40 Twitter/X tools on one bearer token, no developer account. Reads $0.04 per 1,000 tweets via npx.
- What endpoints does the Twitter API have?A map of all 99 endpoints: 63 reads, 36 writes, fifteen families from Search to Monitoring, the seven price tiers and the 24 that cost nothing.
- Which Twitter API publishes its rate limits in a comparable unit?X publishes a different rate limit per endpoint across two windows. Compare that with one uniform figure of 600 requests a minute per key.
- Which X API supports both reads and writes under one key?Most X data providers are read only. Compare credential models across 99 endpoints, 63 reads and 36 writes, on one cookie session.
- Which API do you use to monitor Twitter mentions in real time?Compare polling the mentions timeline against a standing watch with a webhook, including cost per handle, latency and deduplication.
- Which Twitter API is best for AI or LLM training data?Cost per tweet, archive reach and output shape decide a corpus build. Compare metered access at $0.04 per 1,000 tweets against subscription rungs.
- How do you detect bot accounts on Twitter programmatically?There is no bot flag on the X API. Build a score from account age, follower ratio, cadence and audience quality for $0.0024 an account.