Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
npm REST API endpoints for package downloads stats
                                      ↓ start date    : ↓ end date (leave blank for stats for one day)
https://api.npmjs.org/downloads/range/{yyyy}-{mm}-{dd}:{yyyy}-{mm}-{dd}/{package}

e.g. get downloads stats for next from 2020/01/01 to 2021/01/01 (1 year):

https://api.npmjs.org/downloads/range/2020-01-01:2021-01-01/next

e.g. get downloads stats for react for 2021/01/01:

https://api.npmjs.org/downloads/range/2021-01-01/react
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment