Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

API is very confusing by listing Stars count for Watchers count on all repos

Solved! Go to Solution.
https://api.github.com/search/repositories?q=vscode
stargazers_count: 70274,
forks_count: 9362,
forks: 9362
watchers_count: 70274, <--(LISTED)
watchers: 70274,

https://github.com/Microsoft/vscode
Stars 70,274
Forks 9,362
Watchers 2,667 <--- (REAL)
1 Reply
Solution
Moderator
Message 2 of 2

Re: API is very confusing by listing Stars count for Watchers count on all repos

Sorry for the confusion here - this part of the API changed when we moved "watching" to mean "starring" and is explained in this post from the API blog:

 

http://developer.github.com/changes/2012-9-5-watcher-api/

 

`watchers` corresponds to the number of users that have starred a repository, while `subscribers_count` corresponds to the number of watchers. For example, looking at the Atom repository:

 

https://api.github.com/repos/atom/atom

 

Right now it has:

 

"subscribers_count": 2468
"stargazers_count": 48009

 

This is because there are 2468 watchers (= subscribers) and 48009 stargazers.

 

I hope that clears things up but if you have more questions, please let us know!