npm

Get npm org or scope

Get an npm org or scope profile, including the type npm actually stores.

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

API key (`sfk_...`)

Parameters
1
namestringrequiredquery

npm org or scope name, e.g. `babel`. 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 org or scope when found; otherwise null.

dataorgname
string

Username or org/scope name.

dataorgtype
string

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

one of: user, org

dataorgfullName
stringnullable

Full name the account set.

dataorggithubUsername
stringnullable

GitHub username the account linked.

dataorgdescription
stringnullable

Description the org set.

dataorgrequiresTwoFactor
booleannullable

Whether the org enforces two-factor authentication.

dataorgcreatedAt
stringnullable

When the scope was created.

dataorgupdatedAt
stringnullable

When the scope was last changed.

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

dataorgorgs[]
objectoptional

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

dataorgpackagesTotal
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/org?name=babel" \
  -H "x-api-key: YOUR_API_KEY"

Responses

npm org.