SocialToAIStart freeConsole

Does X (Twitter) have an API? (2026)

Yes: X sells an official API for posts, users and search, paid per use from prepaid credits. SocialToAI reads its publicly visible posts, comments, accounts and trends without a X developer account: 22 interfaces from 1 credit a call (≈ $0.002–$0.0033), and failed calls are free. Official facts checked 2026-10-17.

The short answer

Yes: X sells an official API for posts, users and search, paid per use from prepaid credits.

WayWhat it gives and who can use itPrice
X API, pay per useAny developer: sign up in the X developer console and buy prepaid credits.$0.005 per post read, $0.010 per user read, charged per resource returned.
Third-party hosted API (this site)Anyone with a key: no X account, no developer review.From 1 credit a call (≈$0.0033); failed calls free.

What the official API allows

X offers an official API for posts, users and search. Developers sign up in the X developer console and pay per use with prepaid credits; higher volumes need an Enterprise plan.

Source: X's own developer documentation, checked 2026-10-17. What a platform allows changes; its own pages are the authority.

X's official APIs, side by side

Official APIWho can use it and howCostLimitsSource
X API, pay per useAny developer: sign up in the X developer console and buy prepaid credits.$0.005 per post read, $0.010 per user read, charged per resource returned.Up to 3 million post reads per billing cycle; more needs an Enterprise plan. X says prices may change.docs.x.com, checked 2026-10-29

Reading X's public data with SocialToAI

SocialToAI is an API and MCP server for publicly visible content and account information. You need no X account and no app review: one SocialToAI key, or signing in from Claude, ChatGPT, Claude Code, Cursor and Codex. Each call costs a fixed number of credits, and a failed call costs nothing.

InterfaceWhat it returnsCredits
X (Twitter) Search APIFind posts by keyword: text, author, likes, comment count, views and publish time.2
X (Twitter) Trending APIWhat is trending now: title, rank and heat.6
X (Twitter) Detail APIOne post by ID or link: text, author, likes, comment count, views and publish time.1
X (Twitter) Comments APIThe comments under one post: text, likes, reply count and time.2
X (Twitter) User Profile APIOne account: name, bio, followers, following and post count.1
X (Twitter) User Posts APIThe recent posts of one account.2
X (Twitter) Search API · sort=latestFind posts by keyword: text, author, likes, comment count, views and publish time.2
X (Twitter) Search API · type=userFind accounts by keyword: name, bio, followers, following and post count.5
X (Twitter) Detail API · include=transcriptOne post by ID or link: full text and timed segments.2
X (Twitter) community profile APIGet an X community by its ID.1
X (Twitter) community posts APIGet a page of the posts in an X community by the community's ID.4
X (Twitter) list posts APIGet a page of the posts on an X list's timeline by the list's ID, newest first, about 100 a page.2

10 more on the X (Twitter) API page.

One call: Search
curl https://socialtoai.app/v1/search \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "x",    "query": "weather forecast"  }'
  • No X account, cookie or developer approval on your side.
  • What comes back is what the platform shows publicly; commenters are anonymised.
  • Every platform answers in the same response format, so the same code reads X and the others.
  • Prepaid credits from 1 credit a call; 100 free credits on sign-up, no card.

Reading X without the official API

There are three ways in, and they differ in what you have to hand over and keep running. These are kinds of tool, not products.

WayWhat you needWhat to watch for
Write your own scraperCode, proxies, and often your own X login or cookiesRequests made in your account's name can get it limited or banned; pages and signatures change, so the code needs upkeep.
Run an open-source MCP server or script locallyInstall it, then sign in with your account or paste its cookiesIt reads as your account, and stops when the platform changes or your computer is off.
Call a hosted API (SocialToAI)One SocialToAI key, or one MCP address and sign-inNo account of yours is used; you pay from 1 credit a call and nothing for a failed one; keeping up with X is our job.

FAQ

How much does the X API cost?

X charges per resource returned from prepaid credits: $0.005 for each post read and $0.010 for each user read, so a thousand posts are $5. Source: docs.x.com, checked 2026-10-29.

Is there a cap on X API reads?

Yes: pay-per-use plans are capped at 3 million post reads per billing cycle, and more needs an Enterprise plan. Source: docs.x.com, checked 2026-10-29.

Can I read X without a developer account?

Yes. SocialToAI reads its publicly visible posts, comments, accounts and trends for you: 22 interfaces from 1 credit a call (≈$0.0033), and failed calls are free. You need one SocialToAI key, or sign-in from your AI client.

Will reading X this way get my account banned?

No account of yours is involved: you never sign in to X, hand over a cookie or install anything, so nothing is read in your account's name.

How much does reading X cost here?

From 1 credit a call: $0.0033 at the first pack, $3.33 for a thousand such calls. A failed call costs nothing, and every answer states what it charged. 100 free credits on sign-up, no card.

Can Claude and ChatGPT read X?

Yes: add SocialToAI's MCP address in Claude or ChatGPT, sign in and press Allow, then ask in plain words. Each answer states the credits it used.

Read next

Sources

Last updated: