: Get repository details

API: docker.com:docker-hub-api
Endpoint: /repositories/{namespace}/{repository}/
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 366ms

Description

Returns comprehensive details about a repository including description, star count, pull count, last updated timestamp, and visibility status. Use this to verify repository existence and get metadata before pulling images.

From spec: Returns detailed information about a specific repository including description, pull count, star count, and more.

Usage Tips

- Returns 404 if repository does not exist - For official images, use 'library' as namespace - Pull count indicates image popularity - Check last_updated to determine if an image is actively maintained

Parameters (2)

namespace (string, path, required)

The namespace of the repository (e.g., 'library' for official images)

repository (string, path, required)

The name of the repository

Examples (1)

Get details for the official nginx repository doc_extracted

Demonstrates fetching metadata for the official nginx image repository

curl 'https://hub.docker.com/v2/repositories/library/nginx/'
import requests

resp = requests.get("https://hub.docker.com/v2/repositories/library/nginx/")
data = resp.json()
import zingu_apis

api = zingu_apis.api("docker-hub")
result = api.fetch("repositories/{namespace}/{repository}/")

for item in result:
    print(item)
const resp = await fetch("https://hub.docker.com/v2/repositories/library/nginx/");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 03:40:16.324109 200 366ms
2026-04-15 01:53:25.329500 200 290ms
2026-04-14 02:46:08.771008 200 260ms
2026-04-12 14:16:01.290405 200 244ms
2026-04-10 02:46:26.022912 200 194ms
2026-04-09 01:23:20.469941 200 267ms