Github: Can I see the number of downloads for a repo?











up vote
107
down vote

favorite
23












In Github, is there a way I can see the number of downloads for a repo?










share|improve this question






















  • Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
    – Allen Luce
    Mar 14 '16 at 22:16















up vote
107
down vote

favorite
23












In Github, is there a way I can see the number of downloads for a repo?










share|improve this question






















  • Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
    – Allen Luce
    Mar 14 '16 at 22:16













up vote
107
down vote

favorite
23









up vote
107
down vote

favorite
23






23





In Github, is there a way I can see the number of downloads for a repo?










share|improve this question













In Github, is there a way I can see the number of downloads for a repo?







github






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 2 '10 at 18:17









dhulihan

6,82483043




6,82483043












  • Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
    – Allen Luce
    Mar 14 '16 at 22:16


















  • Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
    – Allen Luce
    Mar 14 '16 at 22:16
















Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
– Allen Luce
Mar 14 '16 at 22:16




Clone counts are available to authorized users by scraping with a Github username/password as are counts of downloads of asset files within releases. It doesn't seem possible to get clone counts from public repos or download stats on non-asset files (i.e. repo tar.gz and zip files).
– Allen Luce
Mar 14 '16 at 22:16












14 Answers
14






active

oldest

votes

















up vote
86
down vote



accepted










Update 2017



You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked)

See "Get a single release", the download_count field.



There is no longer a traffic screen mentioning the number of repo clones.

Instead, you have to rely on third-party services like:





  • GitItBack (at www.netguru.co/gititback), but even that does not include the number of clones.

  • githubstats0, mentioned below by Aveek Saha.


  • www.somsubhra.com/github-release-stats, mentioned below.

    For instance, here are the number for the latest git for Windows release



Git 2.14.2 release





Update August 2014



GitHub also proposes the number of clones for a repo in its Traffic Graph:

See "Clone Graphs"



http://i.stack.imgur.com/uycEZ.png





Update October 2013



As mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field.



Michele Milidoni, in his (upvoted) answer, does use that field in his python script.

(very small extract)



c.setopt(c.URL, 'https://api.github.com/repos/' + full_name + '/releases')
for p in myobj:
if "assets" in p:
for asset in p['assets']:
print (asset['name'] + ": " + str(asset['download_count']) +
" downloads")




Original answer (December 2010)



I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API:



$ curl http://github.com/api/v2/yaml/repos/show/schacon/grit
---
repository:
:name: grit
:owner: schacon
:source: mojombo/grit # The original repo at top of the pyramid
:parent: defunkt/grit # This repo's direct parent
:description: Grit is a Ruby library for extracting information from a
git repository in an object oriented manner - this fork tries to
intergrate as much pure-ruby functionality as possible
:forks: 4
:watchers: 67
:private: false
:url: http://github.com/schacon/grit
:fork: true
:homepage: http://grit.rubyforge.org/
:has_wiki: true
:has_issues: false
:has_downloads: true


You can only see if it has downloads or not.






share|improve this answer



















  • 1




    Does this include ZIP downloads or just clones?
    – MarzSocks
    Dec 29 '15 at 7:55






  • 1




    @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
    – VonC
    Dec 29 '15 at 7:58










  • @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
    – VonC
    Dec 29 '15 at 7:59










  • I don't see this tab anymore...
    – daniel sp
    Jan 18 '17 at 13:43










  • @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
    – VonC
    Jan 18 '17 at 13:46




















up vote
68
down vote



+50










I have written a small web application in javascript for showing count of the number of downloads of all the assets in the available releases of any project on Github. You can try out the application over here: http://somsubhra.github.io/github-release-stats/






share|improve this answer

















  • 2




    I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
    – Alex
    Jun 25 '15 at 9:58










  • I am getting the same message. That can't be right.
    – cryptic0
    Jan 24 '16 at 14:43










  • Yep. Me too. Seems this app stopped working a long time ago.
    – Daan van den Bergh
    Sep 26 at 7:05


















up vote
11
down vote













GitHub has deprecated the download support and now supports 'Releases' - https://github.com/blog/1547-release-your-software. To create a release either use the GitHub UI or create an annotated tag (http:// git-scm.com/book/ch2-6.html) and add release notes to it in GitHub. You can then upload binaries, or 'assets', to each release.



Once you have some releases, the GitHub API supports getting information about them, and their assets.



curl -i 
https://api.github.com/repos/:owner/:repo/releases
-H "Accept: application/vnd.github.manifold-preview+json"


Look for the 'download_count' entry. Theres more info at http://developer.github.com/v3/repos/releases/. This part of the API is still in the preview period ATM so it may change.



Update Nov 2013:



GitHub's releases API is now out of the preview period so the 'Accept' header is no longer needed - http://developer.github.com/changes/2013-11-04-releases-api-is-official/



It won't do any harm to continue to add the 'Accept' header though.






share|improve this answer























  • Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
    – Demis
    Nov 29 '15 at 4:28












  • This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
    – andyberry88
    Nov 30 '15 at 9:18












  • Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
    – Demis
    Nov 30 '15 at 15:34












  • Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
    – andyberry88
    Dec 1 '15 at 15:46










  • Thanks for clarifying. The graphs are indeed helpful.
    – Demis
    Dec 1 '15 at 21:20




















up vote
6
down vote













Formerly, there was two methods of download code in Github: clone or download as zip a .git repo, or upload a file (for example, a binary) for later download.



When download a repo (clone or download as zip), Github doesn't count the number of downloads for technical limitations. Clone a repository is a read-only operation. There is no authentication required. This operation can be done via many protocols, including HTTPS, the same protocol that the web page uses to show the repo in the browser. It's very difficult to count it.



See: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols



Recently, Github deprecate the download functionality. This was because they understand that Github is focused in building software, and not in distribute binaries.



See: https://github.com/blog/1302-goodbye-uploads






