List packages for the authenticated user's namespace
/user/packages Lists packages owned by the authenticated user within the user's namespace.
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
query Query 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" |
visibility The selected visibility of the packages. This parameter is optional and only filters an existing result set. The | "public" | "private" | "internal" |
page The page number of the results to fetch. For more information, see "Using pagination in the REST API." | number |
per_page The number of results per page (max 100). For more information, see "Using pagination in the REST API." | number |
Responses
Response
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;
}[]
Client Errors
The value of per_page multiplied by page cannot be greater than 10000.