{"action":"opened","issue":{"url":"https://api.github.com/repos/igrigorik/githubarchive.org/issues/98","labels_url":"https://api.github.com/repos/igrigorik/githubarchive.org/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/igrigorik/githubarchive.org/issues/98/comments","events_url":"https://api.github.com/repos/igrigorik/githubarchive.org/issues/98/events","html_url":"https://github.com/igrigorik/githubarchive.org/issues/98","id":65844455,"number":98,"title":"Getting total downloads for a release/repo","user":{"login":"alexweissman","id":5004534,"avatar_url":"https://avatars.githubusercontent.com/u/5004534?v=3","gravatar_id":"","url":"https://api.github.com/users/alexweissman","html_url":"https://github.com/alexweissman","followers_url":"https://api.github.com/users/alexweissman/followers","following_url":"https://api.github.com/users/alexweissman/following{/other_user}","gists_url":"https://api.github.com/users/alexweissman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexweissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexweissman/subscriptions","organizations_url":"https://api.github.com/users/alexweissman/orgs","repos_url":"https://api.github.com/users/alexweissman/repos","events_url":"https://api.github.com/users/alexweissman/events{/privacy}","received_events_url":"https://api.github.com/users/alexweissman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T05:43:42Z","updated_at":"2015-04-02T05:43:42Z","closed_at":null,"body":"I'm trying to fetch the total number of downloads for each repo in a given [day,month,year].  From what I understand according to the [GitHub API](https://help.github.com/articles/getting-the-download-count-for-your-releases/), this is only accessible through the Releases API.\r\n\r\nThis is fine, but when I query the githubarchive.org dataset, I get a different result from when I directly ping GitHub's API.  This:\r\n```\r\nSELECT payload from [githubarchive:month.201501]\r\nWHERE type = 'ReleaseEvent'\r\nand repo_name = 'twbs/bootstrap'\r\n```\r\ngives me a `download_count` of `0`.  But when I go to the release API (https://api.github.com/repos/twbs/bootstrap/releases/864625), I get a `download_count` of ~800K.  I guess this has something to do with the record in githubarchive only being created when the ReleaseEvent happens, but not updated with new download counts.\r\n\r\nSo, is there another way I can get the current download count for a particular release?\r\n"}}