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

# Communities.Models

> Reference for the communities.models Python module in the X API SDK. Pydantic request and response models for the communities endpoints of the X API v2.

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

## GetByIdResponse

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

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

Response model for get\_by\_id

## Methods

### `class xdk.communities.models.GetByIdResponse`

Response model for get\_by\_id

### `class xdk.communities.models.SearchResponse`

Response model for search
