npm / download-counts

Background jobs and a minimal service for collecting and delivering download counts
329 stars 27 forks source link

download counts for all packages, per package #10

Closed spion closed 7 years ago

spion commented 9 years ago

Hi,

I would like to fix npmsearch, an old module of mine which uses a combination of factors to give nice search results for npm.

To do this with the current API I would need to send 100K requests to fetch weekly download counts for each package. Thats probably a bad idea, right? But it probably wouldn't be too bad to do one request and receive a list with 100K download counters.

Would you be open to having another API endpoint for this?

zeke commented 9 years ago

:+1:

seldo commented 9 years ago

I have been meaning to do some work on the downloads API to provide various enhancements, but it's unlikely to happen in 2014. If you're willing to put some rate-limiting on your requests I'm happy to let you make the shit-ton of calls in the meantime.

seldo commented 7 years ago

The bulk endpoint addresses this use-case:

https://github.com/npm/download-counts#bulk-queries