# Docker Hub Images Scraper - Stars, Pulls & Descriptions (`scrapers_lat/dockerhub-images-scraper`) Actor

Scrape Docker Hub container images by keyword with star counts, pull counts, description, owner and official/automated flags. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers_lat/dockerhub-images-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Developer tools, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

[![Docker Hub Images Scraper - Stars, Pulls & Descriptions](https://scrapers.lat/banners/dockerhub-images-scraper.png)](https://console.apify.com/actors/FNf7gkEO8CQutCNM8/input)

## Docker Hub Images Scraper - Stars, Pulls & Descriptions

Here is one real result, with every field the actor returns (the long `fullDescription` value is trimmed here for readability; the actor returns it in full):

```json
{
  "repoName": "redis",
  "repoUrl": "https://hub.docker.com/_/redis",
  "shortDescription": "Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.",
  "starCount": 13605,
  "pullCount": 11098157544,
  "isOfficial": true,
  "isAutomated": false,
  "repoOwner": null,
  "fullDescription": "# Quick reference\n\n- **Maintained by**: Redis LTD\n\n# What is Redis?\n\nRedis is the world’s fastest data platform. It provides cloud and on-prem solutions for caching, vector search, and NoSQL databases … (trimmed)",
  "categories": ["Databases & storage"],
  "contentTypes": ["unrecognized", "image"],
  "lastUpdated": "2026-08-06T21:06:40.230318Z",
  "lastModified": "2026-08-10T18:14:15.225799Z",
  "dateRegistered": "2014-06-05T20:04:50Z",
  "storageSize": 152748128193,
  "tagCount": 1144,
  "latestTag": "trixie",
  "latestTagPushed": "2026-08-06T21:06:38.067608Z",
  "latestTagSize": 55426239,
  "architectures": [
    "linux/amd64",
    "linux/arm/v5",
    "linux/arm/v7",
    "linux/arm64/v8",
    "linux/386",
    "linux/ppc64le",
    "linux/riscv64",
    "linux/s390x",
    "linux/mips64le"
  ],
  "aiSummary": null,
  "aiKeyTech": null,
  "source": "Docker Hub",
  "observedAt": "2026-08-14T07:50:44.155Z"
}
```

The most complete Docker Hub image scraper available. It returns every field the Docker Hub search and repository endpoints expose for each image, plus enrichment from the detail and tag pages (categories, tag count, latest tag, architectures, storage size), and gives you a keyword search plus an optional AI summary add-on to target exactly the images you need.

**📥 [Input](https://apify.com/scrapers_lat/dockerhub-images-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/dockerhub-images-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/dockerhub-images-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/dockerhub-images-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Docker%20Hub-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)
![Billing](https://img.shields.io/badge/Billing-Pay%20per%20result-brightgreen)

### Table of contents

- [What it does](#what-it-does)
- [Quickstart](#quickstart)
- [Input reference](#input-reference)
- [Output reference](#output-reference)
- [Example output record](#example-output-record)
- [Run via API and CLI](#run-via-api-and-cli)
- [Fetch results](#fetch-results)
- [Billing and limits](#billing-and-limits)
- [FAQ and troubleshooting](#faq-and-troubleshooting)

### What it does

The actor searches public Docker Hub images by keyword, then enriches each match with data pulled from the image detail page and the tag listing. For every image it returns stars, pull count, official and automated flags, owner, short and full description, categories, content types, registration and update dates, storage size, tag count, the latest tag with its push date and size, and the hardware architectures the image publishes (for example `linux/amd64`, `linux/arm64/v8`). Missing source values are returned as `null` and empty lists as `[]`, so you can sort and filter without extra parsing.

Data covers public images on Docker Hub only. Private images and images that require authentication are not accessible. An optional AI summary add-on (paid Apify plans) adds a plain-English summary and key technology list per image.

### Quickstart

Open the actor, paste this into the input, and press Run. It returns the 10 most relevant Redis images with full enrichment.

```json
{
  "searchQuery": "redis",
  "maxImages": 10
}
```

Leave `searchQuery` empty to default to `nginx`. Every input field is optional; with an empty input the actor returns the most relevant `nginx` images (default `maxImages` is 50, capped at 10 on free plans).

### Input reference

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `searchQuery` | string | no | `nginx` | Keyword to search Docker Hub images, for example `redis`, `postgres`, `python`. |
| `maxImages` | integer | no | `50` | Maximum number of images to collect (1 to 10000). Free Apify plans are capped at 10 per run. |
| `withSummary` | boolean | no | `false` | AI summary add-on (paid plans only). Writes a 2 to 3 sentence plain-English summary of each image plus its key technologies. Billed per enriched record only on success. |

### Output reference

One dataset item per image. Types: `string`, `integer`, `boolean`, `string[]`, or `null` when the source value is absent.

| Field | Type | Description |
|---|---|---|
| `repoName` | string | Image repository name, for example `redis` or `bitnami/postgresql`. |
| `repoUrl` | string | Canonical Docker Hub URL for the image. |
| `shortDescription` | string | One-line description from the search result. |
| `starCount` | integer | Number of stars on the image. |
| `pullCount` | integer | Total pull count for the image. |
| `isOfficial` | boolean | `true` for Docker Official Images. |
| `isAutomated` | boolean | `true` when the image is an automated build. |
| `repoOwner` | string | Repository owner, or `null` for official (`library`) images. |
| `fullDescription` | string | Full Markdown description from the image detail page, or `null`. |
| `categories` | string\[] | Docker Hub categories, for example `Databases & storage`. Empty array when none. |
| `contentTypes` | string\[] | Content types declared on the image, for example `image`, `plugin`. |
| `lastUpdated` | string | ISO 8601 timestamp the image was last updated. |
| `lastModified` | string | ISO 8601 timestamp the image record was last modified. |
| `dateRegistered` | string | ISO 8601 timestamp the image was first registered. |
| `storageSize` | integer | Total storage size of the image in bytes. |
| `tagCount` | integer | Total number of tags published for the image. |
| `latestTag` | string | Name of the most recently pushed tag. |
| `latestTagPushed` | string | ISO 8601 timestamp the latest tag was pushed. |
| `latestTagSize` | integer | Compressed size of the latest tag in bytes. |
| `architectures` | string\[] | OS/architecture pairs the image publishes, for example `linux/amd64`. |
| `aiSummary` | string | AI-written summary of the image, or `null` unless the AI add-on ran. |
| `aiKeyTech` | string\[] | Key technologies extracted by the AI add-on, or `null`. |
| `source` | string | Data source. Always `Docker Hub`. |
| `observedAt` | string | ISO 8601 timestamp of when the record was collected. |
| `error` | string | Present only on a failed run: a single item with a populated `error` field is written instead. |

### Example output record

Real record from a live run (input `{"searchQuery": "redis", "maxImages": 10}`), `fullDescription` trimmed for readability:

```json
{
  "repoName": "redis",
  "repoUrl": "https://hub.docker.com/_/redis",
  "shortDescription": "Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.",
  "starCount": 13605,
  "pullCount": 11098157544,
  "isOfficial": true,
  "isAutomated": false,
  "repoOwner": null,
  "fullDescription": "# Quick reference\n\n- **Maintained by**: Redis LTD … (trimmed)",
  "categories": ["Databases & storage"],
  "contentTypes": ["unrecognized", "image"],
  "lastUpdated": "2026-08-06T21:06:40.230318Z",
  "lastModified": "2026-08-10T18:14:15.225799Z",
  "dateRegistered": "2014-06-05T20:04:50Z",
  "storageSize": 152748128193,
  "tagCount": 1144,
  "latestTag": "trixie",
  "latestTagPushed": "2026-08-06T21:06:38.067608Z",
  "latestTagSize": 55426239,
  "architectures": ["linux/amd64", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/riscv64", "linux/s390x"],
  "aiSummary": null,
  "aiKeyTech": null,
  "source": "Docker Hub",
  "observedAt": "2026-08-14T07:50:44.155Z"
}
```

### Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace `<TOKEN>` with your Apify API token.

Run synchronously and get dataset items in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~dockerhub-images-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQuery":"redis","maxImages":25}'
```

Start a run asynchronously:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~dockerhub-images-scraper/runs?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQuery":"postgres","maxImages":100}'
```

Apify CLI:

```bash
apify call scrapers_lat/dockerhub-images-scraper \
  --input '{"searchQuery":"python","maxImages":10}'
```

### Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing `format`:

```bash
## JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"

## CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"

## Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"
```

`<DATASET_ID>` is returned as `defaultDatasetId` in the run object. Use `offset` and `limit` to page through large result sets. `clean=true` drops empty and internal fields.

### Billing and limits

- **Pay per result.** You are charged per image returned (`result` event). See the [pricing tab](https://apify.com/scrapers_lat/dockerhub-images-scraper/pricing) for the current per-result price.
- **AI summary add-on.** When `withSummary` is enabled on a paid plan, each successfully enriched record is billed an additional `ai_summary` event. It is skipped and not charged on free plans.
- **No charge on failure.** If a run errors before any image is collected, the actor writes a single item with a populated `error` field and does not charge for it. Empty runs cost nothing.
- **Spend cap respected.** Set `maxTotalChargeUsd` on the run; once reached, the actor stops emitting and charging further billable results.
- **Free Apify plans** are capped at 10 images per run. Upgrade for higher `maxImages`.

### FAQ and troubleshooting

**A run returned 0 records. Why?**
The keyword matched no public images on Docker Hub. Try a broader or corrected keyword. Zero-result runs are not charged.

**Why is `repoOwner` null?**
Official images live under the `library` namespace and have no separate owner. `repoOwner` is populated for community images that use an `owner/name` path.

**Why is `fullDescription` or `storageSize` null on some images?**
Those fields come from a best-effort call to the image detail page. If that page fails or omits a value, the base search fields still ship and the missing values are returned as `null`, never invented.

**Can I get the AI summary on a free plan?**
No. The AI summary add-on runs on paid Apify plans only. On free plans it is skipped and not charged, and `aiSummary` and `aiKeyTech` stay `null`.

**Can I scrape private images?**
No. This actor reads only public Docker Hub images. Private or authentication-gated images are not accessible.

**Is this an official Docker tool?**
No. This actor is independent and has no affiliation with Docker, Inc. It reads only data that is publicly available on Docker Hub. Use it in accordance with the Docker Hub terms of service.

### Related scrapers

- [GitHub Repositories Scraper](https://apify.com/scrapers_lat/github-repositories-scraper): public GitHub repositories with stars, topics and metadata.
- [npm Packages Scraper](https://apify.com/scrapers_lat/npm-packages-scraper): npm package metadata, downloads and dependencies.
- [PyPI Packages Scraper](https://apify.com/scrapers_lat/pypi-packages-scraper): Python package metadata from PyPI.
- [crates.io Scraper](https://apify.com/scrapers_lat/crates-io-scraper): Rust crate metadata and download stats.
- [VS Code Marketplace Scraper](https://apify.com/scrapers_lat/vscode-marketplace-scraper): VS Code extensions with installs and ratings.

### More scrapers at scrapers.lat

Built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> Independent tool, not affiliated with Docker, Inc. Accesses only publicly available Docker Hub data. Use in accordance with the Docker Hub terms of service.

# Actor input Schema

## `maxImages` (type: `integer`):

Maximum number of images to collect.

## `searchQuery` (type: `string`):

Keyword to search Docker Hub images (for example 'nginx', 'postgres', 'python').

## `withSummary` (type: `boolean`):

Add-on (paid plans). Uses AI to write a 2-3 sentence plain-English summary of each image README plus its key technologies. Billed per enriched record only on success.

## Actor input object example

```json
{
  "maxImages": 10,
  "searchQuery": "nginx",
  "withSummary": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxImages": 10,
    "searchQuery": "nginx"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/dockerhub-images-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxImages": 10,
    "searchQuery": "nginx",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/dockerhub-images-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxImages": 10,
  "searchQuery": "nginx"
}' |
apify call scrapers_lat/dockerhub-images-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/dockerhub-images-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FNf7gkEO8CQutCNM8/builds/8YwDCU1RcK37l9x4D/openapi.json
