X Unified API

Client-executable: 22
SSE streams: 1

X (Twitter) social data: profiles, posts, conversations, batch lookup, recent and date-filtered search, trending topics, curated creator catalog and realtime profile activity streams.

Get a free key

Independent service, not affiliated with X Unified API. X Unified API is a trademark of its owner.

What you can get

First request

Example: GET /2/tweets/search/recent. Send your key in the X-Hub-Key header.

curl -sS -H "X-Hub-Key: $API_HUB_KEY" \
  "https://openapihub.dev/run/x_unified_api/2/tweets/search/recent?query=from:jack&max_results=5"

Response

The provider's JSON arrives unchanged in data. Abridged example; values change with the market.

{
  "source": "x_unified_api",
  "status": 200,
  "data": {
    "data": [{
      "id": "1850000000000000000",
      "text": "Latest post text…",
      "author_username": "jack"
    }]
  }
}

Limits and key

80 requests per second per key, bursts up to 160, 60 requests in flight. On 429, wait for Retry-After. Limits · Pricing · OpenAPI JSON

Get a free key in the Telegram bot: one key per account, issued in a few seconds.

Use cases

All endpoints

Server-sent events
GET/stream/x_unified_api/profiles/{username}/events [SSE] — Stream posts and available profile activity
Posts
GET/2/tweets/{tweet_id} — Read a post by its numeric ID
GET/2/tweets/search/recent — Search recent X posts
GET/2/tweets — Read up to 100 posts by ID
GET/2/tweets/{tweet_id}/quote_tweets — Read quotes of an X post
GET/2/tweets/{tweet_id}/retweeted_by — Read accounts that reposted an X post
GET/2/tweets/{tweet_id}/timeline — Read a conversation including its anchor post
GET/2/tweets/search/all — Search X posts with date operators
GET/2/trends — Read current X trending topics
GET/2/kol/catalog — Read the curated creator catalogue
Profiles
GET/2/users/by/username/{username} — Look up an X profile
GET/2/users/by/username/{username}/tweets — Read recent posts by username
GET/2/users/search — Search X user profiles by keyword or handle
GET/2/users/by — Look up up to 100 profiles by username
GET/2/users — Look up profiles by IDs known to the service
GET/2/users/{user_id}/tweets — Read posts by a resolved user ID
GET/2/users/{user_id}/mentions — Read mentions of a resolved user ID
GET/2/users/by/username/{username}/mentions — Read mentions by username
GET/2/users/by/username/{username}/followers — Read followers of an X profile
GET/2/users/by/username/{username}/following — Read accounts followed by an X profile
GET/2/users/by/username/{username}/media — Read media posts of an X profile
GET/2/users/by/username/{username}/articles — Read X articles published by a profile
GET/2/users/by/username/{username}/highlights — Read highlighted posts of an X profile