Search + K

Command Palette

Search for a command to run...

Sign In

Get a package version for the authenticated user

GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}
Copy endpoint
https://api.github.com

Gets a specific package version for a package owned by the authenticated user.

OAuth app tokens and personal access tokens (classic) need the read:packages scope to use this endpoint. For more information, see "About permissions for GitHub Packages."

Parameters

path Path Parameters

Name Type
package_type required

The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.

"npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
package_name required

The name of the package.

string
package_version_id required

Unique identifier of the package version.

number

Responses

200 application/json

Response

interface PackageVersion {
id: number;
name: string;
url: string;
package_html_url: string;
html_url?: string;
license?: string;
description?: string;
created_at: string;
updated_at: string;
deleted_at?: string;
metadata?: { package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container";container?: { tags: string[]; };docker?: { tag?: string[]; }; };
}