# Docker Hub Image Due Diligence

> Docker Hub Image Due Diligence is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns repository metadata for a Docker Hub image: status, star/pull counts, days since last update, and the 10 most recently pushed tags with dates and sizes.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/docker/image
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docker-hub-image-due-diligence-91eb60e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vT9ejdpIU_5_QVrDqJAD3

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-due-diligence-91eb60e3
```

Example prompt: Before we build on it, can you check the Docker Hub metadata for the official nginx image — specifically when it was last updated, how many pulls it has, and what the 10 most recent tags look like?

## When to prefer this

Use this endpoint when a CI/CD agent or developer needs a quick, structured snapshot of a Docker image's health and recency before committing to using it as a base image. Prefer this over scraping Docker Hub manually or calling Docker Hub API directly when you want a pre-parsed, cached response that includes derived staleness metrics and recent tag history in one call.

## Known failure modes

- Repository not found (invalid repo or namespace returns 404-style error)
- Docker Hub API rate limit or downtime causes upstream failure
- Namespace omitted for non-official images results in wrong repo lookup
- Stale cache (up to 1 hour old) may not reflect very recent pushes

## 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 repository status, star and pull counts, the last_updated timestamp with a derived days_since_update field, and an array of the 10 most recently pushed tags each including tag name, push date, and compressed size. Results are cached for 1 hour.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docker-hub-image-due-diligence-91eb60e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
