npm Registry
Query information about your favorite Node.js libraries programatically
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Development
- Data source
- public-apis + marcelscruz
- 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 | ↗ |
| Abacus Free and simple counting service. You can use it to track page hits and specific events | No auth | Yes | Unknown | ↗ |
| Agent Gateway 34+ AI agent infrastructure services including memory, wallets, and scheduling | API Key | Yes | Unknown | ↗ |
| AgentDeals Search and compare developer free tiers, startup credits, and pricing changes | No auth | Yes | Unknown | ↗ |
| Agify.io Estimates the age from a first name | No auth | Yes | Yes | ↗ |