Skip to content

Latest commit

 

History

History
94 lines (73 loc) · 1.77 KB

File metadata and controls

94 lines (73 loc) · 1.77 KB

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

{
  "params": {
    "language": "rust"
  }
}

Response:

{
  "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

{
  "params": {
    "language": "rust"
  }
}

Response:

{
  "error": null,
  "result": {
    "code": "SUCCESS",
    "list": [
      {
        "username": "ClementTsang",
        "rank": 1
      },
      {
        "username": "antonkomarev",
        "rank": 2
      }
    ]
  }
}

License

About CyberCog

CyberCog is a Social Unity of enthusiasts. Research the best solutions in product & software development is our passion.

CyberCog