GitHub

GitHub Repository API

GitHub repo — stars, real watchers (subscribers), openIssuesAndPrs, license, parent when fork (1 credit).

Pass a repository URL or owner/name and get GitHub REST /repos/{owner}/{repo} as camelCase JSON: description, stars, forks, watchers (subscribers_count — people notified of activity; not the legacy watchers_count star alias), openIssuesAndPrs (GitHub's open_issues_count = open issues + open PRs), primary programming language, homepage / license / licenseName (always present; SPDX NOASSERTION → license null with licenseName kept), topics, parent when isFork, size, visibility, hasIssues/hasDiscussions, ownerType (User|Organization), and timestamps. This card is a superset of each github/repositories row (list omits watchers and parent). Flat 1 credit. For the curated trending page (stars gained today/this week/month), use github/trending-repositories.

Docs: https://captapi.com/apis/github-repository

get/v1/github/repository

Request

  • Base URL: https://api.captapi.com
  • URL: https://api.captapi.com/v1/github/repository
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Query parameters

repostring required

Repository URL or owner/name, e.g. torvalds/linux or https://github.com/torvalds/linux.

cacheboolean

Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Response

Success. The data object for this endpoint.

successunknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.