
How to Build a Trending Topics Dashboard with One API Call — Google, Reddit, HN, GitHub, Product Hunt
Every content creator, marketer, and indie hacker needs to know what's trending right now . But scraping Google Trends, Reddit, Hacker News, GitHub, and Product Hunt individually? That's 5 different APIs, 5 auth flows, and a maintenance nightmare. I built a single API that aggregates trending topics from all five sources in one call. It runs on Cloudflare Workers (300+ edge locations, sub-50ms latency) and costs $0 to try. What You Get One GET /trends request returns: Google Trends — top daily & real-time searches Reddit — r/all hot posts Hacker News — front page stories with scores GitHub — trending repos (daily/weekly) Product Hunt — daily top products Each item includes: title, URL, source, score/votes, and timestamp. Quick Start Python — Get All Trending Topics import requests url = " https://trends-api.p.rapidapi.com/trends " headers = { " X-RapidAPI-Key " : " YOUR_KEY " , " X-RapidAPI-Host " : " trends-api.p.rapidapi.com " } response = requests . get ( url , headers = headers ) d
Continue reading on Dev.to Webdev
Opens in a new tab




