我建议使用非官方的
Github Contributions API
位于
this site
下面是一个例子
async function getContributions(username) {
var data = await (await fetch(`https://corsanywhere.herokuapp.com/https://github-contributions-api.deno.dev/${username}.json`)).json();
console.log(data.totalContributions)
}
getContributions("octocat") // Returns 0, as Octocat has zero contributions