npm Registry
Query information about your favorite Node.js libraries programatically
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Development
- Documentation / URL
- https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md
Overview
The npm Registry API is the backend behind npm install — package metadata, versions, tarballs, downloads, and search — all keyless and free. The definitive data source for package analytics, dependency graphs, and npm tooling.
Quick Start
Latest version metadata (verified live — react):
curl "https://registry.npmjs.org/react/latest"
{
"name": "react",
"version": "19.0.0",
"description": "React is a JavaScript library for building user interfaces.",
"dist": { "tarball": "https://registry.npmjs.org/react/-/react-19.0.0.tgz" }
}
Full package metadata (all versions):
curl "https://registry.npmjs.org/react"
Download counts:
curl "https://api.npmjs.org/downloads/point/last-week/react"
curl "https://api.npmjs.org/downloads/range/2026-01-01:2026-08-22/react"
Search:
curl "https://registry.npmjs.org/-/v1/search?text=state%20management&size=5"
Authentication
None for reads — keyless.
Rate Limits & Notes
- Reads are free; heavy crawlers should use the
Accept: application/vnd.npm.install-v1+jsonheader (abbreviated metadata). registry.npmjs.orgserves package data;api.npmjs.orgserves download stats.- The full metadata doc can be large (all versions) — request
/latestor use abbreviated metadata for speed. - CouchDB-style
_id/_revfields are present in raw docs — ignore them.
FAQ
Is the npm Registry API free? Yes — reads are free and keyless.
How do I get download counts?
https://api.npmjs.org/downloads/point/last-month/<package>.
How do I keep responses small?
Use /latest or the abbreviated-metadata Accept header.
More in Development
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 24 Pull Requests Project to promote open source collaboration during December | No auth | Yes | Yes | ↗ |
| Agify.io Estimates the age from a first name | No auth | Yes | Yes | ↗ |
| Amazonscraperapi Amazon product, search & batch scraping API with residential proxies (1000 free) | API Key | Yes | No | ↗ |
| AmberOne Turn any website into a build-ready Android, iOS, PWA or Electron app project | API Key | Yes | No | ↗ |
| API Grátis Multiples services and public APIs | No auth | Yes | Unknown | ↗ |