# Docker Hub image search API

Search Docker Hub Image via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including image repository name, publisher namespace, public image description, docker Official Image flag, and verified publisher flag to select multi-arch base images, audit trusted publishers, and chain into tag inspection.

Documentation: https://openany.si/market/apis/docker-hub/docker-hub-image-search-api/?offering=d62087de-e054-4b8b-94dc-c2fe166c9375
API ID: d62087de-e054-4b8b-94dc-c2fe166c9375
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/dockerhub/v1/search
Page update time: 2026-12-03T02:55:00.522Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:00.089Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Docker Hub image search 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": {
        "q": {
          "type": "string",
          "description": "Search words."
        },
        "official": {
          "type": "string",
          "description": "`true`: Docker Official Images only.",
          "enum": [
            "true",
            "false"
          ]
        },
        "verified": {
          "type": "string",
          "description": "`true`: verified publishers only.",
          "enum": [
            "true",
            "false"
          ]
        },
        "open_source": {
          "type": "string",
          "description": "`true`: sponsored open-source projects only.",
          "enum": [
            "true",
            "false"
          ]
        },
        "category": {
          "type": "string",
          "description": "Category slug from /dockerhub/v1/categories, e.g. `databases-and-storage`."
        },
        "type": {
          "type": "string",
          "description": "Content type.",
          "enum": [
            "image",
            "extension",
            "plugin"
          ]
        },
        "architecture": {
          "type": "string",
          "description": "CPU architecture, e.g. `arm64`, `amd64`, `riscv64`."
        },
        "os": {
          "type": "string",
          "description": "Operating system.",
          "enum": [
            "linux",
            "windows"
          ]
        },
        "sort": {
          "type": "string",
          "description": "`best_match` (default), `pull_count` or `updated_at`.",
          "enum": [
            "best_match",
            "pull_count",
            "updated_at"
          ]
        },
        "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."
        }
      }
    },
    "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": {
              "architectures": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "archived": {
                "type": "boolean"
              },
              "categories": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "created_at": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_pulled_at": {
                "type": "string"
              },
              "last_pushed_at": {
                "type": "string"
              },
              "logo": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "namespace": {
                "type": "string"
              },
              "official": {
                "type": "boolean"
              },
              "open_source": {
                "type": "null"
              },
              "operating_systems": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "publisher": {
                "type": "string"
              },
              "pulls_label": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "stars": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "verified_publisher": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "sort": {
      "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/search?output=json&q=redis' \
  -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": [
    {
      "architectures": [
        "arm64",
        "amd64"
      ],
      "archived": false,
      "categories": [
        "Databases & storage",
        "Message queues"
      ],
      "created_at": "2025-03-13T08:09:52.076Z",
      "description": "Redis is the world's fastest data platform for caching, vector search, and NoSQL databases.",
      "id": "dhi/redis",
      "last_pulled_at": "2026-11-04T01:14:23.505Z",
      "last_pushed_at": "2026-11-03T13:10:55.522Z",
      "logo": "https://djeqr6to3dedg.cloudfront.net/repo-logos/dhi/redis/live/logo-1793751446635",
      "name": "redis",
      "namespace": "dhi",
      "official": false,
      "open_source": null,
      "operating_systems": [
        "linux"
      ],
      "publisher": "dhi",
      "pulls_label": "5M+",
      "source": "verified_publisher",
      "stars": 0,
      "type": "dhi",
      "updated_at": "2026-11-03T18:14:46.191Z",
      "url": "https://hub.docker.com/r/dhi/redis",
      "verified_publisher": true
    },
    {
      "architectures": [
        "amd64",
        "arm64"
      ],
      "archived": false,
      "categories": [
        "machine-learning-and-ai"
      ],
      "created_at": "2025-05-05T20:08:35.000Z",
      "description": "Access to Redis database operations.",
      "id": "redis",
      "last_pulled_at": "2026-11-04T02:24:29.506Z",
      "last_pushed_at": "2026-06-24T22:43:10.099Z",
      "logo": "https://avatars.githubusercontent.com/u/1529926?v=4",
      "name": "redis",
      "namespace": "mcp",
      "official": false,
      "open_source": null,
      "operating_systems": [
        "linux"
      ],
      "publisher": "mcp",
      "pulls_label": "100K+",
      "source": "",
      "stars": 14,
      "type": "mcp",
      "updated_at": "2026-06-24T22:43:10.099Z",
      "url": "https://hub.docker.com/r/mcp/redis",
      "verified_publisher": null
    },
    "… 23 more"
  ],
  "next_page": 2,
  "page": 1,
  "query": "redis",
  "sort": "best_match",
  "total": 52602
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/docker-hub/docker-hub-image-search-api/?offering=d62087de-e054-4b8b-94dc-c2fe166c9375

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