Github trending
This project is a GitHub trending API power by Python Tornado. It was deployed on Heroku.
https://trendings.herokuapp.com
All the requests main adrress is this:Get the trending repository
request address like this:
/repo
- If the language contains '#',you must use '-shuo' to replace it.
Parameters
Name | Type | Description |
---|---|---|
lang | string | optional, get method parameter, the language of trending repository |
since | string | optional,get method parameter,default is daily,others is weekly,monthly |
For example request this address: https://trendings.herokuapp.com/repo?lang=java&since=weekly
return:
//status code: 201
{
"count": 25,
"msg": "suc",
//trending repositories
"items": [
{
//the avatar link of contributors
"avatars": [
"https://avatars0.githubusercontent.com/u/16903644?v=3&s=40",
"https://avatars2.githubusercontent.com/u/8622362?v=3&s=40",
"https://avatars0.githubusercontent.com/u/10773353?v=3&s=40",
"https://avatars3.githubusercontent.com/u/6392550?v=3&s=40",
"https://avatars1.githubusercontent.com/u/3837836?v=3&s=40"
],
//repository link
"repo_link": "https://github.com/kdn251/interviews",
//repository desctiption
"desc": "Everything you need to know to get the job.",
//repository name
"repo": "kdn251/interviews",
//the repository stars count
"stars": "5,772",
//the repository forks count
"forks": "539",
//the language of repository
"lang": "Java",
//the repository stars count for tody or this week or this month
"added_stars": "4,591 stars this week"
},
.
.
.
]
}
Get the trending developers
request address like this:
/developer
- If the language contains '#',you must use '-shuo' to replace it.
Parameters
Name | Type | Description |
---|---|---|
lang | string | optional, get method parameter, maybe it is the major language of the developer |
since | string | optional,get method parameter,default is daily,others is weekly,monthly |
For example request this address: https://trendings.herokuapp.com/developer?lang=java&since=weekly
return:
//status code: 201
{
"count": 25,
"msg": "suc",
//the trending developers
"items": [
{
//the username in GitHub of this developer
"user": "google",
//the main page in GitHub of this developer
"user_link": "https://github.com/google",
//the full name of this developer
"full_name": "(Google)",
//the avatar url of the developer
"developer_avatar": "https://avatars1.githubusercontent.com/u/1342004?v=3&s=96"
},
.
.
.
]
}
Get all the all the avialiable trending languages in GitHub.
For example,request this address: https://trendings.herokuapp.com/lang
return:
//status code: 201
{
"count": 464,
"items": [
"1C-Enterprise",
"ABAP",
"ABNF",
"ActionScript",
"Ada",
.
.
.
"YANG",
"Zephir",
"Zimpl"
],
"msg": "suc"
}
Exception
If the server does not get the resources,the response will be that:
//status code: 404
{
"msg": "Unavailable.",
"count":0,
"items": []
}
Maintenance
If some of the interface can not be used,please contact me with email:[email protected]
,I will modify the problem as soon as possible,thank you!