The popular GitHub API repository

Do users have access to the "most popular" or "most viewed" repositories through the API? Like these pages.

github.com/popular/starred

github.com/languages/shell/most_watched

+5
source share
1 answer

No: this is user centric, i.e. you get a repo tagged by users or user.

And don't forget what you call “watch” now “star” .

What used to be called Watching now plays a major role.
This is basically a way to bookmark interesting repositories. Surveillance is a way to indicate that you want to receive notifications by email or network in the repository.


While the search GUI now provides “stars” as a sort order (see “ Get sorted github repository search results using the“ some ”attribute (number of forks or stars) , February 2013), the search API (port from V2 ) is the only one mentioning "stars" as a sort order for repositories .

GET /legacy/repos/search/:keyword?sort=stars 

(This should work for both public GH and GHE: GitHub for enterprise , but requires a keyword and does not follow page v3. This method returns up to 100 results per page, and pages can be retrieved using the start_page parameter.)

+5
source

Source: https://habr.com/ru/post/970548/


All Articles