These docs are for v4.6. Click to read the latest docs for v2023.

🚧

Codecov API v1 deprecation in progress

Please use the Codecov API v2. Documentation can be found here.

List repositories

GET /api/gh/:owner
{
  "repos": [
     {
      "fork": null,
      "name": "repo-name",
      "language": null,
      "cache": {
        "yaml": "codecov.yml",
        "commit": {
          "author": {
            "username": "<redacted>",
            "service_id": "<redacted>",
            "name": "<redacted>",
            "service": "<redacted>",
            "email": "<redacted>"
          },
          "timestamp": "2018-10-08T02:50:34",
          "totals": [
            //array of coverage totals
          ],
          "commitid": "<commit-id>",
          "ci_passed": null,
          "message": "Commit Message"
        }
      },
      "activated": true,
      "private": true,
      "updatestamp": "1970-01-01 00:00:00.000000+00:00",
      "latest_commit": "1970-01-01 00:00:00",
      "branch": "<branch>",
      "coverage": 100.00,
      "upload_token": "<redacted>",
      "repoid": "<redacted>"
    }
  ]
}

Get a single repository

GET /api/gh/:owner/:repo