GET /profiles/{username}/events
Auth X-Hub-Key from API_HUB_KEYCost free · weight 0 · standard rate classSource billing free
[SSE] Streamed via GET /stream/x_unified_api/profiles/{username}/events — see Streaming.
Connect
curl -N https://openapihub.dev/stream/x_unified_api/profiles/naval,SpaceX/events \
-H "Accept: text/event-stream" \
-H "X-Hub-Key: $API_HUB_KEY"
Stream posts and available profile activity
Send X-Hub-Key and Accept: text/event-stream. Each client may keep up to 100 unique profiles. Standard access allows 2 concurrent streams, 100 new usernames per rolling 24 hours, a 120-second disconnect grace, and a 60-minute stream lifetime. Existing tracked profiles reuse their upstream record instead of creating a duplicate.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
username | path | str | required | One X username or a comma-separated list of up to 100 unique usernames. Names are case-insensitive and may contain letters, digits, or underscores. example: naval,SpaceX |
Response
Standard SSE frames use event: <type> followed by one JSON data object. Event types: tweet.created, tweet.reply, tweet.retweet, tweet.quote, tweet.updated, tweet.deleted, user.followed, user.unfollowed, user.profile_update, user.compliance, tweet.compliance. Control comments are : connecting, : subscribed, and : heartbeat. Event data contains data, includes, and meta objects. There is no replay cursor; reconnect after a disconnect.