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

# CommunitiesClient

> X API SDK の communities.client Python モジュールのリファレンス。 X API v2 の communities エンドポイントを呼び出すためのクライアントクラスとメソッド。

## CommunitiesClient

<Badge color="blue">クラス</Badge>

<Badge color="gray">基底: object</Badge>

communities 操作向けのクライアント

## コンストラクター

### `__init__`

#### パラメーター

<ParamField path="path.client" type="Client" />

### `get_by_id`

Get Community by ID
Retrieves details of a specific Community by its ID.

#### パラメーター

<ParamField path="path.id" type="Any">
  The ID of the Community.
</ParamField>

<ParamField path="path.community_fields" type="List or None" default="None">
  A comma separated list of Community fields to display.
</ParamField>

#### 戻り値

`GetByIdResponse` - Response data

### `search`

Search Communities
次の一覧を取得します: Communities matching the specified search query.

#### パラメーター

<ParamField path="path.query" type="str">
  Query to search communities.
</ParamField>

<ParamField path="path.max_results" type="int or None" default="None">
  The maximum number of search results to be returned by a request.
</ParamField>

<ParamField path="path.next_token" type="Any or None" default="None">
  This parameter is used to get the next ‘page’ of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.
</ParamField>

<ParamField path="path.pagination_token" type="Any or None" default="None">
  This parameter is used to get the next ‘page’ of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.
</ParamField>

<ParamField path="path.community_fields" type="List or None" default="None">
  A comma separated list of Community fields to display.
</ParamField>

#### 戻り値

`IteratorSearchResponse`
