Back to GithubGet a package version for a user
Gets a specific package version for a public package owned by a specified user.
At this time, to use this endpoint, you must authenticate using an access token with the read:packages
scope. If the package_type
belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the repo
scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "About permissions for GitHub Packages."
Input
type: object
properties:
parameters:
type: object
properties:
package_type:
type: string
enum:
- npm
- maven
- rubygems
- docker
- nuget
- container
description: >-
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.
package_name:
type: string
description: The name of the package.
package_version_id:
type: integer
description: Unique identifier of the package version.
username:
type: string
description: The handle for the GitHub user account.
required:
- package_type
- package_name
- package_version_id
- username
title: Parameters
Output
type: object
title: Package Version
properties:
id:
description: Unique identifier of the package version.
type: integer
example: 1
name:
description: The name of the package version.
type: string
example: latest
url:
type: string
example: >-
https://api.github.com/orgs/github/packages/container/super-linter/versions/786068
package_html_url:
type: string
example: https://github.com/orgs/github/packages/container/package/super-linter
html_url:
type: string
example: https://github.com/orgs/github/packages/container/super-linter/786068
license:
type: string
example: MIT
description:
type: string
created_at:
type: string
format: date-time
example: '2011-04-10T20:09:31.000Z'
updated_at:
type: string
format: date-time
example: '2014-03-03T18:58:10.000Z'
deleted_at:
type: string
format: date-time
example: '2014-03-03T18:58:10.000Z'
metadata:
type: object
title: Package Version Metadata
properties:
package_type:
type: string
example: docker
enum:
- npm
- maven
- rubygems
- docker
- nuget
- container
container:
type: object
title: Container Metadata
properties:
tags:
type: array
items:
type: string
docker:
type: object
title: Docker Metadata
properties:
tag:
type: array
items:
type: string