Comments (8)
Hi Peter. The response corresponds to official repo documentation. It looks like some historical thing to me and GitHub keeps backward compatibility.
from github-api.
I just encountered the same issue, the API returns a different value for watchers
than what's displayed on the website. @milo I don't understand your remark regarding that. Are you saying that what watchers
returns is historical data and no longer being updated? If so, how can we retrieve an accurate number for watchers
?
from github-api.
Hi @bartclaeys I think that years before, GitHub used only one "watching" button, it was watchers
value in the API. But one day, they split it into Watch
and Star
. The watchers
became to stargazers
and new subscribers
arose.
from github-api.
API v3 REST does not return subscribers
unfortunately.
from github-api.
Also, it seems with graphql they don't support this yet:
https://platform.github.community/t/get-contribution-statistics/971/7
from github-api.
@bartclaeys Did you read the doc? There is a subscribers_count
.
from github-api.
This is so confusing and affects all repos
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)
from github-api.
@bartclaeys Did you read the doc? There is a
subscribers_count
.
There is indeed, however I've never seen it in my returned from the API, along with is_template
and a few other fields. You can see this at the link mentioned above too: https://api.github.com/search/repositories?q=vscode
Old thread sorry, but I came here from google and figured others may do the same.
from github-api.
Related Issues (20)
- Is PHP dependency ">=5.4.0" mandatory? HOT 2
- Api::decode() fails when parsing result of Request::HEAD request HOT 5
- SSL: invalid CA certificate #1 (offset 0) in bundle HOT 4
- Undefined property: stdClass::$errors HOT 2
- Fatal error: Class 'Login' not found HOT 20
- Personal Access Tokens HOT 2
- oAuth fails at second time HOT 2
- PSR4 compliant
- param replacement no separated by '/' error HOT 2
- Heads up: Stricter validation coming soon on the add/update org membership API endpoint HOT 2
- Watchers wrong, how to get real? HOT 1
- Suggestion: Include `subscribers_count` in repository list at `/users/:user/repos`. HOT 1
- facebook.com/jeanne.garneski
- <>
- Getting error "'SSL certificate problem: unable to get local issuer certificate'" HOT 2
- Need means to supply "$options" parameter when instantiating a client via the Api object HOT 2
- Feature request: dummy aggresive caching HOT 4
- Support for full URLs in get(), post() etc. - desired feature? HOT 6
- Error processing 422 response codes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-api.