NPM Registry API Overview
masterThe NPM Registry API provides programmatic access to the registry's data and services. All communication is performed over HTTPS or HTTP using the registry.npmjs.org domain, and all data is exchanged in JSON format.
The API supports several core functional areas:
- Package: Operations related to package metadata and publishing.
- User: User-related information and management.
- Search: Querying the registry for packages.
- Token: Managing authentication tokens.
- Trend: Accessing trending package data.
$ curl -i https://registry.npmjs.org
HTTP/1.1 200 OK
{
"db_name": "registry",
"doc_count": 123772,
"doc_del_count": 377,
"update_seq": 685591,
"purge_seq": 0,
"compact_running": false,
"disk_size": 634187899,
"data_size": 445454185,
"instance_start_time": "1420670152481614",
"disk_format_version": 6,
"committed_update_seq": 685591
}