GitHub
Base URL:https://drain.lat/api/v1/github
GET /profile/:username
GET /profile/:username
Fetch a GitHub user’s public profile.
string
required
The GitHub username to look up.
number
GitHub user ID.
string
GitHub username.
string
Display name.
string
Profile bio.
string
Company listed on profile.
string
Location listed on profile.
string
Public email address.
string
Personal website URL.
string
Avatar image URL.
string
Link to GitHub profile.
number
Number of followers.
number
Number of accounts followed.
number
Number of public repositories.
number
Number of public gists.
string
Account creation date.
string
Last profile update date.
Response
GET /profile/:username/repos
GET /profile/:username/repos
GET /profile/:username/followers
GET /profile/:username/followers
Get a user’s GitHub followers.
string
required
The GitHub username.
Response
Returns up to 30 followers.
GET /profile/:username/following
GET /profile/:username/following
Get the list of users a GitHub user follows.
string
required
The GitHub username.
Response
Returns up to 30 results.
GET /profile/:username/orgs
GET /profile/:username/orgs
GET /repo/:owner/:repo
GET /repo/:owner/:repo
Get info for a single GitHub repository.
string
required
Repository owner (user or org).
string
required
Repository name.
number
Repository ID.
string
Repository name.
string
Full name including owner.
string
Repository description.
string
Primary language.
number
Star count.
number
Fork count.
number
Open issue count.
boolean
Whether the repo is private.
boolean
Whether the repo is a fork.
boolean
Whether the repo is archived.
string[]
Topic tags.
string
License identifier.
string
Default branch name.
object
Response
GET /repo/:owner/:repo/commits
GET /repo/:owner/:repo/commits
