# npm Registry API: npm login asks username and password

Source page: https://www.agenticgrowthhackers.com/datasheets/npm-registry-api/
As of: 2026-11-24

Sign-in, account terms, a monthly request line and data-use rules for the npm Registry API, drawn from 12 passages on 6 provider pages.

The npm login command prompts for a username, password and email, and publishing requires 2FA or a granular access token with bypass 2FA enabled. The npm Open Source Terms draw a line on requests in a single month-long period by any single individual, organization or group of affiliated companies. Of the 104 other APIs, 67 state more limit passages.

## Signing in and access

Publishing requires either 2FA enabled on the account or a granular access token with bypass 2FA enabled. An Account is required to access features of some npm Services, including npm Open Source. Creating organization-scoped packages requires creating an organization first.



| Field | In the provider's words | Source |
| --- | --- | --- |
| How a caller signs in | When prompted, provide your username, password, and email address. user@host:~$ npm login npm notice Log in on https://registry.npmjs.org/ Username: mona Password: Email: (this IS public) mona@github.com npm notice Open https://www.npmjs.com/login/913c3ab1-89a0-44bd-be8d-d946e2e906f0 to use your security key for authentication or enter | [docs.npmjs.com](https://docs.npmjs.com/accessing-npm-using-2fa/), read 2026-11-24 |
| How a caller signs in | Copy the generated token Enter the one-time password into the CLI prompt. Enter one-time password: Sign in from the command line using --auth-type=web npm 8.14.0 and higher support login flow through the browsers. This will become the default behavior for the npm public registry in npm 9. | [docs.npmjs.com](https://docs.npmjs.com/accessing-npm-using-2fa/), read 2026-11-24 |
| How a caller signs in | We strongly recommend enabling 2FA on your account as soon as possible after you sign up. Important: Publishing to npm requires either: Two-factor authentication (2FA) enabled on your account, OR A granular access token with bypass 2FA enabled Starting August 2026, account-identity and account-governance actions cannot be performed with a bypass-2FA token. | [docs.npmjs.com](https://docs.npmjs.com/about-two-factor-authentication/), read 2026-11-24 |
| What access requires | You must create and log into an Account to access features of some npm Services, including npm Open Source. | [docs.npmjs.com](https://docs.npmjs.com/policies/open-source-terms/), read 2026-11-24 |
| What access requires | Conditions Your permission to use npm Open Source, as well as any permission you may have to use Paid Services, are subject to the following conditions: You must be at least 13 years of age to use npm Services. You may not use npm Services after npm says you may not, such as by disabling your Account. | [docs.npmjs.com](https://docs.npmjs.com/policies/open-source-terms/), read 2026-11-24 |
| What access requires | Note: To create organization-scoped packages, you must first create an organization. For more information, see " Creating an organization ". | [docs.npmjs.com](https://docs.npmjs.com/package-scope-access-level-and-visibility/), read 2026-11-24 |



## Limits

The usage terms draw a line on requests to npm Services in a single month-long period by any single individual, organization, or group of affiliated companies. The median across the sheet is 3 passages stating a limit.



| Field | In the provider's words | Source |
| --- | --- | --- |
| Stated limits | But to draw one clear line, under no circumstances are five million requests to npm Services in a single month-long period by any single individual, organization, or group of affiliated companies remotely reasonable. | [docs.npmjs.com](https://docs.npmjs.com/policies/open-source-terms/), read 2026-11-24 |



## Prices and free allowance

Free usage of npmjs.com and the npm public registry falls under the npm Open Source Terms. Passages stating a price for npm Registry API number 0.



| Field | In the provider's words | Source |
| --- | --- | --- |
| Free allowance | Free usage of https://www.npmjs.com , and the npm public registry are covered by the npm Open Source Terms at https://docs.npmjs.com/policies/open-source-terms . | [docs.npmjs.com](https://docs.npmjs.com/policies/terms/), read 2026-11-24 |



## Rules a caller keeps

The terms forbid straining npm Services infrastructure with an unreasonable volume of requests, or with requests designed to impose an unreasonable load on the underlying IT systems. Security data about Packages, such as vulnerability reports and audit status reports, may be accessed and used for personal or internal business purposes alone.



| Field | In the provider's words | Source |
| --- | --- | --- |
| Rules on bots, automation and spam | You will not strain infrastructure of npm Services with an unreasonable volume of requests, or requests designed to impose an unreasonable load on IT systems underlying npm Services. | [docs.npmjs.com](https://docs.npmjs.com/policies/open-source-terms/), read 2026-11-24 |
| Rules on using the data | You may access and use data about the security of Packages, such as vulnerability reports, audit status reports, and supplementary security documentation, only for your own personal or internal business purposes. | [docs.npmjs.com](https://docs.npmjs.com/policies/open-source-terms/), read 2026-11-24 |



## Dated changes

The 2FA docs set a start date after which account-identity and account-governance actions cannot be performed with a bypass-2FA token. Of the APIs in the sheet, 66 have a passage on dated changes.



| Field | In the provider's words | Source |
| --- | --- | --- |
| Dated changes | Starting August 2026, account-identity and account-governance actions cannot be performed with a bypass-2FA token. | [docs.npmjs.com](https://docs.npmjs.com/about-two-factor-authentication/), read 2026-11-24 |



## Interface and support

Registry package metadata carries a dist object with a shasum and a tarball url, usually under the registry host's package path. Across the sheet, 98 APIs carry a passage on the interface.



| Field | In the provider's words | Source |
| --- | --- | --- |
| Interface | dist: and object containing a shasum and tarball url, usually in the form of https://registry.npmjs.org/<name>/-/<name>-<version>.tgz | [github.com](https://github.com/npm/registry/blob/main/docs/REGISTRY-API.md), read 2026-11-24 |



## Not stated on the pages read

No page read for npm Registry API states official client libraries.



| Field | Finding |
| --- | --- |
| Official client libraries | Not stated on the pages read |



## Beside the rest of the sheet

The npm Registry API pages state 8 of the 12 fields the sheet records, and the median across the sheet is 7. Of the 104 other APIs, 20 state more fields and 66 state fewer. Among the 7 developer data APIs, 0 of the others state more fields.

Official client libraries are not stated on the pages read. Rule passages for npm Registry API number 2, while the median across the sheet is 1. In developer data, 1 other API has more rule passages and 4 have fewer.

## Our probe

On 2026-11-24 our probe sent the documented GET that needs no key, with a declared user agent. It came back with HTTP 200 in 49 milliseconds.



| Call | Status | Milliseconds | When (UTC) | Result |
| --- | --- | --- | --- | --- |
| https://registry.npmjs.org/express/latest | 200 | 49 | 2026-11-24T15:21:32Z | answered as documented |



## Pages read

Our fetcher read 7 pages of the provider on 2026-11-24. The 12 passages of six words or more on this sheet were quoted from 6 provider pages.



| Page | Kind | Read |
| --- | --- | --- |
| https://docs.npmjs.com/about-two-factor-authentication | auth | 2026-11-24 |
| https://docs.npmjs.com/accessing-npm-using-2fa | auth | 2026-11-24 |
| https://docs.npmjs.com/configuring-two-factor-authentication | auth | 2026-11-24 |
| https://docs.npmjs.com/package-scope-access-level-and-visibility | auth | 2026-11-24 |
| https://docs.npmjs.com/policies/open-source-terms | terms | 2026-11-24 |
| https://docs.npmjs.com/policies/terms | terms | 2026-11-24 |
| https://github.com/npm/registry/blob/main/docs/REGISTRY-API.md | docs | 2026-11-24 |
