X API
X API
One API key for X data: profiles, user posts, search and replies as clean JSON. $0.003 a call, far below the official $0.005 per post read.
Live now
Social Data API is one API key for X data. Profiles, user posts, search and replies, all as clean JSON in the same shape, all from the same key you use for TikTok, Instagram and Reddit.
The official X API charges $0.005 per post read. A 20-post timeline costs $0.10 on the official API. The same 20 posts cost $0.003 here, one call, because one call returns a page of posts. There is no free tier on the official API since February 2026, and post reads are capped at 3 million a month before you need Enterprise.
Four endpoints, all live now: profile, user posts, search and replies.
The call
One API key works for every endpoint below. Send your key in the x-api-key header.
curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/posts \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "example_handle"}'
Posts takes username (handle, without @) or user_id and an optional cursor. Profile takes username or user_id. Search takes query, search_type (default Top) and cursor. Replies takes tweet_id (post_id also works) and cursor. Every X endpoint costs 1 credit a call, including posts by username, there is no ID lookup step.
What you get back
{
"platform": "x",
"endpoint": "x.posts",
"credits_used": 1,
"upstream_cost_usd_per_call": 0.001,
"key_id": "...",
"plan_type": "monthly_29",
"result": { "...": "upstream post list data" }
}
Response shape, example values only, not real data. Every response uses this wrapper. The result field holds the upstream provider's data, in its own shape. credits_used tells you what the call cost.
What it costs
- Pay as you go: $0.003 a call, which is $3.00 per 1,000 calls.
- Basic $29/mo: 10,000 calls included, $2.90 per 1,000 calls.
- Pro $99/mo: 50,000 calls included, $1.98 per 1,000 calls.
- Per 1,000 posts: one call returns a page of posts, typically around 20, so $0.15 per 1,000 posts on pay as you go. The official X API charges $5.00 per 1,000 post reads.
- Plans: X is on paid plans only. The 3-day free trial covers TikTok only, a trial key gets a 402 on X.
How it compares
| Option | Price | Notes |
|---|---|---|
| Social Data API | $0.003 a call; $0.15 per 1,000 posts at 20 per call | One key for TikTok and X, monthly or pay as you go. |
| X API (official) | $0.005 per post read, $5.00 per 1,000; $0.010 per user read (confirmed by 5+ checks Sept-Oct 2026) | No free tier since Feb 2026. Cap 3M post reads a month, then Enterprise. |
| Social Fetch | $29/mo, $1.61 per 1,000 requests (verified live 2026-11-08) | 26 platforms, 100 free credits, no card. Cheaper per call than ours. |
| ScrapeCreators | $47 for 25,000 credits, $1.88 per 1,000 (per Oct 2026 roundups, re-verify) | Credit packs, no subscription, credits never expire. |
| GetXAPI | About $0.05 per 1,000 tweets (per Oct 2026 roundups, re-verify) | Cheapest per tweet in the roundups. X only, per-tweet billing. |
On pure per-tweet price, GetXAPI and TwitterAPI.io are cheaper. We win when you want TikTok and X on one key, one bill, monthly or pay-as-you-go, and the official-price gap is what you are escaping.
How it works
- Get one API key from the Social Data API dashboard. The same key works for TikTok, X, Instagram and Reddit.
- Send the call above with your key in the
x-api-keyheader. - Use the JSON. List endpoints take
count(default 20 results per call, max 50) andcursorfor the next page.
Frequently asked questions
Is the official X API really $0.005 per post?
Yes. Since February 2026 the official X API is pay per use: $0.005 per post read, $0.010 per user read, $0.015 per post created, with no free tier and a 3 million post-read monthly cap before Enterprise.
Do I need an X developer account?
No. You sign up here, get one API key, and call the endpoints. No X developer account, no app review, no login.
How many posts does one call return?
One call returns a page of posts, typically around 20. Use the cursor to page through more.
Is X on the free trial?
No. The 3-day free trial covers TikTok only, 100 calls. X needs a paid plan: Basic $29/mo, Pro $99/mo, or pay as you go from a $10 top-up. A trial key calling X gets a 402.
X is on paid plans: Basic $29/mo for 10,000 calls, Pro $99/mo for 50,000 calls, or pay-as-you-go at $0.003 a call. The free trial covers TikTok only, so a trial key gets a 402 on X. Get your API key or try it in the Playground.
Prices checked on 2026-11-08. Instagram is next after X, then Reddit, all on the same single API key.