Skip to main content
GET
X live status API to check if a user is live
1 credit per check · All plans from $0.00012/credit · Supports guest paid reads

Is a user live right now?

Use GET /x/users/{id}/live to check whether a user is broadcasting live video on X. Name the user by user ID, username, or profile URL. live is true while the user’s latest broadcast is running. broadcast is that latest broadcast, live or ended, with the same fields as Get broadcast. It is null when X shows no broadcast for the user. Poll it to alert your team when a creator goes live, or to log when a brand’s streams start and end.

Path parameters

string
required
User ID, username with or without @, or URL-encoded profile URL, such as x.com/nasa. See path IDs.

Headers

string
Full account key. Sessions and OAuth also work.
string
Bearer xq_your_guest_key_here for paid_reads.

Response

200 OK

boolean
true while the user’s latest broadcast is running.
object | null
The user’s latest broadcast, live or ended, or null when X shows none. See Get broadcast for every field.
string
Broadcast ID.
string
Broadcast title.
string
Such as NotStarted, Running, or Ended, as X names it.
string
When the broadcast started, as ISO 8601.
string
When the broadcast ended, as ISO 8601. Omitted while it runs.
number
Viewers watching, as X counts them.
string
ID of the user.
string
Username of the user.

400 Invalid input

Send a user ID, a username, or a profile URL.

404 User not found

A user X does not know is free of charge.

401 Unauthenticated

Anonymous requests get WWW-Authenticate: Bearer and a guest wallet checkout action. This is not a Payment challenge.

402 Payment required

Account keys get account options. Guest keys get guest top-up only. No checkout starts automatically. Confirm any payment action.

502 X API unavailable

The read service returned an error. Retry after a short delay.