Social Data API

X API

X API

The X API from Social Data API: profiles, posts, search and replies as JSON through one key. $0.003 a call, far below the official $0.005 per post read.

By the Social Data API team · November 8, 2026 · 3 min read

Short answer: The X API gives you profiles, user posts, search and replies for any public X account as clean JSON, through one API key. Four endpoints cover the whole job: profile, posts, search and replies. One call costs $0.003 and returns a page of posts, against $0.005 per post read on the official X API. X is on paid plans only.

A phone on a wooden desk showing the X logo
Photo by BM Amaro on Pexels

Social Data API is a single API key for TikTok, X, Instagram and Reddit. TikTok and X are live now. Instagram is next, then Reddit, all on the same key.

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.

What you can build with it

Four endpoints cover the whole job:

Put together, that is brand monitoring, competitor tracking, creator tracking, research datasets and social listening, all from one key.

The call

One API key works for every endpoint below. Send your key in the x-api-key header.

# User posts: a user's posts by handle, newest first
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"}'

# Profile: any public profile as JSON
curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/profile \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "example_handle"}'

# Search: posts by keyword
curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/search \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "coffee"}'

# Replies: replies under a post
curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/comments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tweet_id": "1234567890123456789"}'

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.

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

OptionPriceNotes
Social Data API$0.003 a call; $0.15 per 1,000 posts at 20 per callOne 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.
GetXAPIAbout $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

  1. Get one API key from the Social Data API dashboard. The same key works for TikTok, X, Instagram and Reddit.
  2. Send the call above with your key in the x-api-key header.
  3. Use the JSON. List endpoints take count (default 20 results per call, max 50) and cursor for the next page.

Frequently asked questions

What is the X API?

It is one API key for X data: profiles, user posts, search and replies, all as clean JSON. Four endpoints cover the whole job, and the same key also covers TikTok, with Instagram next and Reddit after.

How much does the X API cost?

Calls cost $0.003 each on pay as you go, which is $3.00 per 1,000 calls. Basic is $29 a month for 10,000 calls and Pro is $99 a month for 50,000 calls. One call returns a page of posts, typically around 20, so that is $0.15 per 1,000 posts on pay as you go. The official X API charges $0.005 per post read, which is $5.00 per 1,000 posts.

Is X on the free trial?

No. The 3-day free trial covers TikTok only, 100 calls, card required. X needs a paid plan: Basic $29 a month, Pro $99 a month, or pay as you go from a $10 top-up. A trial key calling X gets a 402.

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.

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.