{"uid":"cap_onG-rFmwzilz8wmHwQfE5","slug":"codecov-stats-for-public-github-repos-f151de2d","name":"Codecov Stats for Public GitHub Repos","description":"Codecov code coverage totals for a public GitHub repository: coverage percentage, lines hit and missed, files, branches and the branch Codecov tracks. Public repos only; per-file detail is not included.","url":"https://api.fadeandco.workers.dev/api/dev/codecov-stats?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["owner","repo"],"properties":{"repo":{"type":"string","description":"GitHub repository name, e.g. codecov-action"},"owner":{"type":"string","description":"GitHub owner (user or org), e.g. codecov"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"repo":"codecov-action","files":4,"owner":"codecov","branch":"master","source":"https://api.codecov.io/api/v2/github/codecov/repos/codecov-action/","private":false,"branches":57,"language":"python","linesHit":186,"checkedAt":"2026-10-23T09:35:53.010Z","updatedAt":"2026-09-21T04:23:52.210443Z","linesTotal":195,"linesMissed":9,"coveragePercent":95.38}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2nXg2J8xJDezVA0dxadNz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Codecov code coverage summary (coverage %, lines hit/missed, files, branches) for a public GitHub repository.","exampleAgentPrompt":"What's the Codecov code coverage for the codecov/codecov-action GitHub repo — give me the coverage percentage, lines hit and missed, and which branch it's tracking.","exampleUseCases":[{"title":"Evaluating open source library test quality","prompt":"Can you pull the Codecov coverage stats for the psf/requests GitHub repo? I want to know the coverage percentage and how many lines are hit vs missed before I decide to use it."},{"title":"CI dashboard for a team's repo","prompt":"Grab the latest Codecov summary for numpy/numpy on GitHub — I need the coverage percent, total lines, files tracked, and which branch Codecov is watching."},{"title":"Comparing test coverage across projects","prompt":"What does Codecov say about the coverage for pallets/flask on GitHub? Show me the percentage covered, lines hit, lines missed, and branch count."}],"resultDescription":"A JSON object containing: repository owner and name, coverage percentage (e.g. 95.38%), total lines, lines hit, lines missed, number of files, number of branches, the branch Codecov tracks, detected programming language, whether the repo is private, Codecov data source URL, and timestamps for when coverage was last checked and updated.","failureModes":["Private repository requested — endpoint only supports public repos, will return an error or empty data","Invalid or non-existent GitHub owner/repo combination — Codecov has no record, returns error","Repository exists on GitHub but has never been configured with Codecov — no coverage data available","Rate limiting or upstream Codecov API unavailability causes timeout or 5xx response","Missing required query parameters (owner or repo) results in a 400/422 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured coverage summary for a public GitHub repository and don't need per-file breakdown. It's ideal for agents performing code quality assessments, comparing open source projects, or building CI dashboards. It proxies Codecov's public API so it's best when Codecov integration is already set up on the target repo.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:32:41.840Z","isFirstParty":false,"canonicalSlug":"codecov-stats-for-public-github-repos-f151de2d"}