# GET /docker/image: $0.005 per call

Should you build on this Docker Hub image? Checks official status, deprecation, when the tag was last rebuilt (stale images miss security patches), mutable tags like latest, pulls, architectures and size, and whether the runtime or OS version in the tag is end-of-life (endoflife.date). Verdict and reasons. Not a CVE scan. ?image=node:18-alpine

- **Price:** $0.005 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** yes, 20 free calls a day from Claude, Cursor or any MCP client ([set-up](/mcp/setup)).
- **Tier:** live
- **Answers cached for:** 6 hour(s)
- **Data sources:** Docker Hub API (free); endoflife.date (free)
- **Lane:** AI coding agents ([OpenAPI](/openapi/coding.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/docker-image](/sample/docker-image). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/docker-image"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i "https://aayatai.com/docker/image?image=node%3A18-alpine"
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/docker/image?image=node%3A18-alpine");
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("docker-image", {"image":"node:18-alpine"});
```

## Inputs

- `image` **(required)** (string): Docker Hub image, e.g. node:20-alpine, nginx, bitnami/redis:7.2.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

```json
{
  "image": "library/node:18-alpine",
  "official": true,
  "verdict": "avoid",
  "score": 40,
  "flags": [
    {
      "level": "danger",
      "code": "eol",
      "message": "nodejs 18 reached end of life on 2025-04-30. Move to 24 or newer."
    }
  ],
  "tag": {
    "name": "18-alpine",
    "lastPushed": "2025-03-27T18:38:34.907693Z",
    "digest": "sha256:8d64...",
    "architectures": [
      "amd64",
      "arm64"
    ],
    "sizeMb": 42.8
  },
  "repository": {
    "description": "Node.js is a JavaScript-based platform...",
    "status": "active",
    "pulls": 7025718158,
    "stars": 14204,
    "lastUpdated": "2026-09-23T23:41:31Z"
  },
  "eol": [
    {
      "product": "nodejs",
      "cycle": "18",
      "eol": "2025-04-30",
      "endOfLife": true,
      "latestInCycle": "18.20.8",
      "newestCycle": "26"
    }
  ],
  "sources": [
    "Docker Hub",
    "endoflife.date"
  ],
  "checkedAt": "2026-09-28T12:00:00.000Z"
}
```

## Related

- [GET /docs/find](/services/docs-find) ($0.003): Find the AI-ready docs for any library or API: checks the project's docs site (from its npm, PyPI, crates or Go metadata) or any company domain (docs., develope
- [GET /docs/lib](/services/docs-lib) ($0.005): Up-to-date docs for any npm, PyPI, crates or Go library, trimmed for a coding agent's context: finds the project's own llms.txt and docs pages (or the latest re
- [POST /docs/answer](/services/docs-answer) ($0.02): Ask a coding question about any npm, PyPI, crates or Go library and get an answer written only from its current docs (project llms.txt, docs pages or latest REA
- [GET /openapi](/services/openapi) ($0.005): Understand any public API fast: give its OpenAPI/Swagger spec URL, its docs or base URL, or a name from the APIs.guru directory (?api=stripe.com); we find the s
- [GET /library/research](/services/library-research) ($0.10): Premium research report on a library or API for coding agents: reads its current docs for your goal, checks version, safety and repository health, gathers what 
- [GET /package/check](/services/package-check) ($0.005): Should a coding agent install this package?
- [GET /dependency/verdict](/services/dependency-verdict) ($0.03): "Should I use this dependency?" in one call for npm, PyPI, crates or Go: full package safety check (vulnerabilities, malware, typosquats, deprecation, licence, 
- [GET /dependency/report](/services/dependency-report) ($0.08): Premium "should I use this dependency?" report: package safety (vulnerabilities, malware, typosquats, deprecation), GitHub repository health, licence compatibil

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).