コンテンツにスキップ

GitHubリポジトリをスターしたユーザーの一覧

GitHub リポジトリをスターしたユーザーの一覧を表示するには、/stargazersを URL に付与する。

https://github.com/OWNER/REPO -> https://github.com/OWNER/REPO/stargazers

https://github.com/microsoft/vscode であれば https://github.com/microsoft/vscode/stargazers

API

スターしたユーザーを取得

Terminal window
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/OWNER/REPO/stargazers

ユーザーがスターしたリポジトリを取得

ブラウザで、https://github.com/USERNAME?tab=starsにアクセスしても OK 牧場。

Terminal window
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/users/USERNAME/starred