DevelopmentPublic API
npm Registry
Query information about your favorite Node.js libraries programatically
Before you call it
What this listing means in practice
No key to obtain
You can make a request immediately. Be considerate with volume anyway: open APIs often publish informal rate limits, and some will block clients that hammer them.
HTTPS supported
Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.
CORS not confirmed
If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.
Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.
https://github.com/npm/registry/blob/master/docs/REGISTRY-API.mdNo API calls are proxied by this directory. Links go directly to the provider.
API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.
Overview
About npm Registry
npm Registry needs no API key. That puts it among 107 of the 220 development APIs we list that you can try without signing up.
It supports HTTPS but CORS is not confirmed, so plan to call it from a server or serverless function. That is true for 105 of the 220 APIs in this category.
The documentation is hosted on GitHub (github.com), which usually means an open-source or community-run project. Check the repository's recent commits and open issues to see whether it is still maintained.
Development APIs in general
The biggest category: tools developers use while building software. Think IP lookups, screenshot services, placeholder data, code runners, status pages and countless small utilities.
What people build with them
- Adding a feature without building the backend for it
- Testing and debugging HTTP clients
- Automating chores in scripts and CI
Watch out for
Small utility APIs come and go. Wrap each one behind your own function so you can swap providers without touching the rest of your code.
First request
Calling npm Registry
Run this on a server or in a serverless function, because CORS is not confirmed.
JavaScript// Replace the path with an endpoint from the npm Registry docs
const res = await fetch("https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md/<endpoint>");
if (!res.ok) throw new Error(`npm Registry returned ${res.status}`);
const data = await res.json();Compare
npm Registry vs similar APIs
| API | Auth | HTTPS | CORS |
|---|---|---|---|
| npm Registry | No key | Yes | Unknown |
| DigMyName | No key | Yes | Yes |
| crates.io | No key | Yes | Yes |
| CountAPI | No key | Yes | Yes |
| CORS Proxy | No key | Yes | Yes |
| Codeberg | No key | Yes | Yes |
FAQ
Common questions about npm Registry
Does npm Registry need an API key?
No. npm Registry is listed with no authentication, so you can send a request without registering.
Can I call npm Registry from the browser?
CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.
Is npm Registry free?
No key is required, which usually means free access, but providers can still limit volume. Check npm Registry's docs for rate limits and fair-use terms.
What are some alternatives to npm Registry?
Other development APIs in the directory include DigMyName (no key), crates.io (no key), CountAPI (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.
Same category
More Development APIs
Next step
Keep looking until the constraints fit.
Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.