> ## 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.

# TrendsClient

> X API SDK의 trends.client Python 모듈에 대한 참조입니다. X API v2의 trends 엔드포인트를 호출하기 위한 클라이언트 클래스와 메서드입니다.

## TrendsClient

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

<Badge color="gray">기반 클래스: object</Badge>

트렌드 작업을 위한 클라이언트

## 생성자

### `__init__`

#### 매개변수

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

### `get_ai`

Get AI Trends by ID
Retrieves an AI trend by its ID.

#### 매개변수

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

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

#### 반환값

`GetAiResponse` - 응답 데이터

### `get_by_woeid`

WOEID로 트렌드 조회
Retrieves trending topics for a specific location identified by its WOEID.

#### 매개변수

<ParamField path="path.woeid" type="int">
  The WOEID of the place to lookup a trend for.
</ParamField>

<ParamField path="path.max_trends" type="int or None" default="None">
  결과의 최대 개수입니다.
</ParamField>

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

#### 반환값

`GetByWoeidResponse` - 응답 데이터

### `get_personalized`

Get personalized Trends
Retrieves personalized trending topics for the authenticated user.

#### 매개변수

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

#### 반환값

`GetPersonalizedResponse` - 응답 데이터
