AgentAPIGate
Home/APIs/GitHub Trending API
No-Login Live Sandbox · Real Daily/Weekly Trending · Star Velocity + HN

GitHub Trending API & Star Velocity Explorer

Query real-time daily, weekly, and monthly GitHub Trending leaderboards, newly broken-out repositories, or per-repo star acceleration with release cadence and 30-day Hacker News discussions — in clean REST JSON or compact Agent Markdown.

1. Endpoint & Mode
2. Window
Output Format
Endpoint: github.repos.trending$0.00 Playground (10/hr/IP)
curl -s "https://api.agentapigate.ai/v1/github/repos/trending?mode=trending&since=daily&limit=15&format=compact" \
  -H "Authorization: Bearer $AAG_API_KEY"
Live API Receipt & OutputClick “Run Live” above to query GitHub live without an account
Need higher RPM, batch cron jobs, or remote MCP?
Get Free $0.25 Key (No Card)

How do I fetch the official GitHub Trending page as clean JSON or Markdown?

Call GET /v1/github/repos/trending?mode=trending&since=daily&format=md (or compact) with your API key or run it above for free. AgentAPIGate parses live GitHub Trending HTML into clean stars_in_window, total_stars, language, and built_by fields with 15-minute Redis caching.

What is the difference between mode=trending and mode=breakout?

mode=trending returns the official GitHub Trending board rankings (including established repos surging today). mode=breakout searches newly created GitHub repositories filtered by topic, keyword, language, and star bounds—with automatic Trending fallback when anonymous limits tighten.

How does github.repo.star_velocity avoid fabricated star numbers?

AgentAPIGate combines official Trending daily/weekly/monthly board gains, first-party PostgreSQL daily snapshots, releases.atom tags, and 30-day Hacker News Algolia discussions. If a non-trending repo is sampled for the very first time without history yet, stars_24h is returned honestly as null alongside lifetime_avg_stars_per_day.

Can Claude Code, Cursor, or OpenClaw call these GitHub endpoints directly?

Yes. Append ?format=md to cut context token usage by ~60-85%, or connect our Remote Streamable HTTP MCP Hub at mcp.agentapigate.ai/mcp to invoke github_repos_trending and github_repo_star_velocity directly.