---
title: "Get an X Space"
method: GET
path: "/v1/x/spaces/{id}"
tags: ["X"]
---

# Get an X Space

`GET /v1/x/spaces/{id}`

## Request

- Base URL: `https://api.weirapp.io`
- URL: `https://api.weirapp.io/v1/x/spaces/{id}`
- Auth: HTTP bearer

Returns a Space (a live audio room): its title, state (`NotStarted`, `Running`, or `Ended`), schedule, host, speakers, and audience counts, and whether a replay is available. Listeners are included only with `listeners=true`. 404 when the Space does not exist. Billed per Space returned.

## Path parameters

- `id` string, required: Space id: the code after `/i/spaces/` in a Space's URL.

## Query parameters

- `listeners` 'true' | 'false': Include the listener list. Off by default: it can be long, and it names individuals who only listened.

## Response `200`

One X Space.

- object
  - `data` object, required
    - `id` string, required
    - `url` string, required: `https://x.com/i/spaces/{id}`.
    - `state` string, nullable, required: X's lifecycle state, such as `NotStarted`, `Running`, or `Ended`.
    - `title` string, nullable, required
    - `createdAt` string, date-time, nullable, required
    - `scheduledStart` string, date-time, nullable, required
    - `startedAt` string, date-time, nullable, required
    - `endedAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `creatorId` string, nullable, required
    - `creator` object, nullable, required
      - `id` string, required
      - `username` string, required
      - `name` string, required
      - `verified` boolean, required
      - `followersCount` integer, required
      - `profileImageUrl` string, nullable, required
    - `isLocked` boolean, nullable, required
    - `disallowJoin` boolean, nullable, required
    - `isSpaceAvailableForReplay` boolean, nullable, required
    - `isSpaceAvailableForClipping` boolean, nullable, required
    - `totalLiveListeners` integer, nullable, required
    - `totalReplayWatched` integer, nullable, required
    - `participantCount` integer, nullable, required
    - `participants` object, required
      - `admins` object[], required: Hosts and co-hosts.
        - `id` string, nullable, required
        - `username` string, nullable, required
        - `name` string, nullable, required
        - `profileImageUrl` string, nullable, required
        - `verified` boolean, nullable, required
        - `isMutedByAdmin` boolean, nullable, required
        - `isMutedByGuest` boolean, nullable, required: Muted their own microphone.
      - `speakers` object[], required
        - `id` string, nullable, required
        - `username` string, nullable, required
        - `name` string, nullable, required
        - `profileImageUrl` string, nullable, required
        - `verified` boolean, nullable, required
        - `isMutedByAdmin` boolean, nullable, required
        - `isMutedByGuest` boolean, nullable, required: Muted their own microphone.
      - `listeners` object[], required: Empty unless listeners were requested with `listeners=true`.
        - `id` string, nullable, required
        - `username` string, nullable, required
        - `name` string, nullable, required
        - `profileImageUrl` string, nullable, required
        - `verified` boolean, nullable, required
        - `isMutedByAdmin` boolean, nullable, required
        - `isMutedByGuest` boolean, nullable, required: Muted their own microphone.
  - `meta` object, required
    - `requestId` string, required
    - `nextCursor` string, nullable

## Other responses

- `400`: The request failed validation.
- `401`: The API key is missing, malformed, expired, or revoked.
- `402`: The account is out of credit. Not retryable: this cannot clear until the billing period resets or the plan changes.
- `403`: The API key does not carry the scope this route requires.
- `404`: The requested resource does not exist.
- `429`: The per-minute rate limit is exhausted. Retryable: wait for Retry-After and try again.
- `500`: An unexpected error occurred.
- `503`: The source is temporarily unavailable. The request is safe to retry.

---

[API](https://skmtc.dev/weirapp/apis/weir-api.md) · [All operations](https://skmtc.dev/weirapp/apis/weir-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weirapp/apis/weir-api/revisions/4c6a9ae0bfca?raw)
