# Docker Hub tags API

Get Docker Hub Tags data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as name, output, and retrieve structured data including queried repository name, tag name, tag manifest digest, last tag update timestamp, and platform CPU architecture to track versioned releases, filter image variants, and audit multi-platform coverage.

Documentation: https://openany.si/docker-hub/docker-hub-tags-api/3c360e45-1206-4128-99fb-b2d74638fe41/
API ID: 3c360e45-1206-4128-99fb-b2d74638fe41
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/dockerhub/v1/tags
Page update time: 2026-12-03T02:55:00.557Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:00.198Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Docker Hub Tags API

Pass name (official image, namespace/name or hub.docker.com URL) with optional q substring filter (such as alpine), sort (last\_updated or name), vulnerabilities boolean, page and limit (default 25, max 100). Each item lists tag metadata and per-platform images\[\].

## What You Can Build

- **Track versioned releases**: Sort by last\_updated to detect newly published container tags and updated digests.
- **Filter image variants**: Pass q=alpine or q=bookworm to isolate specific base-OS variants.
- **Audit multi-platform coverage**: Inspect items\[\].images\[\] across tags to confirm OS and architecture availability.

## Returned Data

| Field | Meaning |
| --- | --- |
| `repository` | Queried repository name |
| `items[].name` | Tag name |
| `items[].digest` | Tag manifest digest |
| `items[].size_bytes` | Reported tag size in bytes |
| `items[].last_updated` | Last tag update timestamp |
| `items[].status` | Tag status such as active |
| `items[].images[].architecture` | Platform CPU architecture |
| `items[].images[].os` | Platform operating system |
| `next_page` | Next page number, or null on the final page |
| `total` | Total matching tag count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Docker Hub tags API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Image name (`nginx` for an official image, or `namespace/name`) or a hub.docker.com link."
        },
        "q": {
          "type": "string",
          "description": "Only tags containing this text, e.g. `alpine`."
        },
        "sort": {
          "type": "string",
          "description": "`last_updated` (default) or `name`.",
          "enum": [
            "last_updated",
            "name"
          ]
        },
        "vulnerabilities": {
          "type": "boolean",
          "description": "`true` adds vulnerability counts to each platform image (may cost more)."
        },
        "page": {
          "type": "integer",
          "description": "Page number (default 1)."
        },
        "limit": {
          "type": "integer",
          "description": "Results per page (default 25, max 100)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "name"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "content_type": {
                "type": "string"
              },
              "digest": {
                "type": "string"
              },
              "images": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "architecture": {
                          "type": "string"
                        },
                        "digest": {
                          "type": "string"
                        },
                        "last_pulled": {
                          "type": "string"
                        },
                        "last_pushed": {
                          "type": "string"
                        },
                        "os": {
                          "type": "string"
                        },
                        "os_version": {
                          "type": "null"
                        },
                        "size_bytes": {
                          "type": "integer"
                        },
                        "status": {
                          "type": "string"
                        },
                        "variant": {
                          "type": "null"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "last_pulled": {
                "type": "string"
              },
              "last_pushed": {
                "type": "string"
              },
              "last_updated": {
                "type": "string"
              },
              "last_updater": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "size_bytes": {
                "type": "integer"
              },
              "status": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "repository": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/dockerhub/v1/tags?name=nginx&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 25,
  "credits_used": 1,
  "items": [
    {
      "content_type": "image",
      "digest": "sha256:3921681524c54b4cbbeed5837fd1b844efc827a2cf4989ad5edc69ce3f264596",
      "images": [
        {
          "architecture": "amd64",
          "digest": "sha256:283e2845eb33ca01dfb66d05a0d53b6992cf1c54c1f87a615ff8058793b4a7ab",
          "last_pulled": "2026-11-04T06:00:03.000Z",
          "last_pushed": "2026-10-28T07:50:29.382Z",
          "os": "linux",
          "os_version": null,
          "size_bytes": 76070953,
          "status": "active",
          "variant": null
        },
        {
          "architecture": "ppc64le",
          "digest": "sha256:a821e8af62bd4fe5904b7f324839e8b00123c088238efe806c1cb9691de8f2b1",
          "last_pulled": "2026-11-04T06:00:29.157Z",
          "last_pushed": "2026-10-28T13:50:25.339Z",
          "os": "linux",
          "os_version": null,
          "size_bytes": 81162760,
          "status": "active",
          "variant": null
        },
        "… 14 more"
      ],
      "last_pulled": "2026-11-04T06:00:59.732Z",
      "last_pushed": "2026-11-03T04:52:33.803Z",
      "last_updated": "2026-11-03T04:52:33.803Z",
      "last_updater": "doijanky",
      "media_type": "application/vnd.oci.image.index.v1+json",
      "name": "trixie-perl",
      "size_bytes": 76070953,
      "status": "active"
    },
    {
      "content_type": "image",
      "digest": "sha256:eda5a512e96bef6b359d3edaabe2d31300d1566f8f9e2a6335ce44974185ebc3",
      "images": [
        {
          "architecture": "amd64",
          "digest": "sha256:e6c476b94b8e2e9d0efb5dc207814419164908001a8098786f811e876ee73355",
          "last_pulled": "2026-11-04T06:01:00.541Z",
          "last_pushed": "2026-10-28T07:50:59.382Z",
          "os": "linux",
          "os_version": null,
          "size_bytes": 75776541,
          "status": "active",
          "variant": null
        },
        {
          "architecture": "ppc64le",
          "digest": "sha256:9596c8fed447a53f03a78739a74cfddc3fadc0fb9acbaab4eaeb461560438973",
          "last_pulled": "2026-11-04T05:50:29.077Z",
          "last_pushed": "2026-10-28T13:50:47.235Z",
          "os": "linux",
          "os_version": null,
          "size_bytes": 80753555,
          "status": "active",
          "variant": null
        },
        "… 14 more"
      ],
      "last_pulled": "2026-11-04T06:04:18.731Z",
      "last_pushed": "2026-11-03T04:52:29.366Z",
      "last_updated": "2026-11-03T04:52:29.366Z",
      "last_updater": "doijanky",
      "media_type": "application/vnd.oci.image.index.v1+json",
      "name": "stable-trixie-perl",
      "size_bytes": 75776541,
      "status": "active"
    },
    "… 23 more"
  ],
  "next_page": 2,
  "page": 1,
  "repository": "library/nginx",
  "total": 1381
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I filter tags by variant name like alpine?
Pass the substring in the q query parameter (for example q=alpine).

### What sort options are supported?
sort accepts last_updated (default) or name.

### Does vulnerabilities=true change request cost?
The contract notes vulnerabilities=true adds vulnerability counts to each platform image and may cost more; review the pricing area before enabling it.

### How do I paginate through repositories with hundreds of tags?
Use page (default 1) and limit (default 25, max 100), then pass next_page until null.

### Does this endpoint include layer-by-layer Dockerfile instructions?
No. Use the Docker Hub Tag API on a specific tag to inspect individual layer instructions.

### How do I bypass the 24-hour cache?
Pass fresh=1 to fetch live tag listings from Docker Hub.

## Available implementations
- apish: https://openany.si/docker-hub/docker-hub-tags-api/3c360e45-1206-4128-99fb-b2d74638fe41/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
