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 readPrice
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.

JobReadsAt X's prices
Profile and latest 20 posts of one account1 user, 20 posts$0.11
Profile and latest 100 posts1 user, 100 posts$0.51
Everything the endpoint reaches1 user, 3,200 posts$16.01
Latest 20 posts of 1,000 accounts1,000 users, 20,000 posts$110
The same 1,000 accounts, read in full on each of 30 days30,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, and pagination_token fetches 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 on GET /2/users/by/username/:username. Past the limit the answer is 429, and the x-rate-limit-reset header 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.

Python
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.

Python
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 needUse
More than the latest 20 posts, replies, search, or anything that postsThe official X API
Your own account's dataThe official X API: owned reads cost $0.001 each
A few accounts now and thenEither. At this size the official API costs cents
Follower counts and latest posts of many accounts, on a scheduleAn 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

Every source

YouTube

Instagram

Websites

TikTok

Facebook

Google

Threads

LinkedIn

App stores

Steam

Pinterest

Airbnb

Real estate

Keywords

Job boards

Eventbrite

Shopify stores

Public tenders

All guides