Skip to main content
Access Trends endpoints via client.trends (TrendsClient).

Methods

get_by_woeid

GET /2/trends/by/woeid/{woeid} Get Trends by WOEID Retrieves trending topics for a specific location identified by its WOEID. meta.location describes that location: its woeid and name, and when they are known its country, country_code, place_type (town, country or supername) and parent_id, the WOEID of the place that contains it.

Parameters

int
required
woeid (path parameter).
Returns: GetByWoeidResponse

get_locations

GET /2/trends/locations Get Trend Locations Retrieves every location that has trends. Each location has a WOEID to pass to GET /2/trends/by/woeid/{woeid}. The list is short and is returned whole, so the route takes no paging parameters.

Parameters

Returns: GetLocationsResponse

get_personalized

GET /2/users/personalized_trends Get Personalized Trends Retrieves personalized trending topics for the authenticated user.

Parameters

Returns: GetPersonalizedResponse