# 获取 Space 详情

**API:** Data API

**Endpoint:** `GET /v1/beta/twitter/spaces/detail`

**Tags:** Twitter / X

按 space ID 获取 X Space（实时语音房间）的详情——标题、状态、主持人、参与者和日程。用它确认 Space 是已安排、正在直播还是已结束，以及谁在主持，再决定是否引用或参加。对象位于 `data` 下。

### 计费参考

- 计量方式：按请求参考。
- 参考请求估算：暂无。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `space_id` | query | yes | string | 空间 ID。 |

## Responses

### 200 — 成功响应

Headers:
- `X-Request-Id` (string) — 联系 Felo 支持时需提供的请求标识符。

**application/json**

Schema: `SpaceDetailResponse` (`#/components/schemas/SpaceDetailResponse`)

### 400 — 无法处理该请求。请检查请求参数。

### 401 — 需要有效的 Felo API 密钥。

### 402 — 由于未满足计费要求，请求无法继续。

### 403 — 该账户无权执行此操作。

### 429 — 已达到请求或支出限额。

### 502 — 服务无法完成该请求。

### 503 — API 或计费服务暂时不可用。

### 504 — 服务在处理请求时超时。

### default — 操作失败。联系 Felo 支持时请保留响应的请求 ID。

## Schema definitions

### SpaceDetail

`#/components/schemas/SpaceDetail`

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "scheduled_start": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "media_key": {
      "type": "string"
    },
    "is_subscribed": {
      "type": "boolean"
    },
    "settings": {
      "type": "object",
      "properties": {
        "conversation_controls": {
          "type": "integer"
        },
        "disallow_join": {
          "type": "boolean"
        },
        "is_employee_only": {
          "type": "boolean"
        },
        "is_locked": {
          "type": "boolean"
        },
        "is_muted": {
          "type": "boolean"
        },
        "is_space_available_for_clipping": {
          "type": "boolean"
        },
        "is_space_available_for_replay": {
          "type": "boolean"
        },
        "no_incognito": {
          "type": "boolean"
        },
        "narrow_cast_space_type": {
          "type": "integer"
        },
        "max_guest_sessions": {
          "type": "integer"
        },
        "max_admin_capacity": {
          "type": "integer"
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "total_replay_watched": {
          "type": "integer"
        },
        "total_live_listeners": {
          "type": "integer"
        },
        "total_participants": {
          "type": "integer"
        }
      }
    },
    "creator": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "userName": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "protected": {
          "type": "boolean"
        },
        "isVerified": {
          "type": "boolean"
        },
        "isBlueVerified": {
          "type": "boolean"
        },
        "verifiedType": {
          "type": "string"
        },
        "followers": {
          "type": "integer"
        },
        "following": {
          "type": "integer"
        },
        "favouritesCount": {
          "type": "integer"
        },
        "statusesCount": {
          "type": "integer"
        },
        "mediaCount": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "coverPicture": {
          "type": "string"
        },
        "profilePicture": {
          "type": "string"
        },
        "canDm": {
          "type": "boolean"
        },
        "affiliatesHighlightedLabel": {
          "type": "object"
        },
        "isAutomated": {
          "type": "boolean"
        },
        "automatedBy": {
          "type": "string"
        }
      }
    }
  }
}
```

### SpaceDetailResponse

`#/components/schemas/SpaceDetailResponse`

```json
{
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/components/schemas/SpaceDetail"
    },
    "status": {
      "type": "string",
      "enum": [
        "success",
        "error"
      ]
    },
    "msg": {
      "type": "string"
    }
  }
}
```
