X (Twitter) API alternative for profiles, tweets and trends

Renderdata team··6 min read

Renderdata's X (Twitter) API returns a public profile with its recent tweets, a single tweet, a conversation thread or the trending topics in a country, as JSON from one HTTP call. You don't need an X developer account or prepaid X credits. One call costs $0.005 and returns a profile plus its recent tweets; on X's pay-per-use API, reading one user costs about $0.010 and each post another $0.005.

Get a free API keySee a real response10 free calls · no card · failed calls free
At a glance
Price
$0.001 per call · $1 per 1,000
Free tier
10 calls, no card
Failed calls
Never charged
Access
API key, no approval or OAuth
Endpoints
x-profile, x-tweet, x-conversation, x-trending
Agents
Every endpoint is an MCP tool

3 ways to get X (Twitter) data

There are three realistic options, and the right one depends on whose accounts you need, how many calls you make and how much maintenance you can take on.

1. The official X API (pay-per-use)

X's API moved to pay-per-use: you buy credits in the developer console and pay per post and per user you read, with higher rates for writes. It is the only way to post, and the right choice for large volumes of tweet search with filters. For reading a few profiles or threads, the setup (developer account, app, prepaid credits) and per-object pricing add up quickly.

2. Build your own scraper

X requires a logged-in session for most views now, guards its web API with rotating tokens and limits each account and IP aggressively. Do-it-yourself scrapers break often and put the accounts they use at risk of suspension. Open-source tools that worked a few years ago mostly no longer do.

3. Use a X (Twitter) data API

Renderdata returns a public profile with its recent tweets, a tweet, a full conversation or the trends in a country, each as one call for $0.005. There is no X developer account, no prepaid credit balance on X and no monthly minimum.

Official APIYour own scraperRenderdata
Time to first dataDays to weeks (app review)Days, then ongoing fixesAbout a minute
Whose dataMostly your own or authorised accountsAny public dataAny public data
MaintenanceLowHigh: proxies, blocks, parser changesNone
CostFree or per requestProxies, servers and engineering time$0.001 per successful call

Example response

A real call to x-profile with the input @NASA, made against the production API on October 31, 2026. It took 5.6 seconds and cost 1 credit ($0.001) and returned 5 items. Lists are trimmed to two items below.

POST /v1/scrapers/x-profile/run200 OK · 5.6 s
{
  "id": "11348282",
  "userName": "NASA",
  "name": "NASA",
  "url": "https://x.com/NASA",
  "description": "Making the seemingly impossible, possible. ✨",
  "location": "Pale Blue Dot",
  "followers": 92298431,
  "following": 115,
  "tweetsCount": 74477,
  "createdAt": "2007-12-19T20:20:32Z",
  "profileImage": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
  "banner": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
  "tweets": [
    {
      "id": "2116263878807998722",
      "url": "https://x.com/NASA/status/2116263878807998722",
      "text": "MAX POWER, America's newest aerospace expo and air show, is just a week away!\n\nThis sho…",
      "createdAt": "2026-10-30T20:20:01Z",
      "lang": "en",
      "likes": 1044,
      "retweets": 128,
      "replies": 62,
      "quotes": 6,
      "bookmarks": 41,
      "views": 277692,
      "author": {
        "id": "11348282",
        "userName": "NASA",
        "name": "NASA",
        "url": "https://x.com/NASA",
        "isVerified": true,
        "profileImage": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "followers": 92298431,
        "following": 115
      },
      "urls": [
        "https://go.nasa.gov/4zjj9BD"
      ],
      "media": [
        "{…}"
      ]
    },
    {
      "id": "2116256206922616862",
      "url": "https://x.com/NASA/status/2116256206922616862",
      "text": "After more than a year on a simulated Mars mission that will help us better prepare for…",
      "createdAt": "2026-10-30T19:49:32Z",
      "lang": "en",
      "likes": 1093,
      "retweets": 144,
      "replies": 125,
      "quotes": 18,
      "bookmarks": 55,
      "views": 546781,
      "author": {
        "id": "11348282",
        "userName": "NASA",
        "name": "NASA",
        "url": "https://x.com/NASA",
        "isVerified": true,
        "profileImage": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "followers": 92298431,
        "following": 115
      },
      "urls": [
        "https://www.youtube.com/live/2MONMgAmXNU"
      ],
      "media": [
        "{…}"
      ]
    },
    "… 3 more"
  ]
}
Run this exact call free →

X (Twitter) endpoints

Every endpoint is POST /v1/scrapers/{id}/run with a JSON body {"input": "..."}, and is also available as an MCP tool with the same key.

