Skip to article

Best Twitter/X data APIs in 2026: 7 compared

Best Twitter/X API in 2026: X's own API to post, Social Fetch to read public data with no developer app. 7 compared, every fact dated 17 Nov 2026.

Luke AskewUpdated 16 min read

Updated 17 Nov 2026. Rebuilt from scratch: the official X API and five alternatives compared on what they are built for and how they bill, real X responses from Social Fetch, credits at 1k, 10k and 100k, and every competitor fact re-read on its own page today.

What is the best Twitter/X API in 2026? It depends on the job. Use the official X API to post, send DMs or act as a user. Use Social Fetch to read public X data: 29 routes under /v1/twitter/..., no X developer app, and a search page of up to 20 posts for 1 credit. Details and sources below, checked 17 Nov 2026.

People bring two jobs to a Twitter API. The first is writing to X on behalf of a user, and only X can sell that. The second is reading public profiles, posts and search results, and that is where the alternatives compete. The free X profile viewer runs on the same data as Social Fetch, with no login, if you want a quick look first.

What are the best Twitter/X APIs in 2026?

There are three kinds of option: the official X API, public-data REST APIs and scraper platforms. The table compares seven by what each is built for and what it bills for, with every row sourced from the vendor's own page on 17 Nov 2026.

OptionBuilt forBills perHow you call itSource
Social FetchPublic X data in one JSON shape across every platform we coverCredit, 1 per route callREST GET with an x-api-key headerX routes
X API (official)Posting, DMs and actions as a user, plus readsResource read or request, in dollarsREST with user or app tokensX pricing
ApifyRunning scrapers (Actors) on a scheduleCompute units, storage and proxy useStart an Actor run, read the datasetTwitter Scraper
EnsembleDataPublic data from several networks, including XUnits per day, reset at 00:00 UTCREST with a tokenPricing
TwitterAPI.ioAn API built around X data, with advanced search operatorsEach tweet, profile or follower returnedREST, plus WebSocketPricing
Bright DataManaged scrapers for X posts and profilesRecords deliveredOne call with up to 5,000 target URLsTwitter Scraper API
SociaVaultA REST API for 25+ platformsCredit, prepaid in one-time packsREST with an X-API-Key headerPricing

Prices change often, so this table lists units rather than dollar rates. For X's own rates, see our X API pricing guide.

Which Twitter/X API fits which job?

Pick by the job. Posting needs X's own API, and reading public data is where the other six overlap. This is how the seven line up on the jobs people bring us.

JobFitsWhy
Post, reply, send DMs or act as an X userX API (official)Needs the user's OAuth tokens. Social Fetch is read-only
Read public profiles, posts, replies and search in an appSocial FetchOne key, /v1/twitter/... routes, no X developer app
Pull X data into a pipeline in batchesSocial FetchUp to 200 posts or 50 profiles per call, cursor paging
Read X, TikTok, Instagram and YouTube with one parserSocial FetchThe same { data, meta } shape on every platform
Run a scraper on a schedule and export CSV or ExcelApifyActors, schedules and dataset export
Collect posts from long URL lists as a managed serviceBright DataOne call takes up to 5,000 target URLs
Several networks on one daily unit planEnsembleDataUnits reset every day at 00:00 UTC
A quick look at one public accountFree profile viewerNo key and no signup

1. Social Fetch

Social Fetch is a REST API for public social data. For X it has routes under /v1/twitter/...: profiles, a profile's posts, single posts, replies, quotes, search, hashtags, communities, lists and Spaces. One x-api-key header covers all of them, and every response has the same { data, meta } shape. The full list is in our X endpoint reference for LLMs.

Built for: apps, pipelines and AI agents that read public X data and often read other networks too.

Not built for: posting, DMs, private accounts or anything that needs a user's login. Social Fetch only returns what X shows publicly.

How do I get X data without a developer app?

