JustSERPDocs
GitHub

GitHub Trending

GitHub's trending repositories or developers (github.com/trending), answered as the document with `trending_repositories`, or `trending_developers` for `type=developers`.

GET
/v1/github/trending

GitHub's trending repositories or developers (github.com/trending), answered as the document with trending_repositories, or trending_developers for type=developers. Nothing is required. search_parameters carries type even when it was left out; search_information is {}. A list may have fewer than 25 rows (12 to 25 seen) and an empty list is an answer. A language GitHub does not know is 404 profile_not_found. zero_retention is not handled.

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
type?string

What is listed.

Default"repositories"
Value in"repositories""developers"
language?string

GitHub's slug (python, c++, c#, jupyter-notebook) or its display name (Jupyter Notebook), turned into the slug; unknown for repositories with no detected language. Default: all.

since?string

The period the list is ranked over and current_period_stars counts.

Default"daily"
Value in"daily""weekly""monthly"
spoken_language?string

ISO 639-1 code (zh, en). Repositories only (400 with developers). GitHub classifies only older repositories, so these lists rarely overlap the unfiltered one.

Match^[A-Za-z]{2}$
sponsorable?boolean

true: the developers who take GitHub Sponsors (GitHub leaves them out of the default list). Developers only (400 with repositories).

Defaultfalse

Response Body

The list, as the document. When the page could not be parsed, the usual envelope.

application/json
  1. response

The first keys of a document-form answer. Unlike DocumentHead there is no search_information unless the engine has one (there is none for the AI engines, Events, Events Details, Facebook, Tripadvisor Place, Trending Now and the Apple engines' places).

search_metadata*
search_parameters*

The parameters the search ran with, defaults filled in; engine is the engine's name.

search_information?
trending_repositories?array<>
trending_developers?array<>
Example Request
curl -X GET 'https://api.justserp.com/v1/github/trending?type=repositories&language=python&since=weekly'
Example Response
{  "search_metadata": {    "id": "string",    "status": "Success",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {},  "trending_repositories": [    {      "position": 0,      "id": 0,      "name": "string",      "full_name": "string",      "owner": {        "login": "string"      },      "link": "string",      "description": "string",      "language": "string",      "language_color": "string",      "stars": 0,      "forks": 0,      "current_period_stars": 0,      "built_by": [        {          "login": "string",          "id": 0,          "link": "string",          "avatar_url": "string"        }      ],      "sponsors_link": "string",      "is_sponsorable": true    }  ],  "trending_developers": [    {      "position": 0,      "id": 0,      "login": "string",      "name": "string",      "link": "string",      "avatar_url": "string",      "sponsors_link": "string",      "is_sponsorable": true,      "popular_repository": {        "id": 0,        "name": "string",        "full_name": "string",        "link": "string",        "description": "string"      }    }  ]}