EndpointInputReturnsPrice
x-profileHandle@NASAFollowers, following, tweet count, bio and verified badge of a public account, plus recent tweets when X serves them.$0.001
x-tweetTweet URL or idhttps://x.com/elonmusk/status/1585341984679469056Text, author, likes, replies, retweets and media of one public tweet.$0.001
x-conversationTweet URL or idhttps://x.com/NASA/status/2111180963661435219A tweet with all its stats (likes, reposts, replies, quotes, bookmarks, views) and the first replies the public page shows, each with their own stats. Media comes as links.$0.001
x-trendingCountryunited-statesWhat is trending on X right now in a country (rank, topic, post count, link), plus how long each topic stayed in the last 24 hours.$0.001

Response fields

Every successful call returns these fields inside data. Fields the source does not show for a given profile or listing come back empty rather than missing, so your parser does not need special cases.

x-profile · 19 fields
  • idstring
  • userNamestring
  • namestring
  • descriptionstring
  • locationstring
  • followersnumber
  • followingnumber
  • tweetsCountnumber
  • createdAtstring
  • isVerifiedboolean
  • profileImagestring
  • tweets[].idstring
  • tweets[].urlstring
  • tweets[].textstring
  • tweets[].createdAtstring
  • tweets[].likesnumber
  • tweets[].retweetsnumber
  • tweets[].repliesnumber
  • tweets[].viewsnumber
x-tweet · 14 fields
  • idstring
  • urlstring
  • textstring
  • createdAtstring
  • langstring
  • likesnumber
  • retweetsnumber
  • repliesnumber
  • quotesnumber
  • viewsnumber
  • authorobject
  • hashtagsarray
  • mentionsarray
  • mediaarray
x-conversation · 14 fields
  • tweets[].idstring
  • tweets[].urlstring
  • tweets[].textstring
  • tweets[].createdAtstring
  • tweets[].likesnumber
  • tweets[].retweetsnumber
  • tweets[].repliesnumber
  • tweets[].quotesnumber
  • tweets[].bookmarksnumber
  • tweets[].viewsnumber
  • tweets[].isReplyboolean
  • tweets[].inReplyToIdstring
  • tweets[].authorobject
  • tweets[].mediaarray
x-trending · 8 fields
  • trends[].namestring
  • trends[].ranknumber
  • trends[].countrystring
  • trends[].urlstring
  • trends[].tweetCountnumber
  • trends[].appearancesnumber
  • trends[].bestRanknumber
  • trends[].firstSeenAtstring

Quickstart

Create a free account to get an API key with 10 free calls, then send your first request.

cURL
curl -X POST https://api.renderdata.cloud/v1/scrapers/x-profile/run \
  -H "Authorization: Bearer $RENDERDATA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"@NASA"}'
Python
import os, requests

r = requests.post(
    "https://api.renderdata.cloud/v1/scrapers/x-profile/run",
    headers={"Authorization": f"Bearer {os.environ['RENDERDATA_API_KEY']}"},
    json={"input":"@NASA"},
    timeout=300,
)
data = r.json()["data"]
MCP (Claude Code, Cursor)
claude mcp add --transport http renderdata https://api.renderdata.cloud/mcp \
  --header "Authorization: Bearer $RENDERDATA_API_KEY"

The response always has the same envelope: ok, data (the fields above), credits and meta. Full reference in the API docs.

Example: alert when an account posts

This script checks a few accounts, compares their latest tweets with what it saw last time and prints anything new. Run it from cron every 15 minutes and send the output to Slack or email.

Python
import json, os, pathlib, requests

URL = "https://api.renderdata.cloud/v1/scrapers/x-profile/run"
HEADERS = {"Authorization": f"Bearer {os.environ['RENDERDATA_API_KEY']}"}
accounts = ["@NASA", "@OpenAI", "@stripe"]
state_file = pathlib.Path("seen.json")
seen = json.loads(state_file.read_text()) if state_file.exists() else {}

for handle in accounts:
    body = requests.post(URL, headers=HEADERS, json={"input": handle}, timeout=300).json()
    if not body.get("ok"):
        print(handle, "failed, not billed:", body.get("error"))
        continue
    p = body["data"]
    old = set(seen.get(handle, []))
    for t in p["tweets"]:
        if old and t["id"] not in old:
            print(f"New from {handle}: {t['text'][:120]}  {t['url']}")
    seen[handle] = [t["id"] for t in p["tweets"]]

state_file.write_text(json.dumps(seen))

Three accounts every 15 minutes is about 8,600 calls a month: $43 pay as you go, or covered by Pro's 30,000 credits. On X's pay-per-use API every user read and every post read is billed separately, so the same checks cost several times more.

