Bug in github api #124520
-
Select Topic AreaBug BodyHi i using github api for get user followers github api cannot show followers for some users |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @Thecode764 , I took a look at your source code, the problem is that the endpoint only returns at most the first 30 followers by default, try changing it to this: fetch(`https://api.github.com/users/${nameParam}`)
.then(response => response.json())
.then(data => {
followerCount = data.followers;
console.log(`${followerCount}`); |
Beta Was this translation helpful? Give feedback.
-
@davevad93 |
Beta Was this translation helpful? Give feedback.
-
ok ok thanks |
Beta Was this translation helpful? Give feedback.
Hi @Thecode764 ,
I took a look at your source code, the problem is that the endpoint only returns at most the first 30 followers by default, try changing it to this: