# Docker Hub Image Metadata Lookup

> Docker Hub Image Metadata Lookup is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches public metadata for a Docker Hub repository, including pull count, star count, latest tags, and last update time.

## Facts

- Endpoint: GET https://data.greeneris.io/v1/docker/image
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docker-hub-image-metadata-lookup-cb119a3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrXP5ARSOioSPBdY_MzlF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability docker-hub-image-metadata-lookup-cb119a3b
```

Example prompt: Can you check Docker Hub for the official nginx image and tell me the pull count, star count, latest available tags, and when it was last updated?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to Docker Hub repository metadata — pull counts, star counts, latest tags, last update — without managing a Docker Hub account or API credentials. Ideal for AI agents doing DevOps research, image freshness checks, or popularity comparisons.

## Known failure modes

- Unknown or misspelled repository name returns empty or error response
- Private repositories are not accessible and return an error
- Rate limiting or Docker Hub API downtime causes failure
- Payment not completed (HTTP 402) if x402 payment not submitted
- Incorrect namespace (e.g. using a user namespace for an official image) may return no results

## How this service works

Base-image due diligence from the Docker Hub API v2: repository status, star and pull counts, last_updated with derived days_since_update, and the 10 most recently pushed tags with push date and size. Query: ?repo=nginx&namespace=library (namespace defaults to library for official images). Lets CI/CD agents avoid building on stale or abandoned images; cached 1h.

## Output

Returns a JSON object with the repository name, namespace, source attribution, status (active/inactive), total pull count, star count, description, a list of the latest tags with sizes and push timestamps, and the number of days since the last update.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "Repository name, e.g. nginx"
      },
      "namespace": {
       "type": "string",
       "default": "library",
       "description": "Docker Hub namespace (library = official images)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "repo": "nginx",
  "source": "Docker Hub API v2 (hub.docker.com), public repository metadata",
  "status": "active",
  "namespace": "library",
  "pull_count": 13158147675,
  "star_count": 21337,
  "description": "Official build of Nginx.",
  "latest_tags": [
   {
    "name": "trixie-perl",
    "size_bytes": 75271303,
    "last_pushed": "2026-06-25T22:52:42.349783Z"
   }
  ],
  "last_updated": "2026-06-25T22:52:43.280236Z",
  "days_since_update": 17
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docker-hub-image-metadata-lookup-cb119a3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