Official X API (pay-per-use) vs Renderdata

X API (pay-per-use)Renderdata
Reading a userAbout $0.010 per user$0.005, with recent tweets included
Reading postsAbout $0.005 per postIncluded in the profile, tweet or thread call
SetupDeveloper account, prepaid credits in the X consoleSign up with email, 10 free calls
Free tierEnded for new developers10 free calls, no card
Trends by countryEnterprise tiersIncluded (x-trending)
Writing postsYes (about $0.015 per post)Read only

X (Twitter) API pricing compared

Public list prices as of October 2026. Prices change, so follow the links for current numbers.

ProviderPriceNotes
Renderdata$5 per 1,000 calls ($3.30 on Pro)One call = a profile and its recent tweets, or a whole thread
X API pay-per-useAbout $5 per 1,000 posts, $10 per 1,000 usersPrepaid; reported rates, check docs.x.com
Apify Tweet Scraper V2About $0.40 per 1,000 tweetsPer tweet; best for bulk tweet search
ScrapeCreators$0.99 to $1.88 per 1,000 requestsPrepaid credit packs from $47

With Renderdata a failed or blocked call costs nothing and purchased credits never expire. See full pricing.

What the X (Twitter) API costs at scale

One credit is one successful call. It is $1 per 1,000 credits, pay as you go, with packs from $10. Credits never expire and there is no subscription.

Calls per monthCost
1,000$10
10,000$10
30,000$30
100,000$100

Limits and errors

Pay as you go gets 20 calls a minute per endpoint with 3 running at once; Pro gets 40 a minute and 6 at once. Over a limit you get HTTP 429 with a Retry-After header, so wait that many seconds and retry. A run where X (Twitter) returns nothing comes back as ok: false with an error (HTTP 502) and is not billed, so retrying costs nothing until it works.

Python: retry on 429
def run(scraper, value):
    while True:
        r = requests.post(f"https://api.renderdata.cloud/v1/scrapers/{scraper}/run",
                          headers=HEADERS, json={"input": value}, timeout=300)
        if r.status_code == 429:
            time.sleep(int(r.headers.get("Retry-After", 5)))
            continue
        return r.json()

Only public data is available: anything that needs a login on X (Twitter) needs it for us too, and we never log in. Every error code is listed in the docs.

Use cases

Account monitoring

Track a competitor's or a creator's follower count and latest tweets, or put it on an hourly monitor. Endpoint: x-profile, for example @NASA.

Thread and reply analysis

Pull a tweet with its stats and the replies under it to read how people reacted. Endpoint: x-conversation, for example https://x.com/NASA/status/2111180963661435219.

Trend alerts

Check what is trending in a country right now and feed it to an agent or a Slack alert. Endpoint: x-trending, for example united-states.

Frequently asked questions

How much does the X (Twitter) API cost in 2026?

X moved to pay-per-use in 2026: reported rates are about $0.005 per post read and $0.010 per user read, paid with prepaid credits, and the free tier ended for new developers (checked October 2026; confirm on docs.x.com). Renderdata charges $0.005 per call for a profile with its recent tweets, a tweet, a thread or a trends list.

Is there a free Twitter API?

Not for new developers on X's official API. Renderdata gives you 10 free calls on sign-up, no card needed.

Can I read tweets without an X developer account?

Yes. Renderdata reads public profiles, tweets and threads with one API key; you never create an X app or buy X credits.

Can I post tweets with Renderdata?

No. Renderdata is read-only. To post, use X's official API.

Can I search all tweets for a keyword?

Not yet. You can read profiles, single tweets, threads and trends today; keyword search is on our roadmap.

Is it legal to scrape Twitter?

Renderdata reads only public X pages, the same ones anyone can open without logging in, and never uses accounts or bypasses a login. Courts in the US have treated scraping public data differently from breaking into private systems (hiQ v. LinkedIn), but site terms and privacy laws such as the GDPR still apply to what you do with the data. This is not legal advice: if you store personal data, check with your counsel.

Can my AI agent use it?

Yes. Every endpoint is also an MCP tool, so Claude, Cursor and other MCP clients can read X directly.

How many tweets does x-profile return?

The profile plus its most recent tweets, each with text, date, likes, retweets, replies and views. For one specific tweet use x-tweet; for a tweet and its replies use x-conversation.

How fresh is the data?

Each call reads X when you make it, so counts are live.

Which countries does x-trending support?

Pass a country name such as united-states, united-kingdom or india and you get the current trends with rank and tweet counts where X shows them.

Try the X (Twitter) API free