share|improve this answer




























    up vote
    6
    down vote













    As mentioned, GitHub API returns downloads count of binary file releases. I developed a little script to easly get downloads count by command line.






    share|improve this answer





















    • Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
      – eonist
      Apr 7 '17 at 14:58


















    up vote
    5
    down vote













    As of 2014, October, there are VISITOR count available:



    enter image description here






    share|improve this answer




























      up vote
      3
      down vote













      The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.



      I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result



      # ./gdc stant
      mdcsvimporter.mxt: 37 downloads
      mdcsvimporter.mxt: 80 downloads
      How-to-use-mdcsvimporter-beta-16.zip: 12 downloads


      As you can clearly see, gdc does not report the download count of the tar.gz and zip files.



      If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:



      Download Info:
      mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
      Last updated on 2015-03-26


      Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.






      share|improve this answer






























        up vote
        3
        down vote













        Very late, but here is the answer you want:



        https://api.github.com/repos/ [git username] / [git project] /releases/


        Next, find the id of the project you are looking for in the data. It should be near the top, next to the urls. Then, navigate to



        https://api.github.com/repos/ [git username] / [git project] /releases/ [id] / assets


        The field named download_count is your answer.






        share|improve this answer





















        • how come my assets has no content, only showing "[ ]"
          – Griffan
          Mar 30 '17 at 20:27












        • Did you type everything correctly? Make sure you have releases and are checking the correct project.
          – LeChosenOne
          Mar 31 '17 at 3:33










        • I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
          – Griffan
          Mar 31 '17 at 4:57










        • Yup. A release is a binary to be handed out to others, not source code for developers.
          – LeChosenOne
          Apr 4 '17 at 4:13






        • 5




          Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
          – eonist
          Apr 7 '17 at 15:02


















        up vote
        2
        down vote













        Based on VonC and Michele Milidoni answers I've created this bookmarklet which displays downloads statistics of github hosted released binaries.



        Note: Because of issues with browsers related to Content Security Policy implementation, bookmarklets can temporarily violate some CSP directives and basically may not function properly when running on github while CSP is enabled.




        Though its highly discouraged, you can disable CSP in Firefox as a
        temporary workaround. Open up about:config and set security.csp.enable
        to false.







        share|improve this answer






























          up vote
          2
          down vote













          I ended up writing a scraper script to find my clone count:



          #!/bin/sh
          #
          # This script requires:
          # apt-get install html-xml-utils
          # apt-get install jq
          #
          USERNAME=dougluce
          PASSWORD="PASSWORD GOES HERE, BE CAREFUL!"
          REPO="dougluce/node-autovivify"

          TOKEN=`curl https://github.com/login -s -c /tmp/cookies.txt |
          hxnormalize |
          hxselect 'input[name=authenticity_token]' 2>/dev/null |
          perl -lne 'print $1 if /value="(S+)"/'`

          curl -X POST https://github.com/session
          -s -b /tmp/cookies.txt -c /tmp/cookies2.txt
          --data-urlencode commit="Sign in"
          --data-urlencode authenticity_token="$TOKEN"
          --data-urlencode login="$USERNAME"
          --data-urlencode password="$PASSWORD" > /dev/null

          curl "https://github.com/$REPO/graphs/clone-activity-data"
          -s -b /tmp/cookies2.txt
          -H "x-requested-with: XMLHttpRequest" | jq '.summary'


          This'll grab the data from the same endpoint that Github's clone graph uses and spit out the totals from it. The data also includes per-day counts, replace .summary with just . to see those pretty-printed.






          share|improve this answer




























            up vote
            2
            down vote













            To check the number of times a release file/package was downloaded you can go to https://githubstats0.firebaseapp.com



            It gives you a total download count and a break up of of total downloads per release tag.






            share|improve this answer




























              up vote
              1
              down vote













              As already stated, you can get information about your Releases via the API.



              For those using WordPress, I developed this plugin: GitHub Release Downloads. It allows you to get the download count, links and more information for releases of GitHub repositories.



              To address the original question, the shortcode [grd_count user="User" repo="MyRepo"] will return the number of downloads for a repository. This number corresponds to the sum of all download count values of all releases for one GitHub repository.



              Example: Example






              share|improve this answer






























                up vote
                0
                down vote













                To try to make this more clear:

                for this github project: stant/mdcsvimporter2015
                https://github.com/stant/mdcsvimporter2015

                with releases at
                https://github.com/stant/mdcsvimporter2015/releases



                go to http or https: (note added "api." and "/repos")
                https://api.github.com/repos/stant/mdcsvimporter2015/releases



                you will get this json output and you can search for "download_count":



                    "download_count": 2,
                "created_at": "2015-02-24T18:20:06Z",
                "updated_at": "2015-02-24T18:20:07Z",
                "browser_download_url": "https://github.com/stant/mdcsvimporter2015/releases/download/v18/mdcsvimporter-beta-18.zip"


                or on command line do:

                wget --no-check-certificate https://api.github.com/repos/stant/mdcsvimporter2015/releases






                share|improve this answer





















                • As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                  – Jan Ehrhardt
                  May 8 '15 at 22:09












                • I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                  – Stan Towianski
                  May 10 '15 at 13:28












                • But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                  – Jan Ehrhardt
                  May 11 '15 at 14:46










                • Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                  – Stan Towianski
                  May 13 '15 at 5:12










                • Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                  – Jan Ehrhardt
                  May 14 '15 at 9:43


















                up vote
                0
                down vote













                For those who need the solution in Python, I wrote a simple script.





                Python Script:




                • GitHub Download Stats




                Usage:



                ghstats.py [user] [repo] [tag] [options]




                • Arguments

                • Examples




                Support:




                • Supports both Python 2 and Python 3 out of the box.

                • Can be used as both a standalone and a Python module.






                share|improve this answer























                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4338358%2fgithub-can-i-see-the-number-of-downloads-for-a-repo%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  14 Answers
                  14






                  active

                  oldest

                  votes








                  14 Answers
                  14






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes








                  up vote
                  86
                  down vote



                  accepted










                  Update 2017



                  You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked)

                  See "Get a single release", the download_count field.



                  There is no longer a traffic screen mentioning the number of repo clones.

                  Instead, you have to rely on third-party services like:





                  • GitItBack (at www.netguru.co/gititback), but even that does not include the number of clones.

                  • githubstats0, mentioned below by Aveek Saha.


                  • www.somsubhra.com/github-release-stats, mentioned below.

                    For instance, here are the number for the latest git for Windows release



                  Git 2.14.2 release





                  Update August 2014



                  GitHub also proposes the number of clones for a repo in its Traffic Graph:

                  See "Clone Graphs"



                  http://i.stack.imgur.com/uycEZ.png





                  Update October 2013



                  As mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field.



                  Michele Milidoni, in his (upvoted) answer, does use that field in his python script.

                  (very small extract)



                  c.setopt(c.URL, 'https://api.github.com/repos/' + full_name + '/releases')
                  for p in myobj:
                  if "assets" in p:
                  for asset in p['assets']:
                  print (asset['name'] + ": " + str(asset['download_count']) +
                  " downloads")




                  Original answer (December 2010)



                  I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API:



                  $ curl http://github.com/api/v2/yaml/repos/show/schacon/grit
                  ---
                  repository:
                  :name: grit
                  :owner: schacon
                  :source: mojombo/grit # The original repo at top of the pyramid
                  :parent: defunkt/grit # This repo's direct parent
                  :description: Grit is a Ruby library for extracting information from a
                  git repository in an object oriented manner - this fork tries to
                  intergrate as much pure-ruby functionality as possible
                  :forks: 4
                  :watchers: 67
                  :private: false
                  :url: http://github.com/schacon/grit
                  :fork: true
                  :homepage: http://grit.rubyforge.org/
                  :has_wiki: true
                  :has_issues: false
                  :has_downloads: true


                  You can only see if it has downloads or not.






                  share|improve this answer



















                  • 1




                    Does this include ZIP downloads or just clones?
                    – MarzSocks
                    Dec 29 '15 at 7:55






                  • 1




                    @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                    – VonC
                    Dec 29 '15 at 7:58










                  • @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                    – VonC
                    Dec 29 '15 at 7:59










                  • I don't see this tab anymore...
                    – daniel sp
                    Jan 18 '17 at 13:43










                  • @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                    – VonC
                    Jan 18 '17 at 13:46

















                  up vote
                  86
                  down vote



                  accepted










                  Update 2017



                  You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked)

                  See "Get a single release", the download_count field.



                  There is no longer a traffic screen mentioning the number of repo clones.

                  Instead, you have to rely on third-party services like:





                  • GitItBack (at www.netguru.co/gititback), but even that does not include the number of clones.

                  • githubstats0, mentioned below by Aveek Saha.


                  • www.somsubhra.com/github-release-stats, mentioned below.

                    For instance, here are the number for the latest git for Windows release



                  Git 2.14.2 release





                  Update August 2014



                  GitHub also proposes the number of clones for a repo in its Traffic Graph:

                  See "Clone Graphs"



                  http://i.stack.imgur.com/uycEZ.png





                  Update October 2013



                  As mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field.



                  Michele Milidoni, in his (upvoted) answer, does use that field in his python script.

                  (very small extract)



                  c.setopt(c.URL, 'https://api.github.com/repos/' + full_name + '/releases')
                  for p in myobj:
                  if "assets" in p:
                  for asset in p['assets']:
                  print (asset['name'] + ": " + str(asset['download_count']) +
                  " downloads")




                  Original answer (December 2010)



                  I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API:



                  $ curl http://github.com/api/v2/yaml/repos/show/schacon/grit
                  ---
                  repository:
                  :name: grit
                  :owner: schacon
                  :source: mojombo/grit # The original repo at top of the pyramid
                  :parent: defunkt/grit # This repo's direct parent
                  :description: Grit is a Ruby library for extracting information from a
                  git repository in an object oriented manner - this fork tries to
                  intergrate as much pure-ruby functionality as possible
                  :forks: 4
                  :watchers: 67
                  :private: false
                  :url: http://github.com/schacon/grit
                  :fork: true
                  :homepage: http://grit.rubyforge.org/
                  :has_wiki: true
                  :has_issues: false
                  :has_downloads: true


                  You can only see if it has downloads or not.






                  share|improve this answer



















                  • 1




                    Does this include ZIP downloads or just clones?
                    – MarzSocks
                    Dec 29 '15 at 7:55






                  • 1




                    @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                    – VonC
                    Dec 29 '15 at 7:58










                  • @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                    – VonC
                    Dec 29 '15 at 7:59










                  • I don't see this tab anymore...
                    – daniel sp
                    Jan 18 '17 at 13:43










                  • @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                    – VonC
                    Jan 18 '17 at 13:46















                  up vote
                  86
                  down vote



                  accepted







                  up vote
                  86
                  down vote



                  accepted






                  Update 2017



                  You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked)

                  See "Get a single release", the download_count field.



                  There is no longer a traffic screen mentioning the number of repo clones.

                  Instead, you have to rely on third-party services like:





                  • GitItBack (at www.netguru.co/gititback), but even that does not include the number of clones.

                  • githubstats0, mentioned below by Aveek Saha.


                  • www.somsubhra.com/github-release-stats, mentioned below.

                    For instance, here are the number for the latest git for Windows release



                  Git 2.14.2 release





                  Update August 2014



                  GitHub also proposes the number of clones for a repo in its Traffic Graph:

                  See "Clone Graphs"



                  http://i.stack.imgur.com/uycEZ.png





                  Update October 2013



                  As mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field.



                  Michele Milidoni, in his (upvoted) answer, does use that field in his python script.

                  (very small extract)



                  c.setopt(c.URL, 'https://api.github.com/repos/' + full_name + '/releases')
                  for p in myobj:
                  if "assets" in p:
                  for asset in p['assets']:
                  print (asset['name'] + ": " + str(asset['download_count']) +
                  " downloads")




                  Original answer (December 2010)



                  I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API:



                  $ curl http://github.com/api/v2/yaml/repos/show/schacon/grit
                  ---
                  repository:
                  :name: grit
                  :owner: schacon
                  :source: mojombo/grit # The original repo at top of the pyramid
                  :parent: defunkt/grit # This repo's direct parent
                  :description: Grit is a Ruby library for extracting information from a
                  git repository in an object oriented manner - this fork tries to
                  intergrate as much pure-ruby functionality as possible
                  :forks: 4
                  :watchers: 67
                  :private: false
                  :url: http://github.com/schacon/grit
                  :fork: true
                  :homepage: http://grit.rubyforge.org/
                  :has_wiki: true
                  :has_issues: false
                  :has_downloads: true


                  You can only see if it has downloads or not.






                  share|improve this answer














                  Update 2017



                  You still can use the GitHub API to get the download count for your releases (which is not exactly what was asked)

                  See "Get a single release", the download_count field.



                  There is no longer a traffic screen mentioning the number of repo clones.

                  Instead, you have to rely on third-party services like:





                  • GitItBack (at www.netguru.co/gititback), but even that does not include the number of clones.

                  • githubstats0, mentioned below by Aveek Saha.


                  • www.somsubhra.com/github-release-stats, mentioned below.

                    For instance, here are the number for the latest git for Windows release



                  Git 2.14.2 release





                  Update August 2014



                  GitHub also proposes the number of clones for a repo in its Traffic Graph:

                  See "Clone Graphs"



                  http://i.stack.imgur.com/uycEZ.png





                  Update October 2013



                  As mentioned below by andyberry88, and as I detailed last July, GitHub now proposes releases (see its API), which has a download_count field.



                  Michele Milidoni, in his (upvoted) answer, does use that field in his python script.

                  (very small extract)



                  c.setopt(c.URL, 'https://api.github.com/repos/' + full_name + '/releases')
                  for p in myobj:
                  if "assets" in p:
                  for asset in p['assets']:
                  print (asset['name'] + ": " + str(asset['download_count']) +
                  " downloads")




                  Original answer (December 2010)



                  I am not sure you can see that information (if it is recorded at all), because I don't see it in the GitHub Repository API:



                  $ curl http://github.com/api/v2/yaml/repos/show/schacon/grit
                  ---
                  repository:
                  :name: grit
                  :owner: schacon
                  :source: mojombo/grit # The original repo at top of the pyramid
                  :parent: defunkt/grit # This repo's direct parent
                  :description: Grit is a Ruby library for extracting information from a
                  git repository in an object oriented manner - this fork tries to
                  intergrate as much pure-ruby functionality as possible
                  :forks: 4
                  :watchers: 67
                  :private: false
                  :url: http://github.com/schacon/grit
                  :fork: true
                  :homepage: http://grit.rubyforge.org/
                  :has_wiki: true
                  :has_issues: false
                  :has_downloads: true


                  You can only see if it has downloads or not.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 11 at 19:28

























                  answered Dec 2 '10 at 19:40









                  VonC

                  823k28425873107




                  823k28425873107








                  • 1




                    Does this include ZIP downloads or just clones?
                    – MarzSocks
                    Dec 29 '15 at 7:55






                  • 1




                    @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                    – VonC
                    Dec 29 '15 at 7:58










                  • @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                    – VonC
                    Dec 29 '15 at 7:59










                  • I don't see this tab anymore...
                    – daniel sp
                    Jan 18 '17 at 13:43










                  • @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                    – VonC
                    Jan 18 '17 at 13:46
















                  • 1




                    Does this include ZIP downloads or just clones?
                    – MarzSocks
                    Dec 29 '15 at 7:55






                  • 1




                    @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                    – VonC
                    Dec 29 '15 at 7:58










                  • @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                    – VonC
                    Dec 29 '15 at 7:59










                  • I don't see this tab anymore...
                    – daniel sp
                    Jan 18 '17 at 13:43










                  • @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                    – VonC
                    Jan 18 '17 at 13:46










                  1




                  1




                  Does this include ZIP downloads or just clones?
                  – MarzSocks
                  Dec 29 '15 at 7:55




                  Does this include ZIP downloads or just clones?
                  – MarzSocks
                  Dec 29 '15 at 7:55




                  1




                  1




                  @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                  – VonC
                  Dec 29 '15 at 7:58




                  @MarzSocks if you are talking about the download_count field of the release API, that should include the number of release downloads (which are not always zip, and are not clones)
                  – VonC
                  Dec 29 '15 at 7:58












                  @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                  – VonC
                  Dec 29 '15 at 7:59




                  @MarzSocks if you are talking about "number of clones", that should not include the zip downloads. Only the git clone instances. Check with GitHub support for confirmation.
                  – VonC
                  Dec 29 '15 at 7:59












                  I don't see this tab anymore...
                  – daniel sp
                  Jan 18 '17 at 13:43




                  I don't see this tab anymore...
                  – daniel sp
                  Jan 18 '17 at 13:43












                  @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                  – VonC
                  Jan 18 '17 at 13:46






                  @danielsp yet, it is still officially documented: help.github.com/articles/viewing-traffic-to-a-repository. But yes, I don't see it anymore either: github.com/docker/docker/graphs/contributors
                  – VonC
                  Jan 18 '17 at 13:46














                  up vote
                  68
                  down vote



                  +50










                  I have written a small web application in javascript for showing count of the number of downloads of all the assets in the available releases of any project on Github. You can try out the application over here: http://somsubhra.github.io/github-release-stats/






                  share|improve this answer

















                  • 2




                    I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                    – Alex
                    Jun 25 '15 at 9:58










                  • I am getting the same message. That can't be right.
                    – cryptic0
                    Jan 24 '16 at 14:43










                  • Yep. Me too. Seems this app stopped working a long time ago.
                    – Daan van den Bergh
                    Sep 26 at 7:05















                  up vote
                  68
                  down vote



                  +50










                  I have written a small web application in javascript for showing count of the number of downloads of all the assets in the available releases of any project on Github. You can try out the application over here: http://somsubhra.github.io/github-release-stats/






                  share|improve this answer

















                  • 2




                    I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                    – Alex
                    Jun 25 '15 at 9:58










                  • I am getting the same message. That can't be right.
                    – cryptic0
                    Jan 24 '16 at 14:43










                  • Yep. Me too. Seems this app stopped working a long time ago.
                    – Daan van den Bergh
                    Sep 26 at 7:05













                  up vote
                  68
                  down vote



                  +50







                  up vote
                  68
                  down vote



                  +50




                  +50




                  I have written a small web application in javascript for showing count of the number of downloads of all the assets in the available releases of any project on Github. You can try out the application over here: http://somsubhra.github.io/github-release-stats/






                  share|improve this answer












                  I have written a small web application in javascript for showing count of the number of downloads of all the assets in the available releases of any project on Github. You can try out the application over here: http://somsubhra.github.io/github-release-stats/







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 23 '14 at 6:03









                  Somsubhra

                  73163




                  73163








                  • 2




                    I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                    – Alex
                    Jun 25 '15 at 9:58










                  • I am getting the same message. That can't be right.
                    – cryptic0
                    Jan 24 '16 at 14:43










                  • Yep. Me too. Seems this app stopped working a long time ago.
                    – Daan van den Bergh
                    Sep 26 at 7:05














                  • 2




                    I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                    – Alex
                    Jun 25 '15 at 9:58










                  • I am getting the same message. That can't be right.
                    – cryptic0
                    Jan 24 '16 at 14:43










                  • Yep. Me too. Seems this app stopped working a long time ago.
                    – Daan van den Bergh
                    Sep 26 at 7:05








                  2




                  2




                  I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                  – Alex
                  Jun 25 '15 at 9:58




                  I keep getting 'There are no releases for this project' or 'The project doesn't exist' messages. What am I dong wrong?
                  – Alex
                  Jun 25 '15 at 9:58












                  I am getting the same message. That can't be right.
                  – cryptic0
                  Jan 24 '16 at 14:43




                  I am getting the same message. That can't be right.
                  – cryptic0
                  Jan 24 '16 at 14:43












                  Yep. Me too. Seems this app stopped working a long time ago.
                  – Daan van den Bergh
                  Sep 26 at 7:05




                  Yep. Me too. Seems this app stopped working a long time ago.
                  – Daan van den Bergh
                  Sep 26 at 7:05










                  up vote
                  11
                  down vote













                  GitHub has deprecated the download support and now supports 'Releases' - https://github.com/blog/1547-release-your-software. To create a release either use the GitHub UI or create an annotated tag (http:// git-scm.com/book/ch2-6.html) and add release notes to it in GitHub. You can then upload binaries, or 'assets', to each release.



                  Once you have some releases, the GitHub API supports getting information about them, and their assets.



                  curl -i 
                  https://api.github.com/repos/:owner/:repo/releases
                  -H "Accept: application/vnd.github.manifold-preview+json"


                  Look for the 'download_count' entry. Theres more info at http://developer.github.com/v3/repos/releases/. This part of the API is still in the preview period ATM so it may change.



                  Update Nov 2013:



                  GitHub's releases API is now out of the preview period so the 'Accept' header is no longer needed - http://developer.github.com/changes/2013-11-04-releases-api-is-official/



                  It won't do any harm to continue to add the 'Accept' header though.






                  share|improve this answer























                  • Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                    – Demis
                    Nov 29 '15 at 4:28












                  • This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                    – andyberry88
                    Nov 30 '15 at 9:18












                  • Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                    – Demis
                    Nov 30 '15 at 15:34












                  • Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                    – andyberry88
                    Dec 1 '15 at 15:46










                  • Thanks for clarifying. The graphs are indeed helpful.
                    – Demis
                    Dec 1 '15 at 21:20

















                  up vote
                  11
                  down vote













                  GitHub has deprecated the download support and now supports 'Releases' - https://github.com/blog/1547-release-your-software. To create a release either use the GitHub UI or create an annotated tag (http:// git-scm.com/book/ch2-6.html) and add release notes to it in GitHub. You can then upload binaries, or 'assets', to each release.



                  Once you have some releases, the GitHub API supports getting information about them, and their assets.



                  curl -i 
                  https://api.github.com/repos/:owner/:repo/releases
                  -H "Accept: application/vnd.github.manifold-preview+json"


                  Look for the 'download_count' entry. Theres more info at http://developer.github.com/v3/repos/releases/. This part of the API is still in the preview period ATM so it may change.



                  Update Nov 2013:



                  GitHub's releases API is now out of the preview period so the 'Accept' header is no longer needed - http://developer.github.com/changes/2013-11-04-releases-api-is-official/



                  It won't do any harm to continue to add the 'Accept' header though.






                  share|improve this answer























                  • Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                    – Demis
                    Nov 29 '15 at 4:28












                  • This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                    – andyberry88
                    Nov 30 '15 at 9:18












                  • Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                    – Demis
                    Nov 30 '15 at 15:34












                  • Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                    – andyberry88
                    Dec 1 '15 at 15:46










                  • Thanks for clarifying. The graphs are indeed helpful.
                    – Demis
                    Dec 1 '15 at 21:20















                  up vote
                  11
                  down vote










                  up vote
                  11
                  down vote









                  GitHub has deprecated the download support and now supports 'Releases' - https://github.com/blog/1547-release-your-software. To create a release either use the GitHub UI or create an annotated tag (http:// git-scm.com/book/ch2-6.html) and add release notes to it in GitHub. You can then upload binaries, or 'assets', to each release.



                  Once you have some releases, the GitHub API supports getting information about them, and their assets.



                  curl -i 
                  https://api.github.com/repos/:owner/:repo/releases
                  -H "Accept: application/vnd.github.manifold-preview+json"


                  Look for the 'download_count' entry. Theres more info at http://developer.github.com/v3/repos/releases/. This part of the API is still in the preview period ATM so it may change.



                  Update Nov 2013:



                  GitHub's releases API is now out of the preview period so the 'Accept' header is no longer needed - http://developer.github.com/changes/2013-11-04-releases-api-is-official/



                  It won't do any harm to continue to add the 'Accept' header though.






                  share|improve this answer














                  GitHub has deprecated the download support and now supports 'Releases' - https://github.com/blog/1547-release-your-software. To create a release either use the GitHub UI or create an annotated tag (http:// git-scm.com/book/ch2-6.html) and add release notes to it in GitHub. You can then upload binaries, or 'assets', to each release.



                  Once you have some releases, the GitHub API supports getting information about them, and their assets.



                  curl -i 
                  https://api.github.com/repos/:owner/:repo/releases
                  -H "Accept: application/vnd.github.manifold-preview+json"


                  Look for the 'download_count' entry. Theres more info at http://developer.github.com/v3/repos/releases/. This part of the API is still in the preview period ATM so it may change.



                  Update Nov 2013:



                  GitHub's releases API is now out of the preview period so the 'Accept' header is no longer needed - http://developer.github.com/changes/2013-11-04-releases-api-is-official/



                  It won't do any harm to continue to add the 'Accept' header though.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 5 '14 at 13:52







                  user456814

















                  answered Oct 31 '13 at 9:24









                  andyberry88

                  1,1361213




                  1,1361213












                  • Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                    – Demis
                    Nov 29 '15 at 4:28












                  • This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                    – andyberry88
                    Nov 30 '15 at 9:18












                  • Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                    – Demis
                    Nov 30 '15 at 15:34












                  • Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                    – andyberry88
                    Dec 1 '15 at 15:46










                  • Thanks for clarifying. The graphs are indeed helpful.
                    – Demis
                    Dec 1 '15 at 21:20




















                  • Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                    – Demis
                    Nov 29 '15 at 4:28












                  • This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                    – andyberry88
                    Nov 30 '15 at 9:18












                  • Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                    – Demis
                    Nov 30 '15 at 15:34












                  • Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                    – andyberry88
                    Dec 1 '15 at 15:46










                  • Thanks for clarifying. The graphs are indeed helpful.
                    – Demis
                    Dec 1 '15 at 21:20


















                  Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                  – Demis
                  Nov 29 '15 at 4:28






                  Am I wrong to think that github does not currently show a downloads field in the assets any more (at least using this technique)?
                  – Demis
                  Nov 29 '15 at 4:28














                  This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                  – andyberry88
                  Nov 30 '15 at 9:18






                  This method still seems to be working for me. download_count is the field that indicates the number of downloads - for example in api.github.com/repos/twbs/bootstrap/releases. It's worth noting that only 'releases' will show up in this list, tags that show up in the releases page of a repo don't appear in the API listing, see developer.github.com/v3/repos/releases. For example github.com/jquery/jquery/releases lists several tags under the releases section but an empty list is returned for api.github.com/repos/jquery/jquery/releases.
                  – andyberry88
                  Nov 30 '15 at 9:18














                  Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                  – Demis
                  Nov 30 '15 at 15:34






                  Thanks! My Repo's don't appear to have such a field, even with some tags set as "releases" - this does not count the downloads of the zipped/tarballed releases (or the field is omitted if count=0)? Or only shows the field for Clone requests? See this, with no download_count: api.github.com/repos/demisjohn/pytrimsetup/releases . The github page for that is here: github.com/demisjohn/pyTRIMSetup/releases
                  – Demis
                  Nov 30 '15 at 15:34














                  Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                  – andyberry88
                  Dec 1 '15 at 15:46




                  Download counts are only available for release assets, not for the source code archives for the tag. If you look at the bootstrap URLs I provided above they have a bootstrap-XYZ-dist.zip asset which is what the download_count field relates to. If you want to see how many people are downloading a release you need to upload a release zip. As far as I know there is no way to see how many people have cloned/downloaded an archive via the API. The graphs view (from stackoverflow.com/a/4339085/2634854 above) may give you what you're after though.
                  – andyberry88
                  Dec 1 '15 at 15:46












                  Thanks for clarifying. The graphs are indeed helpful.
                  – Demis
                  Dec 1 '15 at 21:20






                  Thanks for clarifying. The graphs are indeed helpful.
                  – Demis
                  Dec 1 '15 at 21:20












                  up vote
                  6
                  down vote













                  Formerly, there was two methods of download code in Github: clone or download as zip a .git repo, or upload a file (for example, a binary) for later download.



                  When download a repo (clone or download as zip), Github doesn't count the number of downloads for technical limitations. Clone a repository is a read-only operation. There is no authentication required. This operation can be done via many protocols, including HTTPS, the same protocol that the web page uses to show the repo in the browser. It's very difficult to count it.



                  See: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols



                  Recently, Github deprecate the download functionality. This was because they understand that Github is focused in building software, and not in distribute binaries.



                  See: https://github.com/blog/1302-goodbye-uploads






                  share|improve this answer

























                    up vote
                    6
                    down vote













                    Formerly, there was two methods of download code in Github: clone or download as zip a .git repo, or upload a file (for example, a binary) for later download.



                    When download a repo (clone or download as zip), Github doesn't count the number of downloads for technical limitations. Clone a repository is a read-only operation. There is no authentication required. This operation can be done via many protocols, including HTTPS, the same protocol that the web page uses to show the repo in the browser. It's very difficult to count it.



                    See: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols



                    Recently, Github deprecate the download functionality. This was because they understand that Github is focused in building software, and not in distribute binaries.



                    See: https://github.com/blog/1302-goodbye-uploads






                    share|improve this answer























                      up vote
                      6
                      down vote










                      up vote
                      6
                      down vote









                      Formerly, there was two methods of download code in Github: clone or download as zip a .git repo, or upload a file (for example, a binary) for later download.



                      When download a repo (clone or download as zip), Github doesn't count the number of downloads for technical limitations. Clone a repository is a read-only operation. There is no authentication required. This operation can be done via many protocols, including HTTPS, the same protocol that the web page uses to show the repo in the browser. It's very difficult to count it.



                      See: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols



                      Recently, Github deprecate the download functionality. This was because they understand that Github is focused in building software, and not in distribute binaries.



                      See: https://github.com/blog/1302-goodbye-uploads






                      share|improve this answer












                      Formerly, there was two methods of download code in Github: clone or download as zip a .git repo, or upload a file (for example, a binary) for later download.



                      When download a repo (clone or download as zip), Github doesn't count the number of downloads for technical limitations. Clone a repository is a read-only operation. There is no authentication required. This operation can be done via many protocols, including HTTPS, the same protocol that the web page uses to show the repo in the browser. It's very difficult to count it.



                      See: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols



                      Recently, Github deprecate the download functionality. This was because they understand that Github is focused in building software, and not in distribute binaries.



                      See: https://github.com/blog/1302-goodbye-uploads







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jun 28 '13 at 2:46









                      Rarylson Freitas

                      18918




                      18918






















                          up vote
                          6
                          down vote













                          As mentioned, GitHub API returns downloads count of binary file releases. I developed a little script to easly get downloads count by command line.






                          share|improve this answer





















                          • Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                            – eonist
                            Apr 7 '17 at 14:58















                          up vote
                          6
                          down vote













                          As mentioned, GitHub API returns downloads count of binary file releases. I developed a little script to easly get downloads count by command line.






                          share|improve this answer





















                          • Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                            – eonist
                            Apr 7 '17 at 14:58













                          up vote
                          6
                          down vote










                          up vote
                          6
                          down vote









                          As mentioned, GitHub API returns downloads count of binary file releases. I developed a little script to easly get downloads count by command line.






                          share|improve this answer












                          As mentioned, GitHub API returns downloads count of binary file releases. I developed a little script to easly get downloads count by command line.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 15 '14 at 22:59









                          Michele Milidoni

                          368410




                          368410












                          • Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                            – eonist
                            Apr 7 '17 at 14:58


















                          • Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                            – eonist
                            Apr 7 '17 at 14:58
















                          Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                          – eonist
                          Apr 7 '17 at 14:58




                          Anywhere I can see an example of this in use? Can it be added to a Github badge? If not would it be possible to use google analytics to get download count to Github badge somehow?
                          – eonist
                          Apr 7 '17 at 14:58










                          up vote
                          5
                          down vote













                          As of 2014, October, there are VISITOR count available:



                          enter image description here






                          share|improve this answer

























                            up vote
                            5
                            down vote













                            As of 2014, October, there are VISITOR count available:



                            enter image description here






                            share|improve this answer























                              up vote
                              5
                              down vote










                              up vote
                              5
                              down vote









                              As of 2014, October, there are VISITOR count available:



                              enter image description here






                              share|improve this answer












                              As of 2014, October, there are VISITOR count available:



                              enter image description here







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 10 '14 at 13:33









                              T.Todua

                              29.3k11128129




                              29.3k11128129






















                                  up vote
                                  3
                                  down vote













                                  The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.



                                  I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result



                                  # ./gdc stant
                                  mdcsvimporter.mxt: 37 downloads
                                  mdcsvimporter.mxt: 80 downloads
                                  How-to-use-mdcsvimporter-beta-16.zip: 12 downloads


                                  As you can clearly see, gdc does not report the download count of the tar.gz and zip files.



                                  If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:



                                  Download Info:
                                  mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
                                  Last updated on 2015-03-26


                                  Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.






                                  share|improve this answer



























                                    up vote
                                    3
                                    down vote













                                    The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.



                                    I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result



                                    # ./gdc stant
                                    mdcsvimporter.mxt: 37 downloads
                                    mdcsvimporter.mxt: 80 downloads
                                    How-to-use-mdcsvimporter-beta-16.zip: 12 downloads


                                    As you can clearly see, gdc does not report the download count of the tar.gz and zip files.



                                    If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:



                                    Download Info:
                                    mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
                                    Last updated on 2015-03-26


                                    Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.






                                    share|improve this answer

























                                      up vote
                                      3
                                      down vote










                                      up vote
                                      3
                                      down vote









                                      The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.



                                      I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result



                                      # ./gdc stant
                                      mdcsvimporter.mxt: 37 downloads
                                      mdcsvimporter.mxt: 80 downloads
                                      How-to-use-mdcsvimporter-beta-16.zip: 12 downloads


                                      As you can clearly see, gdc does not report the download count of the tar.gz and zip files.



                                      If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:



                                      Download Info:
                                      mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
                                      Last updated on 2015-03-26


                                      Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.






                                      share|improve this answer














                                      The Github API does not provide the needed information anymore. Take a look at the releases page, mentioned in Stan Towianski's answer. As we discussed in the comments to that answer, the Github API only reports the downloads of 1 of the three files he offers per release.



                                      I have checked the solutions, provided in some other answers to this questions. Vonc's answer presents the essential part of Michele Milidoni's solution. I installed his gdc script with the following result



                                      # ./gdc stant
                                      mdcsvimporter.mxt: 37 downloads
                                      mdcsvimporter.mxt: 80 downloads
                                      How-to-use-mdcsvimporter-beta-16.zip: 12 downloads


                                      As you can clearly see, gdc does not report the download count of the tar.gz and zip files.



                                      If you want to check without installing anything, try the web page where Somsubhra has installed the solution, mentioned in his answer. Fill in 'stant' as Github username and 'mdcsvimporter2015' as Repository name and you will see things like:



                                      Download Info:
                                      mdcsvimporter.mxt(0.20MB) - Downloaded 37 times.
                                      Last updated on 2015-03-26


                                      Alas, once again only a report without the downloads of the tar.gz and zip files. I have carefully examined the information that Github's API returns, but it is not provided anywhere. The download_count that the API does return is far from complete nowadays.







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited May 23 '17 at 12:10









                                      Community

                                      11




                                      11










                                      answered May 14 '15 at 10:45









                                      Jan Ehrhardt

                                      1068




                                      1068






















                                          up vote
                                          3
                                          down vote













                                          Very late, but here is the answer you want:



                                          https://api.github.com/repos/ [git username] / [git project] /releases/


                                          Next, find the id of the project you are looking for in the data. It should be near the top, next to the urls. Then, navigate to



                                          https://api.github.com/repos/ [git username] / [git project] /releases/ [id] / assets


                                          The field named download_count is your answer.






                                          share|improve this answer





















                                          • how come my assets has no content, only showing "[ ]"
                                            – Griffan
                                            Mar 30 '17 at 20:27












                                          • Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                            – LeChosenOne
                                            Mar 31 '17 at 3:33










                                          • I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                            – Griffan
                                            Mar 31 '17 at 4:57










                                          • Yup. A release is a binary to be handed out to others, not source code for developers.
                                            – LeChosenOne
                                            Apr 4 '17 at 4:13






                                          • 5




                                            Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                            – eonist
                                            Apr 7 '17 at 15:02















                                          up vote
                                          3
                                          down vote













                                          Very late, but here is the answer you want:



                                          https://api.github.com/repos/ [git username] / [git project] /releases/


                                          Next, find the id of the project you are looking for in the data. It should be near the top, next to the urls. Then, navigate to



                                          https://api.github.com/repos/ [git username] / [git project] /releases/ [id] / assets


                                          The field named download_count is your answer.






                                          share|improve this answer





















                                          • how come my assets has no content, only showing "[ ]"
                                            – Griffan
                                            Mar 30 '17 at 20:27












                                          • Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                            – LeChosenOne
                                            Mar 31 '17 at 3:33










                                          • I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                            – Griffan
                                            Mar 31 '17 at 4:57










                                          • Yup. A release is a binary to be handed out to others, not source code for developers.
                                            – LeChosenOne
                                            Apr 4 '17 at 4:13






                                          • 5




                                            Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                            – eonist
                                            Apr 7 '17 at 15:02













                                          up vote
                                          3
                                          down vote










                                          up vote
                                          3
                                          down vote









                                          Very late, but here is the answer you want:



                                          https://api.github.com/repos/ [git username] / [git project] /releases/


                                          Next, find the id of the project you are looking for in the data. It should be near the top, next to the urls. Then, navigate to



                                          https://api.github.com/repos/ [git username] / [git project] /releases/ [id] / assets


                                          The field named download_count is your answer.






                                          share|improve this answer












                                          Very late, but here is the answer you want:



                                          https://api.github.com/repos/ [git username] / [git project] /releases/


                                          Next, find the id of the project you are looking for in the data. It should be near the top, next to the urls. Then, navigate to



                                          https://api.github.com/repos/ [git username] / [git project] /releases/ [id] / assets


                                          The field named download_count is your answer.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Jul 10 '16 at 17:10









                                          LeChosenOne

                                          6261615




                                          6261615












                                          • how come my assets has no content, only showing "[ ]"
                                            – Griffan
                                            Mar 30 '17 at 20:27












                                          • Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                            – LeChosenOne
                                            Mar 31 '17 at 3:33










                                          • I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                            – Griffan
                                            Mar 31 '17 at 4:57










                                          • Yup. A release is a binary to be handed out to others, not source code for developers.
                                            – LeChosenOne
                                            Apr 4 '17 at 4:13






                                          • 5




                                            Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                            – eonist
                                            Apr 7 '17 at 15:02


















                                          • how come my assets has no content, only showing "[ ]"
                                            – Griffan
                                            Mar 30 '17 at 20:27












                                          • Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                            – LeChosenOne
                                            Mar 31 '17 at 3:33










                                          • I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                            – Griffan
                                            Mar 31 '17 at 4:57










                                          • Yup. A release is a binary to be handed out to others, not source code for developers.
                                            – LeChosenOne
                                            Apr 4 '17 at 4:13






                                          • 5




                                            Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                            – eonist
                                            Apr 7 '17 at 15:02
















                                          how come my assets has no content, only showing "[ ]"
                                          – Griffan
                                          Mar 30 '17 at 20:27






                                          how come my assets has no content, only showing "[ ]"
                                          – Griffan
                                          Mar 30 '17 at 20:27














                                          Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                          – LeChosenOne
                                          Mar 31 '17 at 3:33




                                          Did you type everything correctly? Make sure you have releases and are checking the correct project.
                                          – LeChosenOne
                                          Mar 31 '17 at 3:33












                                          I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                          – Griffan
                                          Mar 31 '17 at 4:57




                                          I find out that they only keep track of binary files in release, not source code tarball or zip, which sucks
                                          – Griffan
                                          Mar 31 '17 at 4:57












                                          Yup. A release is a binary to be handed out to others, not source code for developers.
                                          – LeChosenOne
                                          Apr 4 '17 at 4:13




                                          Yup. A release is a binary to be handed out to others, not source code for developers.
                                          – LeChosenOne
                                          Apr 4 '17 at 4:13




                                          5




                                          5




                                          Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                          – eonist
                                          Apr 7 '17 at 15:02




                                          Does this still work? Im getting: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }
                                          – eonist
                                          Apr 7 '17 at 15:02










                                          up vote
                                          2
                                          down vote













                                          Based on VonC and Michele Milidoni answers I've created this bookmarklet which displays downloads statistics of github hosted released binaries.



                                          Note: Because of issues with browsers related to Content Security Policy implementation, bookmarklets can temporarily violate some CSP directives and basically may not function properly when running on github while CSP is enabled.




                                          Though its highly discouraged, you can disable CSP in Firefox as a
                                          temporary workaround. Open up about:config and set security.csp.enable
                                          to false.







                                          share|improve this answer



























                                            up vote
                                            2
                                            down vote













                                            Based on VonC and Michele Milidoni answers I've created this bookmarklet which displays downloads statistics of github hosted released binaries.



                                            Note: Because of issues with browsers related to Content Security Policy implementation, bookmarklets can temporarily violate some CSP directives and basically may not function properly when running on github while CSP is enabled.




                                            Though its highly discouraged, you can disable CSP in Firefox as a
                                            temporary workaround. Open up about:config and set security.csp.enable
                                            to false.







                                            share|improve this answer

























                                              up vote
                                              2
                                              down vote










                                              up vote
                                              2
                                              down vote









                                              Based on VonC and Michele Milidoni answers I've created this bookmarklet which displays downloads statistics of github hosted released binaries.



                                              Note: Because of issues with browsers related to Content Security Policy implementation, bookmarklets can temporarily violate some CSP directives and basically may not function properly when running on github while CSP is enabled.




                                              Though its highly discouraged, you can disable CSP in Firefox as a
                                              temporary workaround. Open up about:config and set security.csp.enable
                                              to false.







                                              share|improve this answer














                                              Based on VonC and Michele Milidoni answers I've created this bookmarklet which displays downloads statistics of github hosted released binaries.



                                              Note: Because of issues with browsers related to Content Security Policy implementation, bookmarklets can temporarily violate some CSP directives and basically may not function properly when running on github while CSP is enabled.




                                              Though its highly discouraged, you can disable CSP in Firefox as a
                                              temporary workaround. Open up about:config and set security.csp.enable
                                              to false.








                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited May 18 '14 at 1:22

























                                              answered May 17 '14 at 15:38









                                              jwaliszko

                                              11.5k1675134




                                              11.5k1675134






















                                                  up vote
                                                  2
                                                  down vote













                                                  I ended up writing a scraper script to find my clone count:



                                                  #!/bin/sh
                                                  #
                                                  # This script requires:
                                                  # apt-get install html-xml-utils
                                                  # apt-get install jq
                                                  #
                                                  USERNAME=dougluce
                                                  PASSWORD="PASSWORD GOES HERE, BE CAREFUL!"
                                                  REPO="dougluce/node-autovivify"

                                                  TOKEN=`curl https://github.com/login -s -c /tmp/cookies.txt |
                                                  hxnormalize |
                                                  hxselect 'input[name=authenticity_token]' 2>/dev/null |
                                                  perl -lne 'print $1 if /value="(S+)"/'`

                                                  curl -X POST https://github.com/session
                                                  -s -b /tmp/cookies.txt -c /tmp/cookies2.txt
                                                  --data-urlencode commit="Sign in"
                                                  --data-urlencode authenticity_token="$TOKEN"
                                                  --data-urlencode login="$USERNAME"
                                                  --data-urlencode password="$PASSWORD" > /dev/null

                                                  curl "https://github.com/$REPO/graphs/clone-activity-data"
                                                  -s -b /tmp/cookies2.txt
                                                  -H "x-requested-with: XMLHttpRequest" | jq '.summary'


                                                  This'll grab the data from the same endpoint that Github's clone graph uses and spit out the totals from it. The data also includes per-day counts, replace .summary with just . to see those pretty-printed.






                                                  share|improve this answer

























                                                    up vote
                                                    2
                                                    down vote













                                                    I ended up writing a scraper script to find my clone count:



                                                    #!/bin/sh
                                                    #
                                                    # This script requires:
                                                    # apt-get install html-xml-utils
                                                    # apt-get install jq
                                                    #
                                                    USERNAME=dougluce
                                                    PASSWORD="PASSWORD GOES HERE, BE CAREFUL!"
                                                    REPO="dougluce/node-autovivify"

                                                    TOKEN=`curl https://github.com/login -s -c /tmp/cookies.txt |
                                                    hxnormalize |
                                                    hxselect 'input[name=authenticity_token]' 2>/dev/null |
                                                    perl -lne 'print $1 if /value="(S+)"/'`

                                                    curl -X POST https://github.com/session
                                                    -s -b /tmp/cookies.txt -c /tmp/cookies2.txt
                                                    --data-urlencode commit="Sign in"
                                                    --data-urlencode authenticity_token="$TOKEN"
                                                    --data-urlencode login="$USERNAME"
                                                    --data-urlencode password="$PASSWORD" > /dev/null

                                                    curl "https://github.com/$REPO/graphs/clone-activity-data"
                                                    -s -b /tmp/cookies2.txt
                                                    -H "x-requested-with: XMLHttpRequest" | jq '.summary'


                                                    This'll grab the data from the same endpoint that Github's clone graph uses and spit out the totals from it. The data also includes per-day counts, replace .summary with just . to see those pretty-printed.






                                                    share|improve this answer























                                                      up vote
                                                      2
                                                      down vote










                                                      up vote
                                                      2
                                                      down vote









                                                      I ended up writing a scraper script to find my clone count:



                                                      #!/bin/sh
                                                      #
                                                      # This script requires:
                                                      # apt-get install html-xml-utils
                                                      # apt-get install jq
                                                      #
                                                      USERNAME=dougluce
                                                      PASSWORD="PASSWORD GOES HERE, BE CAREFUL!"
                                                      REPO="dougluce/node-autovivify"

                                                      TOKEN=`curl https://github.com/login -s -c /tmp/cookies.txt |
                                                      hxnormalize |
                                                      hxselect 'input[name=authenticity_token]' 2>/dev/null |
                                                      perl -lne 'print $1 if /value="(S+)"/'`

                                                      curl -X POST https://github.com/session
                                                      -s -b /tmp/cookies.txt -c /tmp/cookies2.txt
                                                      --data-urlencode commit="Sign in"
                                                      --data-urlencode authenticity_token="$TOKEN"
                                                      --data-urlencode login="$USERNAME"
                                                      --data-urlencode password="$PASSWORD" > /dev/null

                                                      curl "https://github.com/$REPO/graphs/clone-activity-data"
                                                      -s -b /tmp/cookies2.txt
                                                      -H "x-requested-with: XMLHttpRequest" | jq '.summary'


                                                      This'll grab the data from the same endpoint that Github's clone graph uses and spit out the totals from it. The data also includes per-day counts, replace .summary with just . to see those pretty-printed.






                                                      share|improve this answer












                                                      I ended up writing a scraper script to find my clone count:



                                                      #!/bin/sh
                                                      #
                                                      # This script requires:
                                                      # apt-get install html-xml-utils
                                                      # apt-get install jq
                                                      #
                                                      USERNAME=dougluce
                                                      PASSWORD="PASSWORD GOES HERE, BE CAREFUL!"
                                                      REPO="dougluce/node-autovivify"

                                                      TOKEN=`curl https://github.com/login -s -c /tmp/cookies.txt |
                                                      hxnormalize |
                                                      hxselect 'input[name=authenticity_token]' 2>/dev/null |
                                                      perl -lne 'print $1 if /value="(S+)"/'`

                                                      curl -X POST https://github.com/session
                                                      -s -b /tmp/cookies.txt -c /tmp/cookies2.txt
                                                      --data-urlencode commit="Sign in"
                                                      --data-urlencode authenticity_token="$TOKEN"
                                                      --data-urlencode login="$USERNAME"
                                                      --data-urlencode password="$PASSWORD" > /dev/null

                                                      curl "https://github.com/$REPO/graphs/clone-activity-data"
                                                      -s -b /tmp/cookies2.txt
                                                      -H "x-requested-with: XMLHttpRequest" | jq '.summary'


                                                      This'll grab the data from the same endpoint that Github's clone graph uses and spit out the totals from it. The data also includes per-day counts, replace .summary with just . to see those pretty-printed.







                                                      share|improve this answer












                                                      share|improve this answer



                                                      share|improve this answer










                                                      answered Mar 14 '16 at 20:57









                                                      Allen Luce

                                                      4,23722141




                                                      4,23722141






















                                                          up vote
                                                          2
                                                          down vote













                                                          To check the number of times a release file/package was downloaded you can go to https://githubstats0.firebaseapp.com



                                                          It gives you a total download count and a break up of of total downloads per release tag.






                                                          share|improve this answer

























                                                            up vote
                                                            2
                                                            down vote













                                                            To check the number of times a release file/package was downloaded you can go to https://githubstats0.firebaseapp.com



                                                            It gives you a total download count and a break up of of total downloads per release tag.






                                                            share|improve this answer























                                                              up vote
                                                              2
                                                              down vote










                                                              up vote
                                                              2
                                                              down vote









                                                              To check the number of times a release file/package was downloaded you can go to https://githubstats0.firebaseapp.com



                                                              It gives you a total download count and a break up of of total downloads per release tag.






                                                              share|improve this answer












                                                              To check the number of times a release file/package was downloaded you can go to https://githubstats0.firebaseapp.com



                                                              It gives you a total download count and a break up of of total downloads per release tag.







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Nov 11 at 5:23









                                                              Aveek Saha

                                                              211




                                                              211






















                                                                  up vote
                                                                  1
                                                                  down vote













                                                                  As already stated, you can get information about your Releases via the API.



                                                                  For those using WordPress, I developed this plugin: GitHub Release Downloads. It allows you to get the download count, links and more information for releases of GitHub repositories.



                                                                  To address the original question, the shortcode [grd_count user="User" repo="MyRepo"] will return the number of downloads for a repository. This number corresponds to the sum of all download count values of all releases for one GitHub repository.



                                                                  Example: Example






                                                                  share|improve this answer



























                                                                    up vote
                                                                    1
                                                                    down vote













                                                                    As already stated, you can get information about your Releases via the API.



                                                                    For those using WordPress, I developed this plugin: GitHub Release Downloads. It allows you to get the download count, links and more information for releases of GitHub repositories.



                                                                    To address the original question, the shortcode [grd_count user="User" repo="MyRepo"] will return the number of downloads for a repository. This number corresponds to the sum of all download count values of all releases for one GitHub repository.



                                                                    Example: Example






                                                                    share|improve this answer

























                                                                      up vote
                                                                      1
                                                                      down vote










                                                                      up vote
                                                                      1
                                                                      down vote









                                                                      As already stated, you can get information about your Releases via the API.



                                                                      For those using WordPress, I developed this plugin: GitHub Release Downloads. It allows you to get the download count, links and more information for releases of GitHub repositories.



                                                                      To address the original question, the shortcode [grd_count user="User" repo="MyRepo"] will return the number of downloads for a repository. This number corresponds to the sum of all download count values of all releases for one GitHub repository.



                                                                      Example: Example






                                                                      share|improve this answer














                                                                      As already stated, you can get information about your Releases via the API.



                                                                      For those using WordPress, I developed this plugin: GitHub Release Downloads. It allows you to get the download count, links and more information for releases of GitHub repositories.



                                                                      To address the original question, the shortcode [grd_count user="User" repo="MyRepo"] will return the number of downloads for a repository. This number corresponds to the sum of all download count values of all releases for one GitHub repository.



                                                                      Example: Example







                                                                      share|improve this answer














                                                                      share|improve this answer



                                                                      share|improve this answer








                                                                      edited Nov 18 '15 at 0:31

























                                                                      answered Mar 26 '15 at 0:10









                                                                      IvanRF

                                                                      4,52533651




                                                                      4,52533651






















                                                                          up vote
                                                                          0
                                                                          down vote













                                                                          To try to make this more clear:

                                                                          for this github project: stant/mdcsvimporter2015
                                                                          https://github.com/stant/mdcsvimporter2015

                                                                          with releases at
                                                                          https://github.com/stant/mdcsvimporter2015/releases



                                                                          go to http or https: (note added "api." and "/repos")
                                                                          https://api.github.com/repos/stant/mdcsvimporter2015/releases



                                                                          you will get this json output and you can search for "download_count":



                                                                              "download_count": 2,
                                                                          "created_at": "2015-02-24T18:20:06Z",
                                                                          "updated_at": "2015-02-24T18:20:07Z",
                                                                          "browser_download_url": "https://github.com/stant/mdcsvimporter2015/releases/download/v18/mdcsvimporter-beta-18.zip"


                                                                          or on command line do:

                                                                          wget --no-check-certificate https://api.github.com/repos/stant/mdcsvimporter2015/releases






                                                                          share|improve this answer





















                                                                          • As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                            – Jan Ehrhardt
                                                                            May 8 '15 at 22:09












                                                                          • I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                            – Stan Towianski
                                                                            May 10 '15 at 13:28












                                                                          • But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                            – Jan Ehrhardt
                                                                            May 11 '15 at 14:46










                                                                          • Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                            – Stan Towianski
                                                                            May 13 '15 at 5:12










                                                                          • Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                            – Jan Ehrhardt
                                                                            May 14 '15 at 9:43















                                                                          up vote
                                                                          0
                                                                          down vote













                                                                          To try to make this more clear:

                                                                          for this github project: stant/mdcsvimporter2015
                                                                          https://github.com/stant/mdcsvimporter2015

                                                                          with releases at
                                                                          https://github.com/stant/mdcsvimporter2015/releases



                                                                          go to http or https: (note added "api." and "/repos")
                                                                          https://api.github.com/repos/stant/mdcsvimporter2015/releases



                                                                          you will get this json output and you can search for "download_count":



                                                                              "download_count": 2,
                                                                          "created_at": "2015-02-24T18:20:06Z",
                                                                          "updated_at": "2015-02-24T18:20:07Z",
                                                                          "browser_download_url": "https://github.com/stant/mdcsvimporter2015/releases/download/v18/mdcsvimporter-beta-18.zip"


                                                                          or on command line do:

                                                                          wget --no-check-certificate https://api.github.com/repos/stant/mdcsvimporter2015/releases






                                                                          share|improve this answer





















                                                                          • As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                            – Jan Ehrhardt
                                                                            May 8 '15 at 22:09












                                                                          • I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                            – Stan Towianski
                                                                            May 10 '15 at 13:28












                                                                          • But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                            – Jan Ehrhardt
                                                                            May 11 '15 at 14:46










                                                                          • Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                            – Stan Towianski
                                                                            May 13 '15 at 5:12










                                                                          • Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                            – Jan Ehrhardt
                                                                            May 14 '15 at 9:43













                                                                          up vote
                                                                          0
                                                                          down vote










                                                                          up vote
                                                                          0
                                                                          down vote









                                                                          To try to make this more clear:

                                                                          for this github project: stant/mdcsvimporter2015
                                                                          https://github.com/stant/mdcsvimporter2015

                                                                          with releases at
                                                                          https://github.com/stant/mdcsvimporter2015/releases



                                                                          go to http or https: (note added "api." and "/repos")
                                                                          https://api.github.com/repos/stant/mdcsvimporter2015/releases



                                                                          you will get this json output and you can search for "download_count":



                                                                              "download_count": 2,
                                                                          "created_at": "2015-02-24T18:20:06Z",
                                                                          "updated_at": "2015-02-24T18:20:07Z",
                                                                          "browser_download_url": "https://github.com/stant/mdcsvimporter2015/releases/download/v18/mdcsvimporter-beta-18.zip"


                                                                          or on command line do:

                                                                          wget --no-check-certificate https://api.github.com/repos/stant/mdcsvimporter2015/releases






                                                                          share|improve this answer












                                                                          To try to make this more clear:

                                                                          for this github project: stant/mdcsvimporter2015
                                                                          https://github.com/stant/mdcsvimporter2015

                                                                          with releases at
                                                                          https://github.com/stant/mdcsvimporter2015/releases



                                                                          go to http or https: (note added "api." and "/repos")
                                                                          https://api.github.com/repos/stant/mdcsvimporter2015/releases



                                                                          you will get this json output and you can search for "download_count":



                                                                              "download_count": 2,
                                                                          "created_at": "2015-02-24T18:20:06Z",
                                                                          "updated_at": "2015-02-24T18:20:07Z",
                                                                          "browser_download_url": "https://github.com/stant/mdcsvimporter2015/releases/download/v18/mdcsvimporter-beta-18.zip"


                                                                          or on command line do:

                                                                          wget --no-check-certificate https://api.github.com/repos/stant/mdcsvimporter2015/releases







                                                                          share|improve this answer












                                                                          share|improve this answer



                                                                          share|improve this answer










                                                                          answered Feb 25 '15 at 0:53









                                                                          Stan Towianski

                                                                          1974




                                                                          1974












                                                                          • As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                            – Jan Ehrhardt
                                                                            May 8 '15 at 22:09












                                                                          • I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                            – Stan Towianski
                                                                            May 10 '15 at 13:28












                                                                          • But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                            – Jan Ehrhardt
                                                                            May 11 '15 at 14:46










                                                                          • Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                            – Stan Towianski
                                                                            May 13 '15 at 5:12










                                                                          • Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                            – Jan Ehrhardt
                                                                            May 14 '15 at 9:43


















                                                                          • As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                            – Jan Ehrhardt
                                                                            May 8 '15 at 22:09












                                                                          • I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                            – Stan Towianski
                                                                            May 10 '15 at 13:28












                                                                          • But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                            – Jan Ehrhardt
                                                                            May 11 '15 at 14:46










                                                                          • Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                            – Stan Towianski
                                                                            May 13 '15 at 5:12










                                                                          • Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                            – Jan Ehrhardt
                                                                            May 14 '15 at 9:43
















                                                                          As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                          – Jan Ehrhardt
                                                                          May 8 '15 at 22:09






                                                                          As far as I can see github only counts the first of the three files you offer for downloading, like mdcsvimporter-beta-18.zip. Did you ever fiind a way to get a download_count of things like v19.zip?
                                                                          – Jan Ehrhardt
                                                                          May 8 '15 at 22:09














                                                                          I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                          – Stan Towianski
                                                                          May 10 '15 at 13:28






                                                                          I only have 3 releases for md2015, and v19 is the first one that shows. v19 came after this post so it's not shown here. Did you go to the url :-) ? "download_count": 31, "created_at": "2015-03-26T04:22:13Z", "updated_at": "2015-03-26T04:22:13Z", "browser_download_url":
                                                                          – Stan Towianski
                                                                          May 10 '15 at 13:28














                                                                          But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                          – Jan Ehrhardt
                                                                          May 11 '15 at 14:46




                                                                          But as far as I can see Github does not count the downloads of github.com/stant/mdcsvimporter2015/archive/v19.zip and github.com/stant/mdcsvimporter2015/archive/v18-alpha.tar.gz
                                                                          – Jan Ehrhardt
                                                                          May 11 '15 at 14:46












                                                                          Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                          – Stan Towianski
                                                                          May 13 '15 at 5:12




                                                                          Hi. I'm not even sure where you came up with those download url's, but that is a question for github. It does only seem to count the files I release (3), and not even the source zip files that it creates (another 2 per my release). I wrote a java app for myself that I run to make this call, get the json back, and parse out and show just the download count.
                                                                          – Stan Towianski
                                                                          May 13 '15 at 5:12












                                                                          Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                          – Jan Ehrhardt
                                                                          May 14 '15 at 9:43




                                                                          Too bad. Apparently Github is not providing the info we need (anymore?). Of the 3*3 files you have at github.com/stant/mdcsvimporter2015/releases it only reports the doenload_count of the release file it self, not of the *.tar.gz and the *.zip files. I will make the a separate answer as it affects all the other solutions.
                                                                          – Jan Ehrhardt
                                                                          May 14 '15 at 9:43










                                                                          up vote
                                                                          0
                                                                          down vote













                                                                          For those who need the solution in Python, I wrote a simple script.





                                                                          Python Script:




                                                                          • GitHub Download Stats




                                                                          Usage:



                                                                          ghstats.py [user] [repo] [tag] [options]




                                                                          • Arguments

                                                                          • Examples




                                                                          Support:




                                                                          • Supports both Python 2 and Python 3 out of the box.

                                                                          • Can be used as both a standalone and a Python module.






                                                                          share|improve this answer



























                                                                            up vote
                                                                            0
                                                                            down vote













                                                                            For those who need the solution in Python, I wrote a simple script.





                                                                            Python Script:




                                                                            • GitHub Download Stats




                                                                            Usage:



                                                                            ghstats.py [user] [repo] [tag] [options]




                                                                            • Arguments

                                                                            • Examples




                                                                            Support:




                                                                            • Supports both Python 2 and Python 3 out of the box.

                                                                            • Can be used as both a standalone and a Python module.






                                                                            share|improve this answer

























                                                                              up vote
                                                                              0
                                                                              down vote










                                                                              up vote
                                                                              0
                                                                              down vote









                                                                              For those who need the solution in Python, I wrote a simple script.





                                                                              Python Script:




                                                                              • GitHub Download Stats




                                                                              Usage:



                                                                              ghstats.py [user] [repo] [tag] [options]




                                                                              • Arguments

                                                                              • Examples




                                                                              Support:




                                                                              • Supports both Python 2 and Python 3 out of the box.

                                                                              • Can be used as both a standalone and a Python module.






                                                                              share|improve this answer














                                                                              For those who need the solution in Python, I wrote a simple script.





                                                                              Python Script:




                                                                              • GitHub Download Stats




                                                                              Usage:



                                                                              ghstats.py [user] [repo] [tag] [options]




                                                                              • Arguments

                                                                              • Examples




                                                                              Support:




                                                                              • Supports both Python 2 and Python 3 out of the box.

                                                                              • Can be used as both a standalone and a Python module.







                                                                              share|improve this answer














                                                                              share|improve this answer



                                                                              share|improve this answer








                                                                              edited Nov 23 '16 at 16:29

























                                                                              answered Oct 31 '15 at 17:35









                                                                              kefir500

                                                                              2,69142132




                                                                              2,69142132






























                                                                                  draft saved

                                                                                  draft discarded




















































                                                                                  Thanks for contributing an answer to Stack Overflow!


                                                                                  • Please be sure to answer the question. Provide details and share your research!

                                                                                  But avoid



                                                                                  • Asking for help, clarification, or responding to other answers.

                                                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                                                  To learn more, see our tips on writing great answers.





                                                                                  Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                                                  Please pay close attention to the following guidance:


                                                                                  • Please be sure to answer the question. Provide details and share your research!

                                                                                  But avoid



                                                                                  • Asking for help, clarification, or responding to other answers.

                                                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                                                  To learn more, see our tips on writing great answers.




                                                                                  draft saved


                                                                                  draft discarded














                                                                                  StackExchange.ready(
                                                                                  function () {
                                                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4338358%2fgithub-can-i-see-the-number-of-downloads-for-a-repo%23new-answer', 'question_page');
                                                                                  }
                                                                                  );

                                                                                  Post as a guest















                                                                                  Required, but never shown





















































                                                                                  Required, but never shown














                                                                                  Required, but never shown












                                                                                  Required, but never shown







                                                                                  Required, but never shown

































                                                                                  Required, but never shown














                                                                                  Required, but never shown












                                                                                  Required, but never shown







                                                                                  Required, but never shown







                                                                                  Popular posts from this blog

                                                                                  Florida Star v. B. J. F.

                                                                                  Error while running script in elastic search , gateway timeout

                                                                                  Adding quotations to stringified JSON object values