News feed aggregator
Build a personalized news feed for your users by combining the historical news endpoint with the live news WebSocket channel.
What you'll build
A feed page that loads the last 50 articles relevant to the user, then streams in new ones as they're published.
Initial fetch
const initial = await client.news.list({
league: user.favoriteLeague,
teams: user.favoriteTeams,
limit: 50,
});Subscribe to live news
const ws = client.stream();
ws.subscribe('news', {
league: user.favoriteLeague,
team__in: user.favoriteTeams.join(','),
});
ws.on('update', (article) => {
prependToFeed(article);
});Deduplication is already done
When multiple outlets cover the same story, we cluster them into one article server-side. You won't see 47 copies of the same trade rumor — just one, with sources[] attached. Build for the clustered shape.