Trends
Explore, trends and AI trend pages. Timeline methods return a parsed Timeline; pass raw: true for the GraphQL response.
Explore
trends.explore()
Gets the explore page with its tabs.
trends.exploreSidebar(opts?)
Gets the explore sidebar. count sets how many trends come back.
trends.forYou(opts?)
Gets the For You tab.
trends.trending(opts?)
Gets the Trending tab.
trends.grokTags(opts?)
Gets the Grok tags shown on explore. Takes language, placeId and topicId.
trends.grokCategories(language?)
Gets the Grok categories for global trending.
trends.locations(prefix)
Autocompletes explore locations by name.
const places = await client.trends.locations("lon");trends.exploreSettings() / trends.setExploreSettings(params)
Reads or saves the explore location settings.
AI trends
trends.getById(trendId)
Gets an AI trend with its news articles.
const trend = await client.trends.getById("2127365753640759557");trends.page(trendId)
Gets the full AI trend page with its posts.
trends.history(trendId, opts?)
Gets the version history of an AI trend.
trends.actions(trendId)
Gets the actions available on a trend.
trends.action(trendId, action)
Runs one of those actions.
trends.report(trendId)
Sends spam feedback on an AI trend.
Deprecated
trends.available()
Deprecated. The web client no longer calls the v1.1 trends/available endpoint.
trends.save(trendId)
Deprecated. The web client dropped this op and there is no replacement, so emusks calls the old op with { legacy: true }. It may stop working.
trends.relevantUsers(trendName, opts?)
Deprecated. The web client dropped this op and there is no replacement, so emusks calls the old op with { legacy: true }. It may stop working.