logoPandorLabs
social data api

GitHub

Users, repositories, pull requests, activity, followers, contributions and trending lists.

User profile1 request
Repositories of a user1 request
Pull requests by a user1 request
Public activity1 request
Followers of a user1 request
Accounts a user follows1 request
Contribution calendar1 request
Repository details1 request
Trending repositories1 request
Trending developers1 request
GET/v1/github/user

User profile

1 request

Returns a GitHub account's public profile: display name, avatar, bio, location, company, blog link, follower and following counts, number of public repos, and when the account was created and last updated. Identify the user by handle or by their full profile URL.

Query parameters

handle
string
GitHub username of the account to look up.
url
string
Profile link, for example https://github.com/torvalds.
curl "https://api.pandorlabs.com/v1/github/user" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "id": 1024025,
  "node_id": "MDQ6VXNlcjEwMjQwMjU=",
  "login": "torvalds",
  "name": "Linus Torvalds",
  "company": "Linux Foundation",
  "blog": "",
  "location": "Portland, OR",
  "email": null,
  "bio": null,
  "twitter_username": null,
  "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
  "url": "https://github.com/torvalds",
  "type": "User",
  "site_admin": false,
  "public_repos": 11,
  "public_gists": 1,
  "followers": 303973,
  "following": 0,
  "created_at": "2011-09-03T15:26:22Z",
  "updated_at": "2026-01-13T07:10:05Z"
}
GET/v1/github/user/repositories

Repositories of a user

1 request

Lists the public repositories of a GitHub user. For each one you get its description, primary language, topics, star and fork counts, license, default branch, visibility, and timestamps. Identify the user by handle or URL. Results are paginated with cursor, and GitHub's own type, sort, and direction options are passed through.

Query parameters

handle
string
GitHub username whose repositories you want.
url
string
Profile link, for example https://github.com/kentcdodds.
type
string
Which repositories to include; owner by default, or all or member.

ownerallmember

sort
string
Order by created, updated, pushed, or full_name; updated by default.

createdupdatedpushedfull_name

direction
string
asc or desc ordering.

ascdesc

cursor
number
Page cursor taken from the previous response; starts at 1.
curl "https://api.pandorlabs.com/v1/github/user/repositories" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "repositories": [
    {
      "id": 320393623,
      "node_id": "MDEwOlJlcG9zaXRvcnkzMjAzOTM2MjM=",
      "name": "kentcdodds.com",
      "full_name": "kentcdodds/kentcdodds.com",
      "owner": {
        "id": 1500684,
        "login": "kentcdodds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=4",
        "url": "https://github.com/kentcdodds",
        "type": "User"
      },
      "private": false,
      "url": "https://github.com/kentcdodds/kentcdodds.com",
      "description": "My personal website",
      "fork": false,
      "homepage": "https://kentcdodds.com",
      "language": "MDX",
      "forks_count": 654,
      "stars_count": 2485,
      "watchers_count": 2485,
      "size": 53677,
      "default_branch": "main",
      "open_issues_count": 4,
      "topics": [
        "kentcdodds"
      ],
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION"
      },
      "archived": false,
      "disabled": false,
      "visibility": "public",
      "pushed_at": "2026-05-20T20:16:24Z",
      "created_at": "2020-12-10T21:24:32Z",
      "updated_at": "2026-05-21T16:43:37Z"
    }
  ],
  "cursor": 2
}
GET/v1/github/user/pull-requests

Pull requests by a user

1 request

Lists the public pull requests a GitHub user has opened, based on GitHub's public search. Pass the user's handle, and optionally since and until (YYYY-MM-DD) to bound the creation date. Newest pull requests come first, each with its url, title, state, created_at and repository.

Query parameters

handle
stringrequired
GitHub username whose pull requests you want.
since
string
Earliest creation date to include, as YYYY-MM-DD.
until
string
Latest creation date to include, as YYYY-MM-DD.
cursor
number
Page cursor taken from the previous response; starts at 1.
curl "https://api.pandorlabs.com/v1/github/user/pull-requests?handle=torvalds" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "pull_requests": [
    {
      "title": "Garmin: Report correct local time offset",
      "repo": "subsurface/libdc",
      "state": "closed",
      "created_at": "2024-12-26T20:13:25Z",
      "url": "https://github.com/subsurface/libdc/pull/69"
    }
  ],
  "cursor": 2,
  "has_more": false
}
GET/v1/github/user/activity

Public activity

1 request

Reads the contribution activity timeline from a GitHub user's public profile. The activity array holds one month per response, and the current year is used unless you set year. Send the previous response's cursor to step back month by month through that year.

Query parameters

