# Codecov Stats for Public GitHub Repos

> Codecov Stats for Public GitHub Repos is a paid API for AI agents from api.fadeandco.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns Codecov code coverage summary (coverage %, lines hit/missed, files, branches) for a public GitHub repository.

## Facts

- Endpoint: GET https://api.fadeandco.workers.dev/api/dev/codecov-stats?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codecov-stats-for-public-github-repos-f151de2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_onG-rFmwzilz8wmHwQfE5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability codecov-stats-for-public-github-repos-f151de2d
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codecov-stats-for-public-github-repos-f151de2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fadeandco.workers.dev](https://www.zero.xyz/host/api.fadeandco.workers.dev/llms.txt)
