Pushbuild

GitHub Repo Stats API: Stars, Forks, Releases, Contributors

Stats for GitHub repositories: stars, forks, watchers, open issues, languages, topics, license, latest release, contributor count and last push. List repos, pull every repo of a user or org, or search GitHub. Official GitHub REST API.

$0.80 per 1,000 repositorys

Get an API key

What it returns

Bulk statistics for public GitHub repositories from the official GitHub REST API. Three ways in: - **repos**: a list of `owner/name` or GitHub URLs - **owners**: every public repository of a user or organization, most recently pushed first - **search**: any GitHub repository search, e.g. `vector database language:rust stars:>500`

| field | meaning |. |---|---|. | `repo`, `url`, `description`, `homepage` | identity |. | `owner`, `ownerType` | user or organization |. | `stars`, `forks`, `watchers`, `openIssuesAndPRs` | counts |. | `language`, `languages` | main language and the share of code per language (%) |. | `topics`, `license` | topics and SPDX license id |. | `latestRelease` | tag, name and publish time of the latest release |. | `contributors` | number of contributors, anonymous included |. | `createdAt`, `pushedAt`, `updatedAt` | activity dates |. | `isFork`, `isArchived`, `defaultBranch`, `sizeKb` | repository state |.

Request

POST https://api.pushbuild.com/github-repo-stats/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
reposlist of stringsowner/name or GitHub URLs.
ownerslist of stringsEvery public repo of these users or orgs, most recently pushed first.
searchstringGitHub repository search, e.g. 'vector database language:rust stars:>500'. Up to 1,000 results.
sortstring: stars, forks, updatedOrder of search results. Default: "stars".
includeForksbooleanFor owners: include forked repos. Default: false.
includeDetailsbooleanThree extra GitHub calls per repo. Turn off for faster runs without a token. Default: true.
maxReposintegerCap on repositories returned. Default: 30.
githubTokenstringA free personal access token with no scopes raises GitHub's limit from 60 to 5,000 requests an hour.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/github-repo-stats/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"repos": ["fastapi/fastapi", "https://github.com/pydantic/pydantic"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.80 per 1,000 repositorys. No charge for errors or empty searches.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.