{"uid":"cap_AenbyVsGJPckr_QurTCDO","slug":"x402-github-repository-stats-analytics-api-e2716597","name":"x402 GitHub Repository Stats & Analytics 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/repo-stats","method":"GET","headers":{},"bodySchema":{"type":"object","required":["repo","owner"],"properties":{"repo":{"type":"string","description":"Repository name"},"owner":{"type":"string","description":"Repository owner/organization"}}},"responseSchema":{"type":"object","properties":{"repo":{"type":"string"},"forks":{"type":"integer"},"stars":{"type":"integer"},"analysis":{"type":"object","properties":{"health_score":{"type":"integer","maximum":100,"minimum":0},"activity_level":{"enum":["very_active","active","moderate","dormant"],"type":"string"},"recommendation":{"enum":["healthy","moderate","risky"],"type":"string"}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3IWIOvTOxEh-2pVQMBq9X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 repository metrics including stars, forks, health score, activity level, and a risk recommendation for a given owner/repo pair.","exampleAgentPrompt":"Can you pull up the GitHub repo stats and health score for the vercel/next.js repository — I want to know the star count, fork count, activity level, and whether it's considered healthy or risky?","exampleUseCases":[{"title":"Open source dependency due diligence","prompt":"Before we add this library to our project, can you check the GitHub stats for huggingface/transformers — specifically the health score and activity level so I can see if it's actively maintained?"},{"title":"Comparing competing GitHub projects","prompt":"I'm choosing between two charting libraries. Can you get me the GitHub repo analytics for chartjs/Chart.js — stars, forks, health score, and recommendation?"},{"title":"Monitoring a startup's repo vitality","prompt":"Can you check the GitHub stats for supabase/supabase and tell me the current star count, fork count, and whether their repo is flagged as healthy, moderate, or risky?"}],"resultDescription":"Returns a JSON object with the repository name, integer star count, integer fork count, and an analysis object containing a 0-100 health score, an activity level enum (very_active, active, moderate, dormant), and a risk recommendation (healthy, moderate, or risky).","failureModes":["Missing required 'owner' or 'repo' parameters returns a 400 error","Non-existent or private GitHub repository returns a 404 or empty data","Payment failure or missing x402 USDC authorization returns a 402 Payment Required","Rate limits from the underlying GitHub API may cause transient 503 errors","Newly created repositories with no activity may return a very low health score and dormant status"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured health and activity assessment of a specific GitHub repository — particularly when you want a synthesized health_score and recommendation rather than raw API data. Useful for dependency vetting, due diligence workflows, or agent-driven open source research. Prefer this over scraping GitHub directly when you need a pay-per-call, no-subscription model via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:45.596Z","isFirstParty":false}