How to hit the Docker Hub API

Docker Hub's API at https://hub.docker.com/v2 lists repositories and tags. Official images live under the library namespace.

Authentication

None for public repositories. Docker Hub doesn't send CORS headers, so from a browser these run through the PostTaco extension.

Full reference: https://docs.docker.com/reference/api/hub/latest/

Get a repository

Stars, pulls, description.

curl https://hub.docker.com/v2/repositories/library/nginx/
Run in PostTaco
Example response (trimmed)
{
  "user": "library",
  "name": "nginx",
  "namespace": "library",
  "repository_type": "image",
  "status": 1,
  "status_description": "active",
  "description": "Official build of Nginx.",
  "is_private": false,
  "is_automated": false,
  "star_count": 21389,
  "pull_count": 13393831738,
  "last_updated": "2026-09-23T16:52:21.394069Z",
  "last_modified": "2026-09-22T22:14:11.524309Z",
  "date_registered": "2014-06-05T19:14:45Z",
  "collaborator_count": 0
}

List tags

Newest first.

curl "https://hub.docker.com/v2/repositories/library/nginx/tags?page_size=2&ordering=last_updated"
Run in PostTaco
Example response (trimmed)
{
  "count": 1339,
  "next": "https://hub.docker.com/v2/repositories/library/nginx/tags?ordering=last_updated&page=2&page_size=2",
  "previous": null,
  "results": [
    {
      "creator": 1156886,
      "id": 1037391008,
      "images": [
        {
          "architecture": "amd64",
          "features": "",
          "variant": null,
          "digest": "sha256:3d2f995522ddb52c3a4eb8008b8fa26f184f7146851df1da831f88885ac40aae",
          "os": "linux",
          "os_features": "",
          "os_version": null,
          "size": 63163111,
          "status": "active",
          "last_pulled": "2026-09-23T21:11:30.161035013Z",
          "last_pushed": "2026-09-19T01:50:49.753326044Z"
        },
        {
          "architecture": "ppc64le",
          "features": "",
          "variant": null,
          "digest": "sha256:975e2b4b4fdd792b23ff65dc317fdf29e15726b84f2ebc6a3c5a6754347fab3d",
          "os": "linux",
          "os_features": "",
          "os_version": null,
          "size": 67271688,
          "status": "active",
          "last_pulled": "2026-09-23T21:05:32.8839264Z",
          "last_pushed": "2026-09-19T01:50:52.166019178Z"
        }
      ],
      "last_updated": "2026-09-23T16:52:19.292348Z",
      "last_updater": 1156886,
      "last_updater_username": "doijanky",
      "name": "stable-trixie",
      "repository": 21171,
      "full_size": 63163111,
      "v2": true,
      "tag_status": "active",
      "tag_last_pulled": "2026-09-23T21:13:28.91130134Z",
      "tag_last_pushed": "2026-09-23T16:52:19.292348Z",
      "media_type": "application/vnd.oci.image.index.v1+json",
      "content_type": "image"
    },
    {
      "creator": 1156886,
      "id": 1235098889,
      "images": [
        {
          "architecture": "amd64",
          "features": "",
          "variant": null,
          "digest": "sha256:1dcab0ce2a09f2f162804e5d06198736fd064d757e024d64f11d6bd57ee753f0",
          "os": "linux",
          "os_features": "",
          "os_version": null,
          "size": 5736488,
          "status": "active",
          "last_pulled": "2026-09-23T21:03:16.934598313Z",
          "last_pushed": "2026-09-22T22:51:09.193107996Z"
        },
        {
          "architecture": "ppc64le",
          "features": "",
          "variant": null,
          "digest": "sha256:bf07de238ab4429cd0cf7f9119a543dc49bc7168ae83eead02dff9ad6b0c3c08",
          "os": "linux",
          "os_features": "",
          "os_version": null,
          "size": 5794158,
          "status": "active",
          "last_pulled": "2026-09-23T21:10:46.050773407Z",
          "last_pushed": "2026-09-22T22:51:12.887205208Z"
        }
      ],
      "last_updated": "2026-09-23T16:52:14.976194Z",
      "last_updater": 1156886,
      "last_updater_username": "doijanky",
      "name": "stable-alpine3.24-slim",
      "repository": 21171,
      "full_size": 5736488,
      "v2": true,
      "tag_status": "active",
      "tag_last_pulled": "2026-09-23T21:10:46.197814235Z",
      "tag_last_pushed": "2026-09-23T16:52:14.976194Z",
      "media_type": "application/vnd.oci.image.index.v1+json",
      "content_type": "image"
    }
  ]
}