Tweets
Twitter spaces replay API: get a recording URL
Get the replay of an ended Twitter or X Space as an HLS playback URL, by Space ID or URL. Live and scheduled Spaces answer 409. Costs 1 credit per call.
- 200
- 400
- 401
- 402
- 404
- 409
- 424
- 429
- 502
- 503
GET
Twitter spaces replay API: get a recording URL
Get Space replay returns the recording X plays back once a Space is over.
The endpoint is
Each call costs 1 credit. A refused request costs nothing.
The path is not a Space ID or a Space URL. The request costs nothing.
Missing or invalid API key. Check the
The host kept no recording. The request costs nothing.
The host cancelled the Space before it started, so there is nothing to replay. The request costs
nothing.
X has no such Space, or X limits it to subscribers or a community. The request costs nothing.
The Space is live or scheduled. Call again after it ends. The request costs nothing.
The read service returned an error. Retry after a short delay.
X returned no playback URL, or Xquik is busy. Wait for
You exceeded your tier rate limit. Wait for the
The normalized v1 response contract can return 424 when the read service is unavailable.
GET /api/v1/x/spaces/{id}/replay.
Get the recording of an ended Space
UseGET /x/spaces/{id}/replay once a Space is over, in state Ended or
TimedOut. Check state and isAvailableForReplay with
Get Space first.
- An ended Space with a recording returns its HLS playlist in
replay.url. - A live or scheduled Space answers 409
space_not_ended. Its replay is ready after it ends. - A Space whose host kept no recording answers 404
replay_unavailable. - A Space cancelled before it started answers 404
space_canceled.
replay.url is an HLS playlist. Play it in a player that reads HLS, or pass it
to a tool that saves HLS streams.
Path parameters
string
required
X Space ID, or the URL-encoded Space URL, such as
x.com/i/spaces/1OGwblLjnQMKB.Headers
string
Full account key. Sessions and OAuth also work.
string
Bearer xq_your_guest_key_here authenticates paid_reads guest keys. Direct MPP uses the Payment ... credential. Get it from the WWW-Authenticate: Payment challenge.Response
200 OK
object
400 Invalid Space ID
401 Unauthenticated
x-api-key header value.
402 Payment required
Account keys get account options. Guest keys get guest top-up only. Anonymous calls receive a direct MPPWWW-Authenticate: Payment challenge plus a guest wallet creation action.
No checkout starts automatically. Confirm any payment action.
404 No replay
404 Space cancelled
404 Space not found
409 Space not ended
502 X API unavailable
503 Service busy
Retry-After, then retry. The request costs nothing.
429 Rate limit exceeded
Retry-After header before retrying.
424 Dependency failed
Twitter Spaces replay questions
How do I get the recording of a Twitter Space?
CallGET /x/spaces/{id}/replay with the Space ID or its URL. An ended Space
with a recording returns its HLS playlist in replay.url.
Can I get the stream of a live Space?
No. A live or scheduled Space answers 409space_not_ended. Call again after
it ends.
Why does an ended Space have no replay?
Its host kept no recording. CheckisAvailableForReplay with
Get Space before you call.
How much does a replay lookup cost?
Each replay returned costs 1 credit. A refused request costs nothing.Does this replace X’s official API?
No. This page documents Xquik, an independent third-party service. It does not document X’s official API.Next steps. Get Space for the Space’s state & listener counts, Search Spaces to find more Spaces, or Get broadcast for a live video.