npm

List npm package names

List npm package names in registry key order, with an opaque cursor.

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

API key (`sfk_...`)

Parameters
3
afterstringquery

Inclusive start: the named package is the first row. Leave it out to start at the beginning.

max 214 chars

limitintegerquery

Names per page, 1 to 1000. Default: 1000.

≥ 1 · ≤ 1000

cursorstringquery

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

min 1 chars · max 2048 chars

Response fields
15

Endpoint-specific response payload.

A page of names.

datapackages[]name
string

Package name, as the registry keys it.

datatotal
integer

Documents in the registry for this page.

≥ 0

dataoffset
integernullable

Where this page starts in the registry's key order.

≥ 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/registry/packages?after=express&limit=100" \
  -H "x-api-key: YOUR_API_KEY"

Responses

npm package names.