Skip to main content

GitHub

Base URL: https://drain.lat/api/v1/github
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 a user’s public repositories sorted by last updated.
string
required
The GitHub username.
string
GitHub username.
array
number
Total repos returned.
Response
Returns up to 30 repositories per request.
Get a user’s GitHub followers.
string
required
The GitHub username.
Response
Returns up to 30 followers.
Get the list of users a GitHub user follows.
string
required
The GitHub username.
Response
Returns up to 30 results.
Get the public organizations a GitHub user belongs to.
string
required
The GitHub username.
Response
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 the last 20 commits for a repository.
string
required
Repository owner.
string
required
Repository name.
string
Repository owner.
string
Repository name.
array
number
Number of commits returned.
Response
Search GitHub repositories.
string
required
Search query.
string
Sort by stars, forks, or updated. Default stars.
string
The search query used.
array
number
Total matching results on GitHub.
Response