List npm package versions
List an npm package's versions newest first, with publication time, deprecation, provenance, integrity and sizes.
Headers
Get your API keyAPI key (`sfk_...`)
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
Versions per page, 1 to 200. Default: 100.
≥ 1 · ≤ 200
Cursor from `page.nextCursor` of the previous response. It only continues the same lookup and filters.
min 1 chars · max 2048 chars
Endpoint-specific response payload.
Whether the item exists. Every outcome is HTTP 200; branch on this field.
one of: found, not_found
Package name.
A page of versions, newest first.
Version.
ISO 8601 UTC timestamp, or null when npm has none.
Deprecation message, or null.
Whether the version carries a provenance attestation.
Tarball integrity hash.
Unpacked bytes.
≥ 0
Files in the tarball.
≥ 0
How many versions the package has.
≥ 0
What was unpublished; present on a tombstone.
ISO 8601 UTC timestamp, or null when npm has none.
Versions that were unpublished.
Pagination state for this page.
Whether another page is available.
Opaque cursor for the next request; null on the last page.
The 1-based page number of this response, when numbered.
≥ 0
Rows per page, when fixed.
≥ 0
Total rows, or null when npm does not publish one.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/npm/package/versions?name=express" \
-H "x-api-key: YOUR_API_KEY"Responses
npm versions.