News
News stories and global trending. home, tag, explore and story return decoded jetfuel pages, the same shape as jetfuel.page.
Stories
news.stories(topicId, opts?)
Gets the stories of a story topic. feed: true uses the explore news feed op.
news.sidebar(topicId, opts?)
Gets the stories shown in the news sidebar.
news.story(id)
Gets the jetfuel page of a story article.
news.explore()
Gets the jetfuel explore news page.
Global trending
news.globalTrending(opts?)
Gets the global trending timeline. Takes timeFilter, placeId, tag and topicId.
js
const { tweets } = await client.news.globalTrending({ count: 20 });news.globalTrendingTag(tag, opts?)
Gets the global trending timeline for a tag.
news.globalTrendingPosts(opts?)
Gets the global trending posts.
news.globalTrendingTagPosts(tag, opts?)
Gets the global trending posts for a tag.
news.home()
Gets the jetfuel global trending home page.
news.tag(id)
Gets the jetfuel global trending page of a tag.