https://github.com/antonkomarev/github-trending-api
GitHub Trending API is a self-hosted Rust microservice that converts GitHub trending repositories & developers HTML pages to JSON RPC like API.
https://github.com/antonkomarev/github-trending-api
github-trend github-trend-api github-trending github-trending-api github-trending-developers github-trending-repositories
Last synced: 5 months ago
JSON representation
GitHub Trending API is a self-hosted Rust microservice that converts GitHub trending repositories & developers HTML pages to JSON RPC like API.
- Host: GitHub
- URL: https://github.com/antonkomarev/github-trending-api
- Owner: antonkomarev
- License: mit
- Created: 2024-11-07T11:44:51.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-24T17:44:19.000Z (over 1 year ago)
- Last Synced: 2025-04-02T13:48:54.543Z (12 months ago)
- Topics: github-trend, github-trend-api, github-trending, github-trending-api, github-trending-developers, github-trending-repositories
- Language: Rust
- Homepage: https://komarev.com
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Trending API
## Introduction
GitHub Trending API is a self-hosted Rust microservice that converts GitHub trending repositories & developers HTML pages to JSON RPC like API.
## Project scope
1. There are no plans to provide cloud version of the service.
2. It provides as minimal information as possible.
For example, we intentionally didn't added stars count to repositories list,
because this data may be fetched directly from the GitHub REST/GraphQL APIs.
## Usage
### Get trending repository list
`POST /v1/listTrendingRepository`
```json
{
"params": {
"language": "rust"
}
}
```
Response:
```json
{
"error": null,
"result": {
"code": "SUCCESS",
"list": [
{
"full_name": "rust-lang/rust",
"rank": 1
},
{
"full_name": "antonkomarev/github-trending-api",
"rank": 2
}
]
}
}
```
### Get trending developer list
`POST /v1/listTrendingDeveloper`
```json
{
"params": {
"language": "rust"
}
}
```
Response:
```json
{
"error": null,
"result": {
"code": "SUCCESS",
"list": [
{
"username": "ClementTsang",
"rank": 1
},
{
"username": "antonkomarev",
"rank": 2
}
]
}
}
```
## License
- `GitHub Trending API` project is open-sourced software licensed under the [MIT license](LICENSE) by [Anton Komarev].
## About CyberCog
[CyberCog] is a Social Unity of enthusiasts. Research the best solutions in product & software development is our passion.
- [Follow us on Twitter](https://twitter.com/cybercog)
[Anton Komarev]: https://komarev.com
[CyberCog]: https://cybercog.su
