GetXAPI
Spaces

Space Info

Fetch X/Twitter Space metadata (title, host, state, listener counts) via API. $0.001 per call. GetXAPI Spaces info endpoint documentation.

GET/twitter/spaces/info

This endpoint costs $0.001 per API call.

Fetch metadata for an X (Twitter) Space, title, host, state, listener counts, and whether it can be downloaded. Synchronous (~1-2s).

Billed from your credits. Spaces info is charged at its standard per-call cost from your credit balance, spending your plan credits first and then your top-up wallet.

Query Parameters

FieldTypeRequiredDescription
space_urlstringYesA Space URL or ID, e.g. https://x.com/i/spaces/1mrGmBvwaBqJy

Notes

  • Returns the Space's metadata.
  • downloadable tells you whether the audio can be downloaded right now, true when the Space is Running, or Ended with replay enabled by the host. Pass the Space to Download Space to get the audio.

Response (200)

{
  "status": "success",
  "msg": "success",
  "data": {
    "space_id": "1mrGmBvwaBqJy",
    "title": "CommonPrefix <> XRP Ledger",
    "state": "Ended",
    "host_username": "Vet_X0",
    "host_name": "Vet",
    "started_at": "2025-12-23T18:30:26.256Z",
    "ended_at": "2025-12-23T19:49:17.692Z",
    "is_live": false,
    "is_replay_available": true,
    "total_live_listeners": 599,
    "total_replay_watched": 2935,
    "downloadable": true
  }
}

Response Fields

FieldTypeDescription
space_idstringThe Space ID
titlestringSpace title
statestringRunning | Ended | NotStarted
host_usernamestringHost's @handle
host_namestringHost's display name
started_at / ended_atstringISO 8601 timestamps (nullable)
is_livebooleanSpace is currently live
is_replay_availablebooleanReplay is available to download
total_live_listenersnumberPeak live listeners
total_replay_watchednumberReplay views
downloadablebooleanWhether the Space's audio can be downloaded right now

Error Responses

400 - Missing space_url

{
  "error": "Missing required field: space_url"
}

Example

curl -X GET "https://api.getxapi.com/twitter/spaces/info?space_url=https://x.com/i/spaces/1mrGmBvwaBqJy" \
  -H "Authorization: Bearer API_KEY"

On this page