handle
string
GitHub username.
url
string
Profile link, for example https://github.com/kentcdodds.
year
number
Year whose activity you want; the current year when omitted.
cursor
number
Cursor from the previous response; moves one month earlier within the chosen year.
curl "https://api.pandorlabs.com/v1/github/user/activity" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "username": "kentcdodds",
  "year": 2026,
  "month": "May 2026",
  "activity": [
    {
      "summary": "Created 186 commits in 13 repositories",
      "details": [
        {
          "text": "kentcdodds/kody 144 commits",
          "repository": {
            "text": "kentcdodds/kody",
            "url": "https://github.com/kentcdodds/kody"
          },
          "links": [
            {
              "text": "kentcdodds/kody",
              "url": "https://github.com/kentcdodds/kody"
            }
          ],
          "language": null,
          "date_text": null,
          "date_description": null
        }
      ]
    }
  ],
  "no_activity": false,
  "message": null,
  "cursor": 2
}
GET/v1/github/user/followers

Followers of a user

1 request

Lists the public followers of a GitHub user. Each entry has the login, avatar, profile URL, account type, and GitHub IDs. Identify the user by handle or full profile URL, and paginate with a cursor.

Query parameters

handle
string
GitHub username whose followers you want.
url
string
Profile link, for example https://github.com/torvalds.
cursor
number
Page cursor taken from the previous response; starts at 1.
curl "https://api.pandorlabs.com/v1/github/user/followers" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "followers": [
    {
      "id": 206,
      "node_id": "MDQ6VXNlcjIwNg==",
      "login": "sprsquish",
      "avatar_url": "https://avatars.githubusercontent.com/u/206?v=4",
      "url": "https://github.com/sprsquish",
      "type": "User",
      "site_admin": false
    }
  ],
  "cursor": 2
}
GET/v1/github/user/following

Accounts a user follows

1 request

Lists the public accounts a GitHub user follows. Each entry has the login, avatar, profile URL, account type, and GitHub IDs. Identify the user by handle or full profile URL, and paginate with a cursor.

Query parameters

handle
string
GitHub username.
url
string
Link to the user's GitHub profile.
cursor
number
Page cursor taken from the previous response; starts at 1.
curl "https://api.pandorlabs.com/v1/github/user/following" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "following": [
    {
      "id": 4303,
      "node_id": "MDQ6VXNlcjQzMDM=",
      "login": "jdalton",
      "avatar_url": "https://avatars.githubusercontent.com/u/4303?v=4",
      "url": "https://github.com/jdalton",
      "type": "User",
      "site_admin": false
    }
  ],
  "cursor": 2
}
GET/v1/github/user/contributions

Contribution calendar

1 request

Returns a user's public GitHub contribution graph for one year: the yearly total plus a count and intensity level for every day. Identify the user by handle or full profile URL. Without year, the current year is returned.

Query parameters

handle
string
GitHub username.
url
string
Link to the user's GitHub profile.
year
number
Year of the graph; the current year when omitted.
curl "https://api.pandorlabs.com/v1/github/user/contributions" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "contributions": {
    "username": "torvalds",
    "year": 2026,
    "total_contributions": 1214,
    "days": [
      {
        "date": "2026-01-01",
        "contribution_count": 4,
        "color": null,
        "intensity": 1
      }
    ]
  }
}
GET/v1/github/repository

Repository details

1 request

Returns public metadata for a single GitHub repository given its full URL. The response covers the owner, description, primary language, topics, license, star and fork counts, open issue count, default branch, visibility, and timestamps.

Query parameters

url
stringrequired
Full link to the GitHub repository.
curl "https://api.pandorlabs.com/v1/github/repository?url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "repository": {
    "id": 2325298,
    "node_id": "MDEwOlJlcG9zaXRvcnkyMzI1Mjk4",
    "name": "linux",
    "full_name": "torvalds/linux",
    "owner": {
      "id": 1024025,
      "login": "torvalds",
      "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
      "url": "https://github.com/torvalds",
      "type": "User"
    },
    "private": false,
    "url": "https://github.com/torvalds/linux",
    "description": "Linux kernel source tree",
    "fork": false,
    "homepage": "",
    "language": "C",
    "forks_count": 62423,
    "stars_count": 233979,
    "watchers_count": 233979,
    "size": 6298741,
    "default_branch": "master",
    "open_issues_count": 3,
    "topics": [],
    "license": {
      "key": "other",
      "name": "Other",
      "spdx_id": "NOASSERTION"
    },
    "archived": false,
    "disabled": false,
    "visibility": "public",
    "pushed_at": "2026-05-21T16:23:10Z",
    "created_at": "2011-09-04T22:48:12Z",
    "updated_at": "2026-05-21T19:31:40Z"
  }
}