Giter Site home page Giter Site logo

watchers count wrong? about github-api HOT 8 CLOSED

milo avatar milo commented on July 23, 2024
watchers count wrong?

from github-api.

Comments (8)

milo avatar milo commented on July 23, 2024

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.

bartclaeys avatar bartclaeys commented on July 23, 2024

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.

milo avatar milo commented on July 23, 2024

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.

bartclaeys avatar bartclaeys commented on July 23, 2024

API v3 REST does not return subscribers unfortunately.

from github-api.

bartclaeys avatar bartclaeys commented on July 23, 2024

Also, it seems with graphql they don't support this yet:

https://platform.github.community/t/get-contribution-statistics/971/7

from github-api.

milo avatar milo commented on July 23, 2024

@bartclaeys Did you read the doc? There is a subscribers_count.

from github-api.

vtempest avatar vtempest commented on July 23, 2024

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.

ewels avatar ewels commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.