Get a package for an organization
GET
/orgs/{org}/packages/{package_type}/{package_name} https://api.github.com
Gets a specific package in an organization.
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 | "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container" |
package_name
required
The name of the package. | string |
org
required
The organization name. The name is not case sensitive. | string |
Responses
200 application/json
Response
interface Package {
id: number;
name: string;
package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container";
url: string;
html_url: string;
version_count: number;
visibility: "private" | "public";
owner?:SimpleUser | null;
repository?:MinimalRepository | null;
created_at: string;
updated_at: string;
}
id: number;
name: string;
package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container";
url: string;
html_url: string;
version_count: number;
visibility: "private" | "public";
owner?:
repository?:
created_at: string;
updated_at: string;
}