API is very confusing by listing Stars count for Watchers count on all repos #24795
-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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/
https://api.github.com/repos/atom/atom Right now it has: “subscribers_count”: 2468 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! |
Beta Was this translation helpful? Give feedback.
-
repo_list = }); why i use this,but show like the photo as follows: |
Beta Was this translation helpful? Give feedback.
-
Hmm, not sure what the issue just from the code screenshot but are you able to reproduce the problem with
We see |
Beta Was this translation helpful? Give feedback.
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, whilesubscribers_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!