npm API
npm (npmjs.com) has 3 public methods: search packages, get download stats and get package. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.
Unofficial. Not affiliated with or endorsed by npm.
Methods
3Searches the npm registry for JavaScript packages by description or keywords, in npm's search order, and returns each package's latest version, weekly downloads and publish date.
Returns name, latest version, description, weekly downloads, last publish date, publisher, npm page link, search score
Readnpmjs.com/search_packagesReturns total and daily or Monday-start weekly npm downloads for a package over the last week, month, or year.
Returns package, package_url, start_date, end_date, total_downloads, downloads by day or week
Readnpmjs.com/get_download_statsLooks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
Returns name, latest version, description, weekly downloads, license, repository, homepage, maintainers, dates, version count, npm link
Readnpmjs.com/get_package