trends
Articles in a Trend
Retrieve a list of published articles belonging to a trend.
Article Ordering & Proximity:
- Articles are mapped to trends based on their embedding distance to the trend's centroid.
- Returned articles are ordered by proximity/similarity (distance) first (most relevant posts first), and then by overall article engagement score.
- Supports pagination, each page will contain 10 articles by default.
get/api/trends/{trend_id_or_slug}/articles
Path parameters
trend_id_or_slugstring required
The ID or slug of the trend to retrieve articles for.
Query parameters
pageinteger
Pagination page
per_pageinteger
Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable.
Response
A List of Articles in the Trend