Create a Social Fetch account, copy your key and call a route. New accounts get 100 free credits with no card, enough for 100 single X lookups. There is no X developer account, app review or X plan to buy.

  1. Create a free account and copy your API key

    Sign up at socialfetch.dev, open the dashboard and copy the key. Put it in an environment variable named SOCIALFETCH_API_KEY.

  2. Look up a profile with curl

    This is the exact call behind the first image below. It returns the profile, its counts and the credits charged.

    Request
    bash
  3. Search posts with operators from JavaScript

    Search takes the same operators you would type on x.com, such as from:. A page returns up to 20 posts, and data.page.nextCursor fetches the next one.

    Request
    search.mjs
  4. Fetch many known posts from Python

    Repeat the url parameter once per post. One call takes up to 200 IDs or permalinks and costs 1 credit.

    Request
    batch.py

Here is a trimmed copy of the profile response for @NASA from 17 Nov 2026, values unchanged:

Request
json
The NASA profile on x.com next to the Social Fetch response for GET /v1/twitter/profiles/NASA on 17 Nov 2026. Callouts match the handle NASA, 115 following and 92.2M followers on the page to handle NASA, following 115 and followers 92233818 in the JSON, with creditsCharged 1. No X developer account or API key from X was used.

The same API handles search. A query with the from: operator returned 15 of NASA's posts in one call for 1 credit, newest first:

A NASA post on x.com next to the Social Fetch search response for the query from:NASA astronaut candidates on 17 Nov 2026. The first result in the JSON is the same post, id 2122404409292337592, posted on 2026-11-16 at 19:00 UTC by handle NASA. The response holds 15 posts and creditsCharged is 1.

For the 20 newest posts of one account without a query, use GET /v1/twitter/profiles/{handle}/tweets. Search filters and paging are covered in our Twitter search API guide, and the advanced search query builder helps you write the query.

Can Social Fetch handle a high-volume Twitter data pipeline?

Yes, because a pipeline needs batching, paging and clear failures more than raw speed. Social Fetch takes up to 200 posts or 50 profiles per call for 1 credit, pages with cursors and tells you what happened to every lookup in the response.

Pipeline needWhat Social Fetch does
Batching/v1/twitter/tweets/batch takes up to 200 posts. /v1/twitter/profiles takes up to 50 profiles
PagingSend data.page.nextCursor back as cursor until data.page.hasMore is false
Typed outcomesdata.lookupStatus is found, private or not_found, so you never parse an empty array to guess
Retries502 lookup_failed and 503 temporarily_unavailable cost no credits, so a retry is free
Billing checkmeta.creditsCharged on every response, and meta.requestId to trace a call
One schemaThe same { data, meta } envelope on X, TikTok, Instagram, YouTube and the rest

A completed lookup is charged even when it finds nothing, so a private or not_found result costs the normal price. The rules are in the credits guide (checked 17 Nov 2026). A batch of six profiles looks like this:

Social Fetch response for GET /v1/twitter/profiles with handles NASA, XDevelopers, OpenAI, github and vercel plus one numeric id, on 17 Nov 2026. Callouts mark requested 6, found 6 and creditsCharged 1, so six profiles cost one credit.

How reliable is Social Fetch on X?

On X routes, 20,498 requests came in during the 24 hours to 10:20 UTC on 17 Nov 2026, and 9 ended in a server error. That is 99.96% without one. Another 1,105 were 4xx responses, which are request errors on the caller's side.

Over the 30 days from 18 Oct to 16 Nov 2026, X routes served 296,410 public API requests, plus 3,301 from the playground and 1,591 from MCP. Across all platforms, the reliability page shows 99.8% API uptime over 90 days, 98.4% request success and a roughly 3.2 second average live fetch, read on 17 Nov 2026. It says plainly that this is a measurement and not a contractual SLA.

Every lookup goes to X live with no shared cache in front, so the counts you get are current.

How many credits does X data cost?

Every X route costs 1 credit per call, except video transcripts, which add 10 credits per started minute of video. What a credit buys depends on how many items one call returns, so batching changes the bill more than anything else.

