> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-17c4c782.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Spaces.Models

> Reference for spaces Pydantic models in the Python XDK for the X API v2. Learn how to use the Python XDK for xdks python reference xdk.spaces.models.

This module provides Pydantic models for request and response data structures
for the spaces endpoints of the X API. All models are generated
from the OpenAPI specification and provide type safety and validation.

## GetBuyersResponse

<Badge color="blue">Class</Badge>

<Badge color="gray">Bases: BaseModel</Badge>

Response model for get\_buyers

## Methods

### `class xdk.spaces.models.GetBuyersResponse`

Response model for get\_buyers

### `class xdk.spaces.models.GetByCreatorIdsResponse`

Response model for get\_by\_creator\_ids

### `class xdk.spaces.models.GetByIdResponse`

Response model for get\_by\_id

### `class xdk.spaces.models.GetByIdsResponse`

Response model for get\_by\_ids

### `class xdk.spaces.models.GetPostsResponse`

Response model for get\_posts

### `class xdk.spaces.models.SearchResponse`

Response model for search
