v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-167122208.0 KB
packages

node_versions

List Node.js Package Versions

Instead of constructing these URLs by hand, you should use the generated versions returned from any of these API's, which are guaranteed to be correct for all supported package types:

Example request:

curl "https://packagecloud.io/api/v1/repos/test_user/test_repo/package/node/test-pkg/versions.json"
get/api/v1/repos/{user_id}/{repo}/package/node/{package}/versions.json

Path parameters

user_idstring required

The user this repo belongs to.

repostring required

The name of the repository.

packagestring required

The name of the package. If this is a scoped package, the name should include an @ and an escaped '/' (e.g., @scope%2Fpkg-name).

Query parameters

pageinteger

One-based page index.

per_pageinteger

Items per page (default 30). Values above the server's Max-Per-Page are clamped; inspect the Max-Per-Page response header for the effective cap.

Response

PackageFragment A JSON array of all the versions for this package.

namestring required

The name of the package.

created_atstring required

When the package was uploaded.

distro_versionstring required

The distro_version for the package.

versionstring required

The version of the package.

releasestring nullable

The release of the package (if available).

architecturestring nullable

The architecture of the package (if available).

epochinteger nullable

The epoch of the package (if available).

scopestring nullable

The scope of the package (if available).

privateboolean required

Whether or not the package is in a private repository.

typestring required

The type of package ("deb", "gem", or "rpm").

filenamestring required

The filename of the package.

uploader_namestring required

The name of the uploader for the package.

indexedboolean required

Whether or not this package has been indexed.

repository_html_urlstring required

The HTML url of the repository.

package_urlstring required

The API url for this package.

package_html_urlstring required

The HTML url for this package.

downloads_detail_urlstring required

The url to get access log details for package downloads.

downloads_series_urlstring required

The url to get time series data for package downloads.

downloads_count_urlstring required

The url to get the total number of package downloads.

promote_urlstring required

The url for promoting this to another repository.

destroy_urlstring required

The url for the HTTP DELETE request to destroy this package.

download_urlstring required

The direct download URL for this package (includes a read token).

sha256sumstring nullable

The SHA-256 checksum of the package file.

Example response

[
  {
    "name": "jake",
    "distro_version": "fedora/22",
    "created_at": "2017-03-13T02:49:29.000Z",
    "version": "1.0",
    "release": "1.el6",
    "epoch": 0,
    "scope": null,
    "private": false,
    "type": "rpm",
    "filename": "jake-1.0-1.el6.x86_64.rpm",
    "uploader_name": "test_user",
    "indexed": false,
    "repository_html_url": "/test_user/test_repo",
    "package_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6.json",
    "downloads_detail_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/detail.json",
    "downloads_series_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/series/daily.json",
    "downloads_count_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/count.json",
    "package_html_url": "/test_user/test_repo/packages/fedora/22/jake-1.0-1.el6.x86_64.rpm",
    "promote_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm/promote.json",
    "delete_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm"
  }
]