Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 737 Bytes

File metadata and controls

13 lines (9 loc) · 737 Bytes

The Trends lookup endpoint allow developers to get the Trends for a location, specified using the where-on-earth id (WOEID).

Note: WOEID is a legacy identifier created by Yahoo and has been deprecated. X API uses the numeric value to identify town and country trend locations. Reference our legacy blog post, or archived data

Get trends

Get the trends for a location

api.get_trends_by_woeid(woeid=1)
# Response(data=[Trend(trend_name='#QuietOnSet', tweet_count=14060), Trend(trend_name='King Charles', tweet_count=42315), Trend(trend_name='Drake Bell', tweet_count=1234)])