# Docker Hub Scraper — Container Images, Pulls & DevOps Metric (`spotless_studios/docker-hub-scraper`) Actor

Scrape Docker Hub container repositories, official library images, star counts, pull metrics (1B+, 10M+), architectures, operating systems, and publishers.

- **URL**: https://apify.com/spotless_studios/docker-hub-scraper.md
- **Developed by:** [Spotless Studios](https://apify.com/spotless_studios) (community)
- **Categories:** Developer tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 docker container repository extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Container Images & DevOps Scraper

Extract structured container image repositories, official library tags, pull counts (1B+, 10M+), star metrics, supported CPU architectures, and publisher profiles from Docker Hub.

### Features

- **DevOps Repository Metrics**: Extracts repository name, short description, stars count, total pulls, official image status, publisher type (`official`, `verified_publisher`, `community`), operating systems, and architectures (`amd64`, `arm64`).
- **Precision DevOps Filters**: Filter by official images only, verified publishers, minimum star count, minimum pull count, target operating system, and CPU architecture.
- **Continuous Container Monitoring**: Use `onlyNewItems` with a `stateKey` to automatically monitor and alert on new container images released in AI, security, or databases.
- **Fast & Direct**: Uses high-speed Docker Hub search APIs, zero browser overhead.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQuery` | String | `"database"` | Container search term (e.g. `postgres`, `ollama`) |
| `isOfficial` | Boolean | `false` | Only Docker Official Images |
| `isVerified` | Boolean | `false` | Only Verified Docker Publishers |
| `minStars` | Integer | `0` | Minimum star rating threshold |
| `minPulls` | Integer | `0` | Minimum estimated pulls (e.g. `10000`) |
| `operatingSystem` | String | `""` | Target OS (e.g. `linux`, `windows`) |
| `architecture` | String | `""` | Target CPU architecture (e.g. `amd64`, `arm64`) |
| `maxResults` | Integer | `100` | Maximum container repos to extract |
| `onlyNewItems` | Boolean | `false` | Monitoring mode: only emit newly tracked containers |
| `outputPreset` | String | `"full"` | `full`, `lean`, or `contacts` |

### Output Example

```json
{
  "repoName": "library/postgres",
  "shortDescription": "The PostgreSQL object-relational database system provides reliability and data integrity.",
  "starCount": 13500,
  "pullCount": "1B+",
  "pullCountNumeric": 1000000000,
  "isOfficial": true,
  "isAutomated": false,
  "publisherType": "official",
  "operatingSystems": ["linux"],
  "architectures": ["amd64", "arm64", "s390x", "ppc64le"],
  "hubUrl": "https://hub.docker.com/r/_/postgres",
  "updatedAt": "2026-10-25T16:00:00.000Z",
  "scrapedAt": "2026-10-27T12:00:00.000Z"
}
```

***

### More from Spotless Studios

**[All actors on Apify](https://apify.com/spotless_studios)** · Support: spotless.studios.info@gmail.com

| Actor | Best for |
|-------|----------|
| [SLED Government Bids](https://apify.com/spotless_studios/sled-procurement-scraper) | Daily US gov RFP / bid alerts |
| [Webflow Experts](https://apify.com/spotless_studios/webflow-experts-scraper) | Webflow agency & freelancer leads |
| [Stripe Partners](https://apify.com/spotless_studios/stripe-partners-scraper) | Stripe implementation partner lists |
| [UK Planning Applications](https://apify.com/spotless_studios/uk-planning-applications-scraper) | UK planning leads + agent contacts |
| [Product Hunt](https://apify.com/spotless_studios/product-hunt-scraper) | Every PH launch + makers / websites |
| [Duunitori Jobs](https://apify.com/spotless_studios/duunitori-jobs-scraper) | Finland job listings |
| [Clutch Agencies](https://apify.com/spotless_studios/clutch-agencies-scraper) | Clutch agency prospecting |
| [Skool Communities](https://apify.com/spotless_studios/skool-communities-scraper) | Skool community & creator leads |

# Actor input Schema

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

Search Docker Hub repositories (e.g. 'postgres', 'ollama', 'redis', 'pytorch').

## `searchQueries` (type: `array`):

Optional list of multiple search queries to run sequentially in a single job.

## `isOfficial` (type: `boolean`):

Only return Docker Official Images.

## `isVerified` (type: `boolean`):

Only return Verified Publisher or Official images.

## `publisherName` (type: `string`):

Filter by publisher name or Docker namespace (e.g. 'bitnami', 'linuxserver', 'nvidia').

## `minStars` (type: `integer`):

Minimum star count on Docker Hub.

## `maxStars` (type: `integer`):

Maximum star count.

## `minPulls` (type: `integer`):

Minimum container pulls (e.g. 100000 for 100K+ pulls).

## `operatingSystem` (type: `string`):

Filter by container OS.

## `architecture` (type: `string`):

Filter by CPU architecture (e.g. 'amd64', 'arm64', 'arm').

## `updatedAfter` (type: `string`):

Only keep images updated after this date (YYYY-MM-DD, ISO, or relative like '90 days').

## `repoNames` (type: `array`):

Scrape specific Docker Hub repositories directly (e.g. 'nginx', 'bitnami/redis', 'https://hub.docker.com/\_/postgres').

## `includeDetails` (type: `boolean`):

Fetch each repository's detail and tags endpoint to add exactPullCount, fullDescription (README preview), and latestTags (with compressed sizeMb).

## `includeKeywords` (type: `array`):

Keep only images matching these keywords or /regex/ in name, description, or publisher.

## `excludeKeywords` (type: `array`):

Skip images matching any of these keywords or /regex/.

## `keywordMatch` (type: `string`):

Require any or all includeKeywords to match.

## `onlyNewItems` (type: `boolean`):

Remember seen repository names across runs and emit only newly discovered images.

## `stateKey` (type: `string`):

Separate state key per saved search or schedule.

## `maxResults` (type: `integer`):

Maximum number of container repositories to save.

## `outputPreset` (type: `string`):

Choose full record, lean summary, or contacts & links only.

## `outputFields` (type: `array`):

Keep only these specific fields in each saved record.

## `excludeFields` (type: `array`):

Remove specific fields from each saved record.

## `includeEmptyFields` (type: `boolean`):

When disabled, strips null and empty values from each saved record.

## `requiredFields` (type: `array`):

Only save records where every listed field has a non-empty value.

## `maxPages` (type: `integer`):

Maximum search pages per query (100 repositories per page).

## `maxConcurrency` (type: `integer`):

Parallel requests when fetching direct repository names.

## `maxRequestRetries` (type: `integer`):

Retries per failed HTTP request.

## `requestTimeoutSecs` (type: `integer`):

Timeout per HTTP request.

## `proxyConfiguration` (type: `object`):

Optional proxy settings.

## `proxyEscalation` (type: `boolean`):

Automatically step up from direct to Apify datacenter/residential proxies if blocked.

## Actor input object example

```json
{
  "searchQuery": "postgres",
  "isOfficial": false,
  "isVerified": false,
  "operatingSystem": "",
  "includeDetails": false,
  "keywordMatch": "any",
  "onlyNewItems": false,
  "stateKey": "default",
  "maxResults": 50,
  "outputPreset": "full",
  "includeEmptyFields": true,
  "maxPages": 15,
  "maxConcurrency": 4,
  "maxRequestRetries": 3,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyEscalation": true
}
```

# Actor output Schema

## `items` (type: `string`):

Scrape Docker Hub container repositories, official library images, star counts, pull metrics (1B+, 10M+), architectures, operating systems, and publishers.

# 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 = {
    "searchQuery": "postgres",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("spotless_studios/docker-hub-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 = {
    "searchQuery": "postgres",
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("spotless_studios/docker-hub-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 '{
  "searchQuery": "postgres",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call spotless_studios/docker-hub-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,spotless_studios/docker-hub-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/Py8ynXodOPFKptaGt/builds/zDefi2LTnwayjgWfx/openapi.json
