Free trial: 3 of 3 test requests left. Get your own API key with 100 free credits. No credit card.
Get a trending Dev.to topic with its top posts.
Endpoint
/v1/dev-to/trend
Query
Numeric trend id.
Trend slug to look up, e.g. `ghost-in-the-machine-ai-legacy-code`.
`articles` adds a page of the trend's posts (`page` and `limit` apply to them).
Page number (1-1000). Default: 1. A full page may be followed by an empty page when the list ends exactly at a page boundary.
Rows per page (1-1000). Default: 30. A page is the same price at any size.
const response = await fetch( "https://api.socialfetch.dev/v1/dev-to/trend?slug=ghost-in-the-machine-ai-legacy-code", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);