threads / bug / 41319

Bug: Wrong GitHub API result when retrieving repository information

Subject: Bug: Wrong GitHub API result when retrieving repository information

## tl;dr

2 messages between Feb 3, 2016 and Feb 3, 2016.

replies: 1people: 2as markdown or json

Wert Alexander· Feb 3, 2016, 06:58 UTC · lore
Dear GitHub Developers,

I'm using the GitHub API for retrieving statistics like stargazers_count or watchers_count. Unfortunately, an API call to https://api.github.com/users/<USER>/repos returns (as JSON) the same number for stargazers_count and watchers_count, although on the Website the numbers are different.

Example: ... "size": 5279, "stargazers_count": 51, "watchers_count": 51, "language": "Java", ...

The actual count on the website, however,  are 51 for stargazers and 20 for watchers.
Any idea what could be the problem?
Thank you in advance!

Regards, Alexander Wert

Luca Milanesio· Feb 3, 2016, 08:39 UTC · re: Wert Alexander · lore

Re: Bug: Wrong GitHub API result when retrieving repository information

Wrong mailing list?
Show 28 quoted lines
> On 3 Feb 2016, at 06:58, Wert Alexander <Alexander.Wert@novatec-gmbh.de> wrote:
> 
> Dear GitHub Developers,
> 
> I'm using the GitHub API for retrieving statistics like stargazers_count or watchers_count.
> Unfortunately, an API call to https://api.github.com/users/<USER>/repos returns (as JSON) the same number for stargazers_count and watchers_count, although on the Website the numbers are different.
> 
> Example:
> ...
> "size": 5279,
> "stargazers_count": 51,
> "watchers_count": 51,
> "language": "Java",
> ...
> 
> 
> The actual count on the website, however,  are 51 for stargazers and 20 for watchers.
> 
> Any idea what could be the problem?
> 
> Thank you in advance!
> 
> Regards,
> Alexander Wert
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

← back to recent threads