31 REST Endpoints + 7 WebSocket Channels

Twitter/X API for Developers

REST endpoints and real-time WebSocket streaming. Get user profiles, tweets, communities, trends — all with one API key.

Terminal
$ curl "https://api.xshot.fun/twitter/user/info?username=elonmusk&api_key=KEY"
{
  "name": "Elon Musk",
  "followers_count": 237614000,
  "is_blue_verified": true
}

Everything you need to build with Twitter/X data. One API key. Unlimited possibilities.

31

REST Endpoints

7

WebSocket Channels

10s

Min Poll Interval

SSL

HTTPS + WSS

Unlike any API you've used before

Built on Twitter's internal GraphQL API with Chrome TLS fingerprinting, per-request transaction IDs, and automatic account rotation.

Lightning Fast

Direct GraphQL pipeline to Twitter with Chrome 131 TLS fingerprinting. No proxying, no rate limit middlemen.

Real-time WebSocket

7 event channels with automatic diff detection. Subscribe once, get live updates on tweets, followers, engagement.

Full Coverage

Users, tweets, communities, lists, spaces, trends, and write operations. 31 endpoints covering every Twitter data type.

Simple Auth

One API key, three ways to use it. Query string for browser testing, header for production, bearer token for OAuth flows.

Complete
Twitter data

31 REST endpoints covering every Twitter data type. Users, tweets, communities, lists, spaces, trends, and write operations.


User profiles & search. Get any user by username, ID, or search query.
Followers & following. Paginated follower and following lists.
Tweet details & search. Full tweet data with engagement metrics.
Communities & members. Community info, tweets, media, and memberships.
Lists & spaces. List tweets, members, and space metadata.
Trends & engagement. Worldwide trends and tweet engagement data.

Real-time
WebSocket events

Subscribe to 7 event channels and get live updates pushed to your client. Only diffs are sent — no polling, no wasted bandwidth.


community:tweets New tweets posted in a community, live.
community:members Detect when a user joins or leaves communities.
user:tweets New tweets from any user, pushed in real-time.
user:followers Follower count changes with delta tracking.
tweet:engagement Live like, retweet, reply, and view counts.
search:tweets New tweets matching any search query.

Start building with Xshot

Get your API key and make your first request in 30 seconds. Full documentation, code examples, and interactive playground.

JavaScript
const ws = new WebSocket("wss://api.xshot.fun/ws?api_key=KEY");

ws.send(JSON.stringify({
  type: "subscribe",
  channel: "tweet:engagement",
  params: { tweet_id: "123" }
}));

ws.onmessage = (e) => {
  console.log(e.data);
  // { like_count: 328, like_count_delta: 2 }
};