APIs / Apps and media / GitHub

1 credit per call31 endpoints

GitHub API

Get GitHub data as structured JSON with one API key: repository, repository activity, repository branches and repository commits. Free credits every month.

GitHub
GET/v1/github/trending-developers?since=weekly
curl "https://api.perceptlayer.com/v1/github/trending-developers?since=weekly" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/github/trending-developers?since=weekly" \
  -H "X-API-Key: $API_KEY"

GitHub · 31 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters and an example request.

EndpointRequired parametersCost
GET/v1/github/repository
ownerrepo
1 credit
GET/v1/github/repository-activity
ownerrepo
1 credit
GET/v1/github/repository-branches
ownerrepo+2 optional
1 credit
GET/v1/github/repository-commits
ownerrepo+7 optional
1 credit
GET/v1/github/repository-compare-commits
ownerrepobasehead
1 credit
GET/v1/github/repository-compare-files
ownerrepobasehead
1 credit
GET/v1/github/repository-compare-patch
ownerrepobasehead
1 credit
GET/v1/github/repository-contributors
ownerrepo+3 optional
1 credit
GET/v1/github/repository-files
ownerrepo+2 optional
1 credit
GET/v1/github/repository-files-at-ref
ownerreporef
1 credit
GET/v1/github/repository-issues
ownerrepo+7 optional
1 credit
GET/v1/github/repository-issues-comments
numberownerrepo+2 optional
1 credit
GET/v1/github/repository-languages
ownerrepo
1 credit
GET/v1/github/repository-pulls
numberownerrepo
1 credit
GET/v1/github/repository-raw-file
ownerrepopathref
1 credit
GET/v1/github/repository-readme
ownerrepo+1 optional
1 credit
GET/v1/github/repository-releases
ownerrepo+2 optional
1 credit
GET/v1/github/repository-tags
ownerrepo+2 optional
1 credit
GET/v1/github/repository-tree
ownerrepo+2 optional
1 credit
GET/v1/github/trending-developers
none+3 optional
1 credit
GET/v1/github/trending-repositories
none+3 optional
1 credit
GET/v1/github/user
username
1 credit
GET/v1/github/user-activity
username
1 credit
GET/v1/github/user-contributions
username+1 optional
1 credit
GET/v1/github/user-counts
username
1 credit
GET/v1/github/user-events
username+2 optional
1 credit
GET/v1/github/user-followers
username+2 optional
1 credit
GET/v1/github/user-following
username+2 optional
1 credit
GET/v1/github/user-repositories
username+5 optional
1 credit
GET/v1/github/user-starred
username+2 optional
1 credit
GET/v1/github/user-tabs
username+2 optional
1 credit

Overview

About the GitHub API

What you can get

The GitHub API returns repository, repository activity, repository branches and repository commits as clean JSON. Each successful call costs one credit, and calls that fail are free.

Apps and mediaJSONRESTMCP

More apps and media APIs

Use cases

Track commits and activity on repositories you depend on

Use the GitHub API to track commits and activity on repositories you depend on

Research contributors and maintainers

Use the GitHub API to research contributors and maintainers

Compare changes between branches or commits

Use the GitHub API to compare changes between branches or commits

FAQ

Questions

How much does the GitHub API cost?

Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Do I need a separate key for GitHub?

No. One key works for every API in the catalogue.

Try the GitHub API with 1,000 free credits

No credit card. Failed calls are never billed.