Bar chart of the most items one Social Fetch credit can return on X routes. Posts by ID in a batch call: 200. Profiles by handle in a batch call: 50. Posts on one search page: 20. Posts on one profile timeline page: 20. One profile lookup: 1.
Bar chart of the most items one Social Fetch credit can return on X routes. Posts by ID in a batch call: 200. Profiles by handle in a batch call: 50. Posts on one search page: 20. Posts on one profile timeline page: 20. One profile lookup: 1. — Source: socialfetch.dev/llms-twitter.txt and test calls on 17 Nov 2026. Search pages in our tests returned 15 and 16 posts.

The table shows credits for 1,000, 10,000 and 100,000 items, assuming full pages and distinct items.

VolumeSearch posts, 20 a pagePosts by ID, 200 a callProfiles by handle, 50 a callSingle profile lookups
Formulaitems ÷ 20items ÷ 200items ÷ 501 per profile
1,00050 credits5 credits20 credits1,000 credits
10,000500 credits50 credits200 credits10,000 credits
100,0005,000 credits500 credits2,000 credits100,000 credits

Real search pages can be shorter than 20. Our from:NASA test returned 15 and a keyword test returned 16, so budget a little above the formula. A timeline call with limit=100 still returned 20 posts, because the page size is best effort. To turn credits into money, use the estimator on pricing. Pay-as-you-go credits never expire.

2. X API (official)

The official X API is the product to use when you post, reply or send DMs as a user. It is also the right choice when a contract says your data must come from X itself.

Built for: apps that act as an X user, plus products that must stay inside X's own access model.

As of 17 Nov 2026, X's pricing docs describe pay-per-usage with no subscriptions. You buy credits up front in the Developer Console, and reads are charged per resource returned: $0.005 per post and $0.010 per user. Pay-per-usage plans are capped at 3 million post reads per monthly billing cycle, after which X points you to Enterprise.

Limits apply per endpoint in windows that are usually 15 minutes or 24 hours, and going over returns a 429, according to X's rate limits page.

For unit prices, a change log back to 2023 and a cost table at volume, read X API pricing in 2026. Social Fetch doesn't replace this API for writes.

3. Apify

Apify is a platform for running scrapers called Actors, and it has Twitter/X Actors. You start a run with an input such as usernames, tweet URLs or search queries, then download the dataset.

Built for: scheduled scrapes, custom scrapers and exports to JSON, CSV or Excel.

Per Apify's Twitter Scraper page, checked 17 Nov 2026, you can also reach Actors through an API, webhooks and integrations, and fork open-source Actors to change their logic. It says costs depend on compute units, storage and proxy usage. Plans add a platform credit and a compute-unit rate, listed on Apify's pricing page. Results arrive as a dataset you can export. See Social Fetch vs Apify.

4. EnsembleData

EnsembleData sells public social data from several networks through one API, with Twitter as one of its products. Its Twitter page says you don't need a Twitter account and that all endpoints fetch public data.

Built for: teams that want one subscription across several networks, measured in units a day.

Its pricing page, checked 17 Nov 2026, lists plans by units per day and says the units reset at 00:00 UTC every day. Twitter calls are priced in units: user info is 2, user tweets are 4 and post info is 2. The page says failed requests caused by internal errors aren't charged. Credits on Social Fetch pay-as-you-go packs don't reset, which matters for bursty jobs. See Social Fetch vs EnsembleData.

5. TwitterAPI.io

TwitterAPI.io is an API built around X data. Its scraper page describes a REST service plus a WebSocket stream, with no X developer account needed.

Built for: developers who want an X-focused API that accepts the advanced search operators.

On its pricing page, checked 17 Nov 2026, you pay per result returned, with a minimum per request, and credits convert to dollars at a flat rate. Recharged credits never expire, while free sign-up credits expire after 31 days. Because tweets, profiles and followers each have their own rate, work out your own mix before comparing it with any per-call price.

6. Bright Data

Bright Data runs managed scrapers for X posts and profiles. Its Twitter Scraper API page lists separate scrapers for posts and for profiles, and a dataset you can buy instead.

Built for: teams collecting X data from long lists of URLs who want the scraping run as a service.

As of 17 Nov 2026 the page says one API call takes up to 5,000 target URLs, that you pay for successful deliveries, and that 5,000 records a month are free. It is a general data platform with proxies and datasets, so Twitter is one product among many. For a comparison, see Social Fetch vs Bright Data.

7. SociaVault

SociaVault is a REST API for 25+ platforms. Its home page lists X (tweets, profiles, trends and Spaces) among them, and says you authenticate with one X-API-Key header.

Built for: small teams that prefer prepaid packs to monthly plans.

Its pricing page, checked 17 Nov 2026, says credits are bought in one-time packs, never expire, and that most endpoints cost 1 credit with exact costs in its docs. Check the credit cost of the X routes you plan to call before you budget, because the page groups routes into basic, advanced and bulk tiers. Our own comparison is at Social Fetch vs SociaVault.

How do I read X without an account or a key?

Use the free X profile viewer. It takes a handle or a post link and shows the profile, the latest posts with views and likes, and account details. There is no login and no signup, and free lookups are capped per visitor, so it suits spot checks and not spreadsheets.

For a longer look at reading posts without an X account, see Social Fetch as a Nitter alternative. When you outgrow the viewer, the same data is one key away through the API, and AI agents can use the same routes through the Social Fetch MCP server.

How I checked these facts

I'm Luke and I run Social Fetch. Every call on this page was made on 17 Nov 2026, through our MCP server, and the Social Fetch numbers come from those calls and our own logs. Every fact about another product was read on that product's own page the same day, and I left out anything I couldn't find there.

Vendors change plans often. I'll recheck each page every 90 days and update the date at the top when anything moves.

Frequently asked questions

Short answers to the questions people ask most about Twitter/X APIs, current as of 17 Nov 2026.

FAQ

What is the best Twitter API in 2026?

The official X API is the best for posting, DMs and acting as a user. For reading public X data, Social Fetch returns profiles, posts, replies and search results as JSON with no X developer app, and a search page of up to 20 posts costs 1 credit. Apify, EnsembleData, TwitterAPI.io, Bright Data and SociaVault are the other options we checked on 17 Nov 2026.

How much does the Twitter/X API cost, and is it free?

As of 17 Nov 2026, X charges $0.005 per post read and $0.010 per user read on pay-per-usage, with no subscription and no free plan. New payers can earn $20 in credits after a first purchase. Our X API pricing guide has the change log and the cost at volume.

What is the best Twitter API alternative for scraping public data?

For public profiles, posts and search without an X developer app, Social Fetch is a fixed REST API with 29 X routes, batching and cursor paging. Apify suits scheduled Actor runs, and Bright Data suits managed scraping from URL lists. Pick by how you want to call it and how you want to be billed.

Is it legal to scrape data from Twitter?

Social Fetch only returns data that X shows publicly and doesn't read private accounts or DMs. Whether a particular use is allowed depends on X's terms, your country's law and what you do with the data, so get legal advice before you store or resell it.

Do I need an X developer account to use Social Fetch?

No. You need a Social Fetch API key, which new accounts get with 100 free credits and no card. There is no X app, review or plan to buy. Posting and DMs still need X's own API.

How many credits does an X request cost on Social Fetch?

Each X route costs 1 credit per call, and a call can return up to 20 posts on search, 200 posts by ID or 50 profiles in a batch. Transcripts add 10 credits per started minute. Failed requests are free, and see pricing for what a credit costs on your plan.

Ask an AI for a second opinion

Which APIs are best for public X (Twitter) data in 2026, and how does Social Fetch compare with them?

Founder of Social Fetch. Writes about social-data APIs, reliability, and the production incidents that forced better timeouts, envelopes, and billing.

Questions about this post? Contact us.