{"uid":"cap_xrjkJx0V7kE8t6rl6Byr3","slug":"x402-github-trending-repos-api-76a46f80","name":"x402 GitHub Trending Repos API","description":"Real-time GitHub trending repos, repo analytics, npm download stats, Hacker News stories, and DeFi yield data for AI agents. Pay per request via x402 (USDC on Base).","url":"https://myearnings-seven.vercel.app/trending","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"since":{"enum":["daily","weekly","monthly"],"type":"string","description":"Time period for trending"},"language":{"type":"string","description":"Filter by programming language (e.g. python, javascript)"}}},"responseSchema":{"type":"object","properties":{"count":{"type":"integer"},"period":{"type":"string"},"trending":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string","example":"facebook/react"},"forks":{"type":"integer","example":45000},"stars":{"type":"integer","example":220000},"growth":{"type":"string","example":"+5000 stars in weekly"},"language":{"type":"string","example":"JavaScript"},"created_at":{"type":"string","format":"date-time"},"description":{"type":"string","example":"A JavaScript library for building UIs"}}}},"fetched_at":{"type":"string","format":"date-time"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IoyqHrnRgCB423SOL1SxA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time GitHub trending repositories filtered by time period and programming language, paid per request via x402 USDC micropayments","exampleAgentPrompt":"What are the trending GitHub repositories this week, specifically ones written in Python?","exampleUseCases":[{"title":"Weekly open source discovery digest","prompt":"Can you pull the trending GitHub repos from the past week and give me a summary of what's hot — especially anything in JavaScript or TypeScript?"},{"title":"Language-specific repo monitoring","prompt":"I want to keep tabs on what's trending in Rust on GitHub — can you grab today's trending Rust repos and tell me which ones have the biggest star growth?"},{"title":"Tech radar and ecosystem pulse","prompt":"What are the most popular new GitHub repositories trending this month across all languages? I want to get a sense of what the dev community is excited about right now."}],"resultDescription":"A JSON object containing a count of trending repositories, the time period queried, a fetch timestamp, and an array of repo objects each with name, URL, star count, fork count, star growth string (e.g. '+5000 stars in weekly'), programming language, description, and creation date.","failureModes":["Invalid 'since' value returns malformed or empty results","Language filter with unsupported value may return empty trending array","Payment failure via x402 (insufficient USDC balance) blocks the request","Rate limiting or upstream GitHub API unavailability causes 503 or stale data","Network timeout on the Vercel serverless function"],"whenToPreferThis":"Choose this endpoint when you need real-time GitHub trending data with per-request micropayment billing (no subscription required), especially when building agents that monitor open source ecosystem trends, discover new libraries by language, or generate developer-focused content digests. Prefer this over scraping GitHub directly or using GitHub's own search API when you want a clean, pre-ranked trending feed with growth metrics already computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:40:10.216Z","isFirstParty":false}