How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Packages API

The GitHub Packages API lets you manage packages and package versions in GitHub Packages, a software package hosting service that supports npm, Maven, Gradle, RubyGems, NuGet, Docker, and other package formats. The API provides endpoints to list, get, delete, and restore packages and their versions at the user, organization, and repository level.

GitHub Packages API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Packages and Registry. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 2 JSON Schemas.

This API exposes 27 operations across 21 paths, and defines 15 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

27 operations 21 paths 15 schemas 6 DELETE15 GET6 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 27

Across 21 paths, the API surfaces 27 operations — 6 DELETE, 15 GET, 6 POST. Each is listed below with its method, path, parameters, and response codes.

Packages 27

Manage packages for authenticated users and organizations.

GET
/orgs/{org}/docker/conflicts
Get list of conflicting packages during Docker migration for organization
packages/list-docker-migration-conflicting-packages-for-organization 1 param → 200403401
GET
/orgs/{org}/packages
List packages for an organization
packages/list-packages-for-organization 5 params → 200403401400
GET
/orgs/{org}/packages/{package_type}/{package_name}
Get a package for an organization
packages/get-package-for-organization 3 params → 200
DELETE
/orgs/{org}/packages/{package_type}/{package_name}
Delete a package for an organization
packages/delete-package-for-org 3 params → 204404403401
POST
/orgs/{org}/packages/{package_type}/{package_name}/restore
Restore a package for an organization
packages/restore-package-for-org 4 params → 204404403401
GET
/orgs/{org}/packages/{package_type}/{package_name}/versions
List package versions for a package owned by an organization
packages/get-all-package-versions-for-package-owned-by-org 6 params → 200404403401
GET
/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}
Get a package version for an organization
packages/get-package-version-for-organization 4 params → 200
DELETE
/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}
Delete package version for an organization
packages/delete-package-version-for-org 4 params → 204404403401
POST
/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore
Restore package version for an organization
packages/restore-package-version-for-org 4 params → 204404403401
GET
/user/docker/conflicts
Get list of conflicting packages during Docker migration for authenticated-user
packages/list-docker-migration-conflicting-packages-for-authenticated-user → 200
GET
/user/packages
List packages for the authenticated user's namespace
packages/list-packages-for-authenticated-user 4 params → 200400
GET
/user/packages/{package_type}/{package_name}
Get a package for the authenticated user
packages/get-package-for-authenticated-user 2 params → 200
DELETE
/user/packages/{package_type}/{package_name}
Delete a package for the authenticated user
packages/delete-package-for-authenticated-user 2 params → 204404403401
POST
/user/packages/{package_type}/{package_name}/restore
Restore a package for the authenticated user
packages/restore-package-for-authenticated-user 3 params → 204404403401
GET
/user/packages/{package_type}/{package_name}/versions
List package versions for a package owned by the authenticated user
packages/get-all-package-versions-for-package-owned-by-authenticated-user 5 params → 200404403401
GET
/user/packages/{package_type}/{package_name}/versions/{package_version_id}
Get a package version for the authenticated user
packages/get-package-version-for-authenticated-user 3 params → 200
DELETE
/user/packages/{package_type}/{package_name}/versions/{package_version_id}
Delete a package version for the authenticated user
packages/delete-package-version-for-authenticated-user 3 params → 204404403401
POST
/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore
Restore a package version for the authenticated user
packages/restore-package-version-for-authenticated-user 3 params → 204404403401
GET
/users/{username}/docker/conflicts
Get list of conflicting packages during Docker migration for user
packages/list-docker-migration-conflicting-packages-for-user 1 param → 200403401
GET
/users/{username}/packages
List packages for a user
packages/list-packages-for-user 5 params → 200403401400
GET
/users/{username}/packages/{package_type}/{package_name}
Get a package for a user
packages/get-package-for-user 3 params → 200
DELETE
/users/{username}/packages/{package_type}/{package_name}
Delete a package for a user
packages/delete-package-for-user 3 params → 204404403401
POST
/users/{username}/packages/{package_type}/{package_name}/restore
Restore a package for a user
packages/restore-package-for-user 4 params → 204404403401
GET
/users/{username}/packages/{package_type}/{package_name}/versions
List package versions for a package owned by a user
packages/get-all-package-versions-for-package-owned-by-user 3 params → 200404403401
GET
/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}
Get a package version for a user
packages/get-package-version-for-user 4 params → 200
DELETE
/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}
Delete package version for a user
packages/delete-package-version-for-user 4 params → 204404403401
POST
/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore
Restore package version for a user
packages/restore-package-version-for-user 4 params → 204404403401

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are minimal-repository (90 properties), nullable-minimal-repository (87 properties), simple-user (22 properties), simple-user_2 (21 properties). Each schema is shown below with its type and property counts.

security-and-analysis
objectnull
10 properties
basic-error
object
Basic Error
4 properties
minimal-repository
object
Minimal Repository
90 properties 46 required
package
object
A software package
11 properties 9 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
simple-user
object
A GitHub user.
22 properties 18 required
package-version
object
A version of a software package
11 properties 6 required
security-and-analysis_2
objectnull
3 properties
basic-error_2
object
Basic Error
4 properties
nullable-minimal-repository
objectnull
Minimal Repository
87 properties 46 required
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
package_2
object
A software package
11 properties 9 required
code-of-conduct_2
object
Code Of Conduct
5 properties 4 required
simple-user_2
object
A GitHub user.
21 properties 18 required
package-version_2
object
A version of a software package
11 properties 6 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-packages-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Packages API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.