A simple API of Github.
$ docker run --rm -it -p 8080:8000 ddotjs/github-missing-api
Receive popular languages and all languages.
URL Endpoint:
/trending/languages
Response:
[
{
"id": "1c-enterprise",
"name": "1C Enterprise"
},
{
"id": "abap",
"name": "ABAP"
},
{
"id": "abnf",
"name": "ABNF"
},
{
"id": "actionscript",
"name": "ActionScript"
}
]
Receive an array of trending repositories.
URL Endpoint:
/trending/repositories?language=go&since=weekly
Parameters:
language
: optional, list trending repositories of certain programming languages.since
: optional, default todaily
, possible values:daily
,weekly
andmonthly
.
Response:
[
...
{
"author": "google",
"name": "gvisor",
"avatar": "https://github.com/google.png",
"url": "https://github.com/google/gvisor",
"description": "Container Runtime Sandbox",
"language": "Go",
"languageColor": "#3572A5",
"stars": 3320,
"forks": 118,
"currentPeriodStars": 1624,
"builtBy": [
{
"href": "https://github.com/viatsko",
"avatar": "https://avatars0.githubusercontent.com/u/376065",
"username": "viatsko"
}
]
}
...
]
Receive an array of trending developers.
URL Endpoint:
/trending/developers?language=javascript&since=weekly
Parameters:
language
: optional, list trending repositories of certain programming languages.since
: optional, default todaily
, possible values:daily
,weekly
andmonthly
.
Response:
[
{
"username": "google",
"name": "Google",
"type": "organization",
"url": "https://github.com/google",
"avatar": "https://avatars0.githubusercontent.com/u/1342004",
"repo": {
"name": "traceur-compiler",
"description": "Traceur is a JavaScript.next-to-JavaScript-of-today compiler",
"url": "https://github.com/google/traceur-compiler"
}
}
]
type
could beorganization
oruser
.