npm

Get npm user

Get an npm user's profile: display name, GitHub handle, dates and package count.

GET/v1/npm/user
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
usernamestringrequiredquery

npm username, e.g. `sindresorhus`. Case-sensitive.

max 214 chars

Response fields
18

Endpoint-specific response payload.

datalookupStatus
string

Whether the item exists. Every outcome is HTTP 200; branch on this field.

one of: found, not_found

The user when found; otherwise null.

datausername
string

Username or org/scope name.

datausertype
string

What npm actually stores. The `/org/` route can return a user scope and `/~` can return an org.

one of: user, org

datauserfullName
stringnullable

Full name the account set.

datausergithubUsername
stringnullable

GitHub username the account linked.

datauserdescription
stringnullable

Description the org set.

datauserrequiresTwoFactor
booleannullable

Whether the org enforces two-factor authentication.

datausercreatedAt
stringnullable

When the scope was created.

datauserupdatedAt
stringnullable

When the scope was last changed.

Orgs the user belongs to. Currently always an empty array, including for maintainers of orgs.

datauserorgs[]
objectoptional

One org the user belongs to, when the list is populated. The list is currently always empty, so its fields are not narrowed.

datauserpackagesTotal
integernullable

How many packages the owner can publish.

≥ 0

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

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.