Skip to the content

Scraper API

Docker Hub

dockerhub.repositoryAvailable

Docker Hub repository

Its description, stars, pulls, when it was created and last pushed to, categories, how many tags it has, and its most recent tags with their sizes, digests and platforms.

Give it an image repository: nginx for an official image, namespace/name for any other, or its address on hub.docker.com.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
3, 1 required
Record
16 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/dockerhub.repository/runs

{
"input": {
"repository": "nginx",
"max_tags": 3
}
}

sent, and answered

a record of the run16 fields

{
full_name: "library/nginx"
namespace: "library"
name: "nginx"
url: "https://hub.docker.com/_/nginx"
is_official: true
description: "Official build of Nginx."
readme: null
stars: 21422
pulls: 13610589212
… 7 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 16 fields are set down here; the whole record is below.

hub.docker.com
The page Docker Hub repository reads, as a browser shows it
The page this scraper reads, photographed in a browser on 19 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Pick a base image
Stars, pulls, whether it is an official image and when it was last pushed to, to choose between images that ship the same software.
Track new tags
Read a repository on a schedule and compare its tags with the last run to see a new release appear, with its size, digest and platforms.
Check platform support
Each recent tag lists the platforms it has an image for, so you can see whether an image runs on arm64 before you build on it.

What you send

An image repository: nginx for an official image, namespace/name for any other, or its address on hub.docker.com. These are its 3 inputs, as its schema has them.

repositorystring Required
nginx for an official image, namespace/name such as grafana/grafana, or the repository's address on hub.docker.com.
max_tagsinteger Optional
Return this many of its tags, most recently pushed first: 10 unless you say otherwise, up to 100; 0 returns none.Default 10
include_readmeboolean Optional
true also returns the repository's overview, its README.Default false

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/dockerhub.repository/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"repository":"nginx","max_tags":3}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("dockerhub.repository", {
    "repository": "nginx",
    "max_tags": 3,
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("dockerhub.repository", { repository: "nginx", max_tags: 3 });
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "dockerhub.repository", map[string]any{"repository": "nginx", "max_tags": 3})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("dockerhub.repository", Map.of("repository", "nginx", "max_tags", 3));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run dockerhub.repository --input repository=nginx --input max_tags=3

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

Its description, stars, pulls, when it was created and last pushed to, categories, how many tags it has, and its most recent tags with their sizes, digests and platforms. A record has 16 fields. One we could not read is null, never an empty string or a zero.

A record dockerhub.repository returned
{
  "full_name": "library/nginx",
  "namespace": "library",
  "name": "nginx",
  "url": "https://hub.docker.com/_/nginx",
  "is_official": true,
  "description": "Official build of Nginx.",
  "readme": null,
  "stars": 21422,
  "pulls": 13610589212,
  "last_updated_at": "2026-11-18T19:55:13.910348Z",
  "registered_at": "2014-06-05T19:14:45Z",
  "status": "active",
  "categories": [
    "Web servers"
  ],
  "tag_count": 1409,
  "tags": [
    {
      "name": "trixie-perl",
      "last_updated_at": "2026-11-18T19:55:11.281584Z",
      "size_bytes": 76072254,
      "digest": "sha256:9657d43040dc2a10c5697a68ab158c2ea50980c3338d5b1d876add119b92d346",
      "platforms": [
        "linux/amd64",
        "linux/ppc64le",
        "linux/386"
      ],
      "last_pulled_at": "2026-11-18T22:41:47.574035Z"
    },
    {
      "name": "stable-trixie-perl",
      "last_updated_at": "2026-11-18T19:55:06.331941Z",
      "size_bytes": 75784146,
      "digest": "sha256:39914e7bd94a6de938c6cf785ef6d1640a6810e5c027f97d7097ab8daa5596d8",
      "platforms": [
        "linux/amd64",
        "linux/ppc64le",
        "linux/386"
      ],
      "last_pulled_at": "2026-11-18T22:42:25.003976Z"
    }
  ],
  "fetched_at": "2026-11-19T18:07:40.050613Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: tags: 3 items, the first 2 shown; tags[0].platforms: 8 items, the first 3 shown; tags[1].platforms: 8 items, the first 3 shown.

The fields of a record

full_namestring
The repository as namespace/name, e.g. "grafana/grafana"; an official image is under "library", e.g. "library/nginx".
namespacestring
The account or organisation the repository belongs to; "library" for an official image.
namestring
The repository's own name.
urlstring
The repository's page on hub.docker.com.
is_officialboolean
True for a Docker Official Image.
descriptionstring or null
The repository's short description.
readmestring or null
The repository's overview (its README, in Markdown) when include_readme asked for it.
starsinteger or null
How many accounts starred the repository.
pullsinteger or null
How often the repository's images were pulled, in all.
last_updated_atdatetime or null
When an image was last pushed to the repository, in UTC.
registered_atdatetime or null
When the repository was created, in UTC.
statusstring or null
The repository's state in Docker Hub's words, e.g. "active".
categorieslist of strings
The categories Docker Hub lists the repository under, e.g. ["Web servers"].
tag_countinteger or null
How many tags the repository has; null when the tags were not asked for or could not be read.
tagslist of objects
The most recently pushed tags first, as many as max_tags asked for.Each holds name, last_updated_at, size_bytes, digest, platforms, last_pulled_at.
fetched_atdatetime
When the repository was read, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • Public repositories only. A private one, or one that does not exist, ends as failed, with the reason not_found, and costs nothing.
  • Tags are the most recently pushed ones, up to 100; older tags are not paged through.
  • Image layers and vulnerability reports are not read.

The bounds its schema sets

max_tags
0 to 100; 10 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Docker Hub repository return?

Its description, stars, pulls, when it was created and last pushed to, categories, how many tags it has, and its most recent tags with their sizes, digests and platforms. A record has 16 fields, among them full_name, namespace, name, url, is_official and description. A value that could not be read is null, never an empty string or a zero.

What do I send?

An image repository: nginx for an official image, namespace/name for any other, or its address on hub.docker.com. The input repository is required. Optional: max_tags and include_readme.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: max_tags 0 to 100 (10 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

Public repositories only. A private one, or one that does not exist, ends as failed, with the reason not_found, and costs nothing. Tags are the most recently pushed ones, up to 100; older tags are not paged through. Image layers and vulnerability reports are not read.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id dockerhub.repository and the same input. It costs what the same API call costs.

Docker Hub

Public image repositories on Docker Hub: a repository's details and tags, and Docker Hub's search.

  • Docker Hub search

    dockerhub.search

    Words to search Docker Hub's repositories for. A page of the repositories found, in Docker Hub's order: name, short description, stars, pulls and whether it is an official image.

Docker Hub on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.