npm

List npm package dependents

List packages that depend on an npm package, 36 per page; a page past the served list is empty.

GET/v1/npm/package/dependents
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
namestringrequiredquery

npm package name, e.g. `express`, `lodash.merge`, `@types/node` or `--file--1`. Names are case-sensitive (`Express` is a different package) and keep legacy punctuation such as a leading `-`.

max 214 chars

pageintegeroptionalquery

1-based page number. Each page carries 36 rows and the list stops at page 11; a page past it is an empty page. 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
33

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

Package name the list is about.

Packages that depend on it. npm serves at most 396 names, 36 per page; this is not the full dependents count.

datadependents[]name
string

Package name.

datadependents[]description
stringnullable

Description.

datadependents[]version
stringnullable

Version npm shows for the package.

datadependents[]distTags
object

Dist-tags.

Maintainer usernames.

datadependents[]maintainers[]
stringoptional

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

datadependents[]publisherusername
stringnullable

Publishing username.

The last publication npm lists.

datadependents[]lastPublishusername
stringnullable

Who published last.

datadependents[]lastPublishat
stringnullable

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

datadependents[]publishedAt
stringnullable

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

datadependents[]createdAt
stringnullable

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

datadependents[]updatedAt
stringnullable

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

Type information npm lists.

The TypeScript types entry, when present.

datadependents[]typestypescriptbundled
stringnullable

Bundled declaration path.

datadependents[]typestypescriptpackage
stringnullable

DefinitelyTyped package name.

datadependents[]isHighImpact
booleannullable

Whether npm marks the package as high impact.

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/package/dependents?name=express" \
  -H "x-api-key: YOUR_API_KEY"

Responses

npm dependents.