# Docker Hub scraper API — $0.001 per image

> Docker Hub scraper API: image search and repo stats — stars, pulls, official flag. $0.001 per delivered image, nothing delivered means nothing charged.

[Home](https://quanticdata.io/) / [Collectors](https://quanticdata.io/collectors/) / Docker Hub API

[All collectors](https://quanticdata.io/collectors/)

# Docker Hub scraper API

Developers & tech · v1.1.0 · `docker_hub`

$0.0003 / image

$0.30 / 1K · pay per delivered image

A Docker Hub API with the registry's two lookups in one collector: a Docker Hub search query returns matching images as rows — name, description, stars, pull count, official and automated flags — while a list of exact references ("redis", "bitnami/postgresql") returns each repository's full record with its last-updated date. The image stats arrive as flat columns from Docker's keyless v2 endpoints, not a page to scrape.

By [Aldo Morese](https://quanticdata.io/about/), founder of QuanticData · Published Aug 21, 2026 · Updated Oct 19, 2026

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-hero) · [See the request](https://quanticdata.io/collectors/docker-hub-api/#integration)

$0.001 per delivered image · $2 free every month · Failed runs never billed

On this page:

- [Try it](https://quanticdata.io/collectors/docker-hub-api/#try)
- [What it is](https://quanticdata.io/collectors/docker-hub-api/#what)
- [Limits](https://quanticdata.io/collectors/docker-hub-api/#caps)
- [Output fields](https://quanticdata.io/collectors/docker-hub-api/#output)
- [Inputs](https://quanticdata.io/collectors/docker-hub-api/#input)
- [Pricing](https://quanticdata.io/collectors/docker-hub-api/#pricing)
- [Integration](https://quanticdata.io/collectors/docker-hub-api/#integration)
- [Use cases](https://quanticdata.io/collectors/docker-hub-api/#use-cases)
- [Versus the alternatives](https://quanticdata.io/collectors/docker-hub-api/#compare)
- [FAQ](https://quanticdata.io/collectors/docker-hub-api/#faq)

What it does

## What a Docker Hub API does

Docker's registry API is free at origin; what it does not give you is a table. Search results and repository records come from different endpoints with different JSON shapes, and this collapses both into one row schema — so a Docker registry API pull lands next to your npm and crates rows in the same envelope, under the same single key.

Detail mode takes up to 50 exact references per call — `redis`, `library/redis`, `bitnami/postgresql` all resolve — and adds the `last_updated` date that search results do not carry. References that resolve to nothing are reported under `failed` and left off the bill, so a stale image list does not silently thin your dataset.

## Inputs

The whole request. Anything you leave out falls back to the default shown in the catalog.

| Input | Type | Required | What it does |
| --- | --- | --- | --- |
| `query` | string | no | Image search query (leave empty when passing images). |
| `images` | array | no | Exact references for detail lookups — "redis" or "namespace/name". |
| `max_results` | integer | no | How many images to deliver at most (1–100). You pay only for delivered images. |

Outputs — 15 fields, one row per image

## What one image looks like

Every delivered image carries these fields. Nullable means the source did not publish it — the field stays empty instead of being guessed.

| Field | Type | What it holds |
| --- | --- | --- |
| `rank` | integer | 1-based position. |
| `name` | string | Image name (namespace/name; officials bare). |
| `description` | string · nullable | Short description. |
| `stars` | integer · nullable | Stars. |
| `pulls` | integer · nullable | Total pulls. |
| `is_official` | boolean | Docker official image. |
| `is_automated` | boolean | Automated build. |
| `last_updated` | string · nullable | Last push (detail mode only). |
| `url` | string | Docker Hub page. |
| `namespace` | string | Repository namespace (library for official images). |
| `date_registered` | string · nullable | Repository creation date (lookups). |
| `categories` | string[] | Docker Hub categories (lookups). |
| `storage_size` | integer · nullable | Bytes stored across all tags (lookups). |
| `status` | string · nullable | Repository status (lookups). |
| `pull_command` | string | docker pull command. |

Integration

## One POST, typed rows

Base URL `https://api.quanticdata.io/v1`, Bearer auth, the same key as every other Data API. Endpoint: `POST /v1/scraper/collectors/docker_hub/run`.

cURL:

```bash
curl -X POST https://api.quanticdata.io/v1/scraper/collectors/docker_hub/run \
  -H "Authorization: Bearer $QD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Python:

```python
import requests

r = requests.post(
    "https://api.quanticdata.io/v1/scraper/collectors/docker_hub/run",
    headers={"Authorization": f"Bearer {QD_API_KEY}"},
    json={},
    timeout=120,
)
for row in r.json()["payload"]["results"]:
    print(row)
```

Node.js:

```javascript
const res = await fetch(
  "https://api.quanticdata.io/v1/scraper/collectors/docker_hub/run",
  {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.QD_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({}),
  },
);
const { payload } = await res.json();
console.table(payload.results);
```

MCP:

```bash
claude mcp add quanticdata \
  -e QUANTICDATA_API_KEY=qd_live_your_key_here \
  -- npx -y quanticdata-mcp

# then, in the chat:
> run the docker_hub collector with
```

Example response

POST /v1/scraper/collectors/docker_hub/run

```bash
$ curl $QD/docker_hub/run \
    -H "Authorization: Bearer $QD_API_KEY" \
    -d '{}'
{ "status": "done", "count": 10,
  "results": [
    {
      "name": "…",
      "description": "…",
      "stars": …,
      "pulls": … } ],
  "cost": 0.01 }
# 10 images × $0.001 · nothing delivered, nothing charged
```

Price

## Limits, in plain numbers

Everything that bounds one run of this collector. No hidden throttles.

Max per run

100 images

Price

$0.0003 / image

Per 1,000

$0.30

Failed runs

Free zero rows, zero charge

Free every month

$2 no card

Rate limit

20 req/min on the free tier

Changelog

- `v1.1.0` 2026-10-04
- `v1.0.0` 2026-08-25 Initial release

Every run records the collector version it ran on. Breaking output changes bump the major version.

Try it

## Docker Hub images, running now

Change the input and run it against the live collector — nothing to install, no sign-up.

Run it from your own code, on your own inputs

Same collector, same rows — $2 of free API credit every month, no card.

[Get my free API key](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-closing)

![Docker Hub API: from query and images, QuanticData reads the Docker Hub image page and returns one row per image with name, description and stars, at $0.001 per delivered image.](https://quanticdata.io/collectors/docker-hub-api/diagram.webp?v=20261019p)

*You send query and images; the run reads the source and comes back as images with rank, name and description — 15 fields on every row — and you are billed $0.001 for each image actually delivered, nothing for a run that delivers none.*

**$0.001 / image** · 2,000 images on the free $2 every month

**Semantic input** · query, images, max_results — no URL lists

**Up to 100** images per run, pagination handled for you

**No browser** · read over HTTP/TLS — cheaper and faster than rendering

Pricing

## Docker Hub API pricing

$0.001 per delivered image. A run that delivers nothing costs nothing: blocked pages, challenges and retries are on us, and the $2 monthly allowance covers about 2,000 images before you spend anything.

**$0.001** per delivered image · *$1 per 1,000 delivered images*

**6,666 images** · on the free allowance · *$2 every month, no card*

**Zero rows** · zero charge · *blocks, captchas and retries are on us*

**−30%** on volume tiers · *the catalog returns your key's price*

- [Pay as you go](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-tier-1): $0/mo · $2 free credit / month · 20 requests / min (300 on real balance) · List unit prices
- [Starter](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-tier-2): $19/mo · $15 free credit / month · 300 requests / min · 10% off unit prices
- [Growth](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-tier-3): Most popular · $79/mo · $50 free credit / month · 600 requests / min · 20% off unit prices
- [Scale](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-tier-4): $299/mo · $250 free credit / month · 1,200 requests / min · 30% off unit prices

Same wallet, same key and same $2 monthly allowance as every other [Data API](https://quanticdata.io/web-data-api-for-ai/). Prices are launch pricing read live from the billing config — `GET /v1/scraper/collectors` returns the price your key actually pays.

## What people build with the Docker Hub API

Three shapes of work this endpoint was designed around.

### Base image vetting

Rank candidate images by pull count, stars and the `is_official` flag before one goes into a Dockerfile, from a query instead of a browsing session.

### Registry watchlists

Re-run detail lookups on the images you deploy and diff `last_updated` against the previous pull to see which upstream images have moved.

### Ecosystem adoption tables

Search a technology keyword and store the ranked rows — pulls and stars sampled over time turn into an adoption curve for whatever you track.

## Docker Hub API versus rolling your own

The differences that actually cost time when you build this in-house.

|  | DIY scraper | This collector |
| --- | --- | --- |
| Two modes | Separate search and repository endpoints to stitch | One collector: a query to search, references for detail |
| Image stats | Counts buried in paged registry JSON | Pull count, stars and flags as columns on every row |
| Dead references | A 404 you handle mid-loop | Reported under failed, off the bill |

## What people search for

Live autocomplete demand around Docker Hub images, pulled with our own Keyword ideas collector.

Searches:

- [docker hub api key](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub apisix](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api documentation](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api url](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api v2](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api rate limit](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api token](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api docs](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub apicurio](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub apisix dashboard](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api get tags](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api limits](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub apicurio registry](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api reference](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api search](https://quanticdata.io/collectors/docker-hub-api/#try)
- [docker hub api authentication](https://quanticdata.io/collectors/docker-hub-api/#try)

![Docker Hub API: the POST to the docker_hub collector, 100 images delivered and the bill, 100 × $0.001 = $0.10 in usage.cost_usd; zero images would cost $0.](https://quanticdata.io/collectors/docker-hub-api/diagram2.webp?v=20261019p)

*The same call you would paste into a terminal: a Bearer key, query and images in the body, and back the envelope every QuanticData endpoint returns — type, message, payload — where count is how many images arrived and usage.cost_usd is $0.1, which is 100 × $0.001. A run that delivers nothing costs nothing. The key is good for 20 req/min on the free tier.*

## Sources and standards

The platform documentation and standards this collector is built against — check any claim on this page against the primary source:

- [Docker: Hub API reference](https://docs.docker.com/reference/api/hub/latest/)
- [OCI: the Distribution Specification](https://github.com/opencontainers/distribution-spec/blob/main/spec.md)

## FAQ

Questions we get about the Docker Hub API.

[Something else? Ask us](https://quanticdata.io/collectors/docker-hub-api/#ask)

### Does the Docker Hub API require authentication?

Not for this. Docker Hub's v2 search and repository endpoints answer without credentials, so nothing extra is registered or stored — usage is metered on the QuanticData key you already hold, like every collector in the catalog.

### How do I get the pull count for a specific image?

Pass it under `images` — "redis" for an official image, "namespace/name" otherwise — and the returned row carries `pulls`, `stars`, both flags and `last_updated`, which only detail mode includes.

### Does it return tags or image manifests?

No. Rows describe the repository — stats, flags, freshness — not its tag list or manifests. It is the adoption and popularity layer for datasets, not a registry client for pulling images.

### Is there a free Docker Hub API?

Every account gets $2 of credit every month with no card, which is about 2,000 delivered images on this endpoint at $0.001 each. It renews monthly, and a run that delivers nothing is never billed — so a failed or blocked attempt does not eat the allowance.

### How much does one run cost?

Multiply the rows you actually receive by $0.001. A run capped at 100 images — the maximum for this collector — costs $0.1 if every row comes back, and less when the source has fewer. Volume tiers take up to 30% off, and `GET /v1/scraper/collectors` returns the price your key actually pays.

## Run the Docker Hub API now

$2 of free credit every month, no card. Your key returns its own prices from `GET /v1/scraper/collectors`.

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fdocker_hub&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=docker-hub-api-cta-3)

![Illustration: three coloured zones of the page that is read (Docker Hub image page) turn into clean JSON with the fields name, description and stars; 15 fields on every row.](https://quanticdata.io/collectors/docker-hub-api/hero.webp?v=20261004h)

Related:

- [All 100+ collectors](https://quanticdata.io/collectors/)
- [npm registry API](https://quanticdata.io/collectors/npm-registry-api/)
- [crates.io API](https://quanticdata.io/collectors/crates-io-api/)
- [GitHub repository search API](https://quanticdata.io/collectors/github-repository-search-api/)
- [Documentation](https://quanticdata.io/docs/)

In code:

- [Docker Hub API in Python](https://quanticdata.io/collectors/docker-hub-api/python/)

---

Source: https://quanticdata.io/collectors/docker-hub-api/ · Site index for AI: https://quanticdata.io/llms.txt
