X API pricing: what it costs to read an account's posts
Checked on 2026-11-19.
X's developer documentation, read on 19 November 2026, describes one pricing model for its API: pay per usage, with no subscriptions. A post you read costs $0.005 and a user profile $0.010, taken from credits you buy in advance. An account's profile with its latest 20 posts therefore costs $0.11, and its whole reachable timeline of 3,200 posts about $16.
The prices X publishes
The pricing page opens with "The X API uses pay-per-usage pricing." You buy credits in the Developer Console and requests draw them down. For reads the rule is "Charged per resource returned in the response."
| What you read | Price |
|---|---|
| A post | $0.005 per post returned |
| A user (a profile) | $0.010 per user returned |
| Your own posts, mentions, followers and the like ("Owned Reads") | $0.001 per resource, when the id in the request is the authenticated user and that user owns the developer app |
Three rules change the bill:
- Deduplication. "All resources are deduplicated within a 24-hour UTC day window": a post or a profile you have paid for is free for the rest of that UTC day, and can be charged again once the next one starts.
- A monthly ceiling. "Pay-per-usage plans are capped at 3 million Post reads per monthly billing cycle." For more, X points to an Enterprise plan.
- Credits first. Credits are bought upfront. New paying users can earn "$20 in free X API credits" with a first payment card and a first purchase. The page lists no free tier and no monthly plan.
X adds that "Prices are subject to change" and that the current rates are always in the Developer Console.
What reading an account costs
Reading an account takes two calls: one that turns the username into a user id, which is a user read, and one that lists the account's posts, which is a post read for each post returned. The totals below are arithmetic on X's unit prices; X does not publish them.
| Job | Reads | At X's prices |
|---|---|---|
| Profile and latest 20 posts of one account | 1 user, 20 posts | $0.11 |
| Profile and latest 100 posts | 1 user, 100 posts | $0.51 |
| Everything the endpoint reaches | 1 user, 3,200 posts | $16.01 |
| Latest 20 posts of 1,000 accounts | 1,000 users, 20,000 posts | $110 |
| The same 1,000 accounts, read in full on each of 30 days | 30,000 users, 600,000 posts | $3,300 |
The last row is the expensive way to watch accounts. The posts endpoint takes since_id ("Return Posts after this ID"), so a daily check can ask only for posts newer than the last one you stored, and you pay for the new posts alone. The profile is charged again on each day you read it, so read it when you want fresh follower counts and not otherwise.
Limits that are not about money
- The user Posts timeline reaches the 3,200 most recent posts of an account, or the 800 most recent with
exclude=replies. One request returns 5 to 100 posts, andpagination_tokenfetches the next page. - Rate limits are counted per 15 minutes: 10,000 requests with an app's Bearer Token and 900 with a user token on
GET /2/users/:id/tweets, and 300 and 900 onGET /2/users/by/username/:username. Past the limit the answer is 429, and thex-rate-limit-resetheader says when the window resets.
Reading an account with the official API
Sign up at console.x.com, create an app, buy credits and take the app's Bearer Token. The two requests below follow X's user lookup quickstart and its timelines guide.
import os
import requests
headers = {"Authorization": "Bearer " + os.environ["X_BEARER_TOKEN"]}
# One user read ($0.010): the profile, and the id the next call needs
user = requests.get(
"https://api.x.com/2/users/by/username/nasa",
params={"user.fields": "created_at,description,verified,public_metrics"},
headers=headers,
timeout=30,
).json()["data"]
print(user["name"], user["public_metrics"]["followers_count"])
# One post read ($0.005) for each post returned
page = requests.get(
"https://api.x.com/2/users/" + user["id"] + "/tweets",
params={"max_results": 20, "tweet.fields": "created_at,public_metrics"},
headers=headers,
timeout=30,
).json()
for post in page.get("data", []):
print(post["created_at"], post["public_metrics"]["like_count"], post["text"])X's guides and examples write the fields parameter as tweet.fields, as here; its generated reference page for this endpoint spells it post.fields. If one is refused, try the other.
Where it stops: nowhere technical. This is the complete route: replies, pages back to 3,200 posts, search, and everything that writes. What it asks for is a developer account with prepaid credits, and a bill that grows with every post and every profile you read.
The same read through Pipefetch
Pipefetch has one endpoint for this job. /v1/x/profile returns a public account's profile and up to 20 of its latest posts for 1 credit, whatever the limit. It reads the public profile without logging in. It is not the official API, and Pipefetch is not affiliated with X.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/x/profile",
params={"username": "nasa", "limit": 20},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print("No such account, or it is suspended") # not charged
else:
res.raise_for_status()
data = res.json()["data"]
print(data["profile"]["displayName"], data["profile"]["followerCount"])
for post in data["posts"]:
print(post["createdAt"], post["viewCount"], post["likeCount"], post["text"][:80])The profile holds exact follower, following, post and list counts. Each post has its text and time, and its like, repost, reply, quote, bookmark and view counts.
Where it stops: at 20 posts. There are no further pages and replies are not included. A repost carries the text and counts of the original post. A protected account returns its profile with isProtected true and no posts. An account that does not exist or is suspended answers 404 and costs nothing; when X refuses a request the answer is 502, also free, and worth a retry. Each request is read live: most take 2 to 9 seconds, so give your client a timeout of 90 seconds.
On price: credits cost $3.00 per 1,000 in the smallest pack and $1.59 per 1,000 in the largest. The 1,000 accounts of the table above are 1,000 credits, against $110 at X's unit prices. A new account has 100 free credits and needs no card.
Which one should you use?
| You need | Use |
|---|---|
| More than the latest 20 posts, replies, search, or anything that posts | The official X API |
| Your own account's data | The official X API: owned reads cost $0.001 each |
| A few accounts now and then | Either. At this size the official API costs cents |
| Follower counts and latest posts of many accounts, on a schedule | An HTTP API such as Pipefetch |
What happened to Free, Basic and Pro?
Older articles describe monthly tiers with those names. X's pricing page lists none of them today. On its developer forum X announced that the legacy Basic plans (May 2026) and the legacy Pro plans (August 2026) were being moved to pay-per-use. A tutorial that quotes a monthly price or a monthly post cap for a tier describes the old model.
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
Free tools for this
APIs used in this guide
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python