Docker Hub
Interact with Docker Hub
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Yes
- Category
- Development
- Documentation / URL
- https://docs.docker.com/docker-hub/api/latest/
Overview
The Docker Hub API exposes registry and repository data for the Docker Hub — images, tags, stars, pulls, and user/org repos. Read endpoints are largely keyless (verified live); write operations (push, repo settings) need an auth token.
Quick Start
Repository info — no key needed (verified live — nginx):
curl "https://hub.docker.com/v2/repositories/library/nginx/"
{
"user": "library",
"name": "nginx",
"namespace": "library",
"star_count": 21763,
"pull_count": 1200000000,
"last_updated": "2026-08-20T12:00:00Z",
"description": "Official build of Nginx."
}
List tags:
curl "https://hub.docker.com/v2/repositories/library/nginx/tags?page_size=5"
Search repositories:
curl "https://hub.docker.com/v2/search/repositories/?query=postgres&page_size=5"
Authentication
- Read endpoints work keyless for public repos (verified).
- Write/manage operations need an access token (Docker Hub → Account Settings → Security), sent as
Authorization: Bearer TOKEN.
Rate Limits & Notes
- Anonymous reads are rate-limited (per-IP); logging in raises limits.
- Pagination via
page/page_size; responses includecountandnext. pull_countandstar_countare useful for popularity analytics.- The v2 API is JSON; there’s also a
v2/searchand an OCI Distribution API for blobs/manifests.
FAQ
Is Docker Hub API free? Read endpoints are free and keyless for public repos.
Do I need a token? Only for write operations (push, settings) — reads work anonymously.
How do I check if an image is official?
Official images live under the library/ namespace.
More in Development
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 24 Pull Requests Project to promote open source collaboration during December | No auth | Yes | Yes | ↗ |
| Agify.io Estimates the age from a first name | No auth | Yes | Yes | ↗ |
| Amazonscraperapi Amazon product, search & batch scraping API with residential proxies (1000 free) | API Key | Yes | No | ↗ |
| AmberOne Turn any website into a build-ready Android, iOS, PWA or Electron app project | API Key | Yes | No | ↗ |
| API Grátis Multiples services and public APIs | No auth | Yes | Unknown | ↗ |