Github API

Getting access, Developing, Testing

Back to Github

List package versions for a package owned by an organization

Lists package versions for a package owned by an organization.

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. org: type: string description: The organization name. The name is not case sensitive. page: type: integer default: 1 description: Page number of the results to fetch. per_page: type: integer default: 30 description: The number of results per page (max 100). state: type: string enum: - active - deleted default: active description: The state of the package, either active or deleted. required: - package_type - package_name - org title: Parameters

Output

type: array items: 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