Skip to content

Bug in github api #124520

May 18, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

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}`);

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Thecode764
Comment options

You must be logged in to vote
3 replies
@davevad93
Comment options

@davevad93
Comment options

@Thecode764
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly API and Webhooks Discussions and conversations related to APIs or Webhooks
2 participants