Does Twitter (X) have an API?

Yes. X runs the official API v2 with paid tiers: the free tier is minimal, and useful read access starts on paid plans. Public-data APIs like Social Fetch return public profiles, posts, replies, communities and search results without an X developer app. The same answer applies if you're asking "does X have an API?"

Glossary · Platforms

What the official X API actually covers

It's a full API for posting, replies, likes, DMs and reads, and it needs a developer app and OAuth. It's the right path for posting on behalf of users or for elevated historical search.

The free tier is meant for writing and small tests, not bulk reads. Paid tiers add read volume, but prices and rules change, so budget for them as a recurring cost.

The X API cost pattern, honestly

We don't quote dollar figures because X changes its tiers. The pattern holds, though: the free tier is narrow, and the jump to a paid tier for real search and bulk reads is significant. Check X's developer portal before you commit.

That's why many products that need profile cards or keyword search use a public-data API instead of setting up an X developer app.

What a public-data X API covers instead

Social Fetch covers X under /v1/twitter/… as one of 87 platforms and 1112 endpoints. Start with GET /v1/twitter/profiles/{handle}, then add post, reply, community and search endpoints. You send one key in the x-api-key header, and every response has the same shape.

A profile lookup returns the display name, bio, follower counts and verified status. You don't need posting permissions or an approved developer app.

Common mistakes when comparing the two

Reading "free API" as free bulk reads. Monitoring and search go past the free tier quickly.

Treating a not-found result as a connection error. It arrives as an HTTP 200 and counts as a completed, billed lookup.

Where a public-data API stops

It covers public data only. Protected accounts, DMs and anything behind a login are out of scope. To post or manage your own account, use the official X API.

Try the free Twitter profile viewer before you build anything for production.

Questions. Short answers.

Does X (Twitter) have an API?

Yes. X offers the official API v2 with paid tiers. Public-data APIs like Social Fetch cover public profiles, posts and search without an X developer app.

Is the Twitter/X API free?

Only in a narrow way. The free tier doesn't cover bulk reads, and useful read access needs a paid tier.

How much does the X API cost?

Check X's developer portal, because the tiers change. The free tier is minimal, and paid tiers step up in price for more read volume.

Is Social Fetch the same as the official X API?

No. Social Fetch is a third-party API for public X data. The official X API is X's own product, with OAuth and tiered pricing.

Do I need an X developer app to look up a public profile?

Not with a public-data API. With Social Fetch you send your API key in the x-api-key header, and no X app is needed.

Where do I try X data without writing code?

Use the free Twitter profile viewer, then see the Social Fetch X platform page and the API docs.

Do X lookups cost credits on Social Fetch?

Yes, on metered endpoints. Search and list endpoints may cost more than a profile lookup, so check each endpoint's page and the credits charged on each response.

Can a public-data API get tweets from a private account?

No. Protected accounts and anything behind a login are out of scope for public-data APIs like Social Fetch.

Try it on real data.

100 free credits when you sign up, no card needed. Make your first request in the Playground.

No credit cardSign up in 30 seconds withGoogleGitHub