npm

List npm org or scope packages

List the packages an npm org or scope can publish, 25 per page.

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

API key (`sfk_...`)

Parameters
3
namestringrequiredquery

npm org or scope name, e.g. `babel`. Case-sensitive.

max 214 chars

pageintegeroptionalquery

1-based page number. Default: 1.

≥ 1 · ≤ 10000

cursorstringoptionalquery

Cursor from `page.nextCursor` of the previous response. It only continues the same lookup and filters.

min 1 chars · max 2048 chars

Response fields
35

Endpoint-specific response payload.

datalookupStatus
string

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

one of: found, not_found

dataname
string

Org or scope name.

datascopeType
stringnullable

What npm actually stores for the name. When it is `user`, this route pages that user's package list the same way it pages an org.

one of: user, org, null

One page of packages.

datapackages[]name
string

Package name.

datapackages[]description
stringnullable

Description.

datapackages[]version
stringnullable

Version npm shows for the package.

datapackages[]distTags
object

Dist-tags.

Maintainer usernames.

datapackages[]maintainers[]
stringoptional

Who published the version npm shows. Avatars are not exposed.

datapackages[]publisherusername
stringnullable

Publishing username.

The last publication npm lists.

datapackages[]lastPublishusername
stringnullable

Who published last.

datapackages[]lastPublishat
stringnullable

ISO 8601 UTC timestamp, or null when npm has none.

datapackages[]publishedAt
stringnullable

ISO 8601 UTC timestamp, or null when npm has none.

datapackages[]createdAt
stringnullable

ISO 8601 UTC timestamp, or null when npm has none.

datapackages[]updatedAt
stringnullable

ISO 8601 UTC timestamp, or null when npm has none.

Type information npm lists.

The TypeScript types entry, when present.

datapackages[]typestypescriptbundled
stringnullable

Bundled declaration path.

datapackages[]typestypescriptpackage
stringnullable

DefinitelyTyped package name.

datapackages[]isHighImpact
booleannullable

Whether npm marks the package as high impact.

datatotal
integernullable

How many packages the owner can publish, when a count is available.

≥ 0

Pagination state for this page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Opaque cursor for the next request; null on the last page.

datapagepage
integeroptional

The 1-based page number of this response, when numbered.

≥ 0

datapageperPage
integeroptional

Rows per page, when fixed.

≥ 0

datapagetotal
integernullableoptional

Total rows, or null when npm does not publish one.

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

Responses

npm org packages.