Skip to main content

Submodules

Module contents

This module provides access to the trends endpoints of the X API and serves as the main entry point for all trends-related functionality. Client for trends operations

Parameters

path.client
Client

__init__

Parameters

path.client
Client

get_ai

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

Parameters

path.id
Any
The ID of the ai trend.
path.news_fields
List or None
default:"None"
A comma separated list of News fields to display.

Returns

GetAiResponse - Response data

get_by_woeid

Get Trends by WOEID Retrieves trending topics for a specific location identified by its WOEID.

Parameters

path.woeid
int
The WOEID of the place to lookup a trend for.
The maximum number of results.
path.trend_fields
List or None
default:"None"
A comma separated list of Trend fields to display.

Returns

GetByWoeidResponse - Response data

get_personalized

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

Parameters

path.personalized_trend_fields
List or None
default:"None"
A comma separated list of PersonalizedTrend fields to display.

Returns

GetPersonalizedResponse - Response data