List repositories in a namespace Run in API Explorer
Returns a list of repositories within the specified namespace (organization or user).
Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
Query parameters
-
Page number to get. Defaults to 1.
Minimum value is
1
. Default value is1
. -
Number of repositories to get per page. Defaults to 10. Max of 1000.
Minimum value is
1
, maximum value is1000
. Default value is10
. -
Filter repositories by name (partial match).
-
Order repositories by the specified field. Prefix with '-' for descending order. Available options:
name
/-name
: Repository name (ascending/descending)last_updated
/-last_updated
: Last update time (ascending/descending)pull_count
/-pull_count
: Number of pulls (ascending/descending)
Values are
name
,-name
,last_updated
,-last_updated
,pull_count
, or-pull_count
.
GET
/v2/namespaces/{namespace}/repositories
curl \
--request GET 'https://hub.docker.com/v2/namespaces/{namespace}/repositories' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"next": "https://hub.docker.com/v2/namespaces/docker/repositories?page=2&page_size=2",
"count": 287,
"results": [
{
"name": "highland_builder",
"status": 1,
"namespace": "docker",
"categories": [
{
"name": "Languages & frameworks",
"slug": "languages-and-frameworks"
},
{
"name": "Integration & delivery",
"slug": "integration-and-delivery"
},
{
"name": "Operating systems",
"slug": "operating-systems"
}
],
"is_private": false,
"pull_count": 15722123,
"star_count": 7,
"affiliation": "",
"description": "Image for performing Docker build requests",
"media_types": [
"application/octet-stream",
"application/vnd.docker.container.image.v1+json",
"application/vnd.docker.distribution.manifest.v1+prettyjws"
],
"last_updated": "2023-06-20T10:44:45.459826Z",
"storage_size": 488723114800,
"content_types": [
"unrecognized",
"image"
],
"last_modified": "2024-10-16T13:48:34.145251Z",
"date_registered": "2015-05-19T21:13:35.937763Z",
"repository_type": "image",
"status_description": "active"
},
{
"name": "whalesay",
"status": 1,
"namespace": "docker",
"categories": [
{
"name": "Languages & frameworks",
"slug": "languages-and-frameworks"
},
{
"name": "Integration & delivery",
"slug": "integration-and-delivery"
}
],
"is_private": false,
"pull_count": 130737682,
"star_count": 757,
"affiliation": "",
"description": "An image for use in the Docker demo tutorial",
"media_types": [
"application/vnd.docker.distribution.manifest.v1+prettyjws"
],
"last_updated": "2015-06-19T19:06:27.388123Z",
"storage_size": 103666708,
"content_types": [
"image"
],
"last_modified": "2024-10-16T13:48:34.145251Z",
"date_registered": "2015-06-09T18:16:36.527329Z",
"repository_type": null,
"status_description": "active"
}
],
"previous": null
}
Response examples (400)
{
"text": "Invalid ordering value",
"fields": {
"ordering": [
"Invalid ordering value. Must be one of: name, -name, last_updated, -last_updated, pull_count, -pull_count"
]
}
}
Response examples (401)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (403)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (404)
{
"errinfo": {},
"detail": "string",
"message": "string"
}