Get npm user
Get an npm user's profile: display name, GitHub handle, dates and package count.
Headers
Get your API keyAPI key (`sfk_...`)
npm username, e.g. `sindresorhus`. Case-sensitive.
max 214 chars
Endpoint-specific response payload.
Whether the item exists. Every outcome is HTTP 200; branch on this field.
one of: found, not_found
The user when found; otherwise null.
Username or org/scope name.
What npm actually stores. The `/org/` route can return a user scope and `/~` can return an org.
one of: user, org
Full name the account set.
GitHub username the account linked.
Description the org set.
Whether the org enforces two-factor authentication.
When the scope was created.
When the scope was last changed.
Orgs the user belongs to. Currently always an empty array, including for maintainers of orgs.
One org the user belongs to, when the list is populated. The list is currently always empty, so its fields are not narrowed.
How many packages the owner can publish.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/npm/user?username=sindresorhus" \
-H "x-api-key: YOUR_API_KEY"Responses
npm user.