GitHub API

Read a public GitHub profile or its README. Track releases for a public repository and check the download link for a file in its latest release.

Use Cases

Build a release feed

Send the repository owner and name to list its releases. Use the returned page number to continue through the release history.

Check which version a project calls latest

Send a repository owner and name to get the tag and destination of GitHub’s latest-release link. Use the tag to check whether your release notes or download links need updating.

Check a release download link

Send a repository and an exact filename such as jq-linux-amd64. The API checks whether the latest release includes that file and returns its versioned GitHub download link.

Enrich a public developer directory

Look up an account by username and read its public profile and profile README when available.

API Endpoints

Available endpoints for the GitHub API

POST /v1/github/profile

GitHub Profile

Read public profile metadata or page through repositories and stars.

Parameters

limit integer
page integer
tab string
username string required
View endpoint documentation
POST /v1/github/profile-readme

GitHub Profile README File

Read the root README.md in the public repository with the same name as a GitHub account. Returns null when the file is unavailable publicly.

Parameters

username string required
View endpoint documentation
POST /v1/github/releases

GitHub Releases

List published releases and their visible assets. Use next_page to continue.

Parameters

limit integer
owner string required
page integer
repo string required
View endpoint documentation
POST /v1/github/latest-release-link

GitHub Latest Release Link

Resolve the tag and link GitHub designates as latest for a public repository.

Parameters

owner string required
repo string required
View endpoint documentation
POST /v1/github/latest-release-asset

GitHub Latest Release Asset

Check whether an exact asset filename is attached to the release GitHub designates as latest.

Parameters

asset_name string required
owner string required
repo string required
View endpoint documentation

Frequently Asked Questions

Common questions about the GitHub API

How do I get the next page of releases?

Pass next_page as page with the same repository and limit. A null value indicates the end.

Where does the profile README come from?

The lookup reads the public root README.md in the repository named after the account. It returns Markdown and the file size, with null for both when GitHub reports that the file is unavailable.

How does GitHub choose the latest release?

The result follows the project’s GitHub latest-release designation. It can include an alpha tag. If GitHub sends the link to the general releases page, the tag and release URL are null.

What happens if the latest release lacks the asset?

When GitHub identifies a release and the file is missing, available is false and download_url is null. A repository with no latest release returns a source error.

Start scraping GitHub

Get your free API key