Get Download count with api

It woulb be nice, if the download count is available trough a API to use it with badgets (e.g. https://shields.io)