docs / packages

Package Registries API

Package Registries API

base /packages/v17 endpoints
post/packages/v1/package1 credit

full package metadata (latest version normalized)

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
Try in playground →
post/packages/v1/versions1 credit

paginated version list for a package

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
page = 1optional1–1-based page number for paginated lists (versions / search).
page_size = 50optional1–250Results per page (1-250, default 50). Larger values are clamped.
Try in playground →
post/packages/v1/version1 credit

single version metadata

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
versionrequiredExact version string to fetch (e.g. '18.2.0', '2.31.0').
Try in playground →
post/packages/v1/dependencies1 credit

runtime + dev dependencies for a version (latest if omitted)

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
versionoptionalOptional exact version; omit to use the latest published version.
Try in playground →
post/packages/v1/downloads1 credit

download statistics (npm: period=last-day|week|month|year; pypi: recent day/week/month)

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
period = last-monthoptionallast-day · last-week · last-month · last-yearnpm download window (rejects unknown values). Ignored for PyPI, which always returns recent last-day/last-week/last-month totals.
Try in playground →
post/packages/v1/maintainer1 credit

maintainer/author records for a package

ParameterAllowed / rangeDescription
registryrequirednpm · pypi · node · nodejs · python · pipWhich package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
namerequiredExact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
Try in playground →