Use case

X (Twitter) search, profiles and real-time streams

Read X profiles, posts, conversations, bounded recent and date-filtered search, trending topics and real-time profile SSE streams with one API key.

What you get

Monitor crypto narratives, project announcements and creator activity on X through standard REST endpoints and a live Server-Sent Events stream for up to 100 tracked profiles.

Requests

Bounded recent post search — GET /x_unified_api/2/tweets/search/recent

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=10"

Look up an X user profile by username — GET /x_unified_api/2/users/by/username/{username}

curl -sS -H "X-Hub-Key: $API_HUB_KEY" \
  "https://openapihub.dev/run/x_unified_api/2/users/by/username/jack"

Current X trending topics — GET /x_unified_api/2/trends

curl -sS -H "X-Hub-Key: $API_HUB_KEY" \
  "https://openapihub.dev/run/x_unified_api/2/trends?max_results=20"

Real-time profile SSE stream

FAQ

Is real-time X profile streaming supported?

Yes. Connect to GET /stream/x_unified_api/profiles/{username}/events with X-Hub-Key and Accept: text/event-stream for live SSE push events.

Can I look up multiple X profiles or posts in one request?

Yes. Batch lookup routes GET /run/x_unified_api/2/users/by and GET /run/x_unified_api/2/tweets accept up to 100 usernames or post IDs per request.

See also: X search recipe · X Unified API · Streaming docs

Get a free key