Wednesday, May 20, 2015

GitHub: Getting the download count for your releases

Do you own a GitHub repository? Did you ever wonder how many people downloaded your releases? Apparently there's an API for that!

For example, you can get the metadata of your latest release by making a GET request:
https://api.github.com/repos/<username>/<repo_name>/releases/latest

It returns a json payload, which has a download_count for each asset.


Ref:
Getting the download count for your releases - User Documentation
Releases | GitHub API

No comments: