# Docker Hub Image Tags Scraper (`kawsar/docker-hub-image-tags-scraper`) Actor

Easily scrape Docker Hub image tags, sizes, digests, and last-pushed timestamps. Collect complete repository inventories, compare image sizes, and export clean data to JSON, CSV, or Excel for seamless tracking and audits.

- **URL**: https://apify.com/kawsar/docker-hub-image-tags-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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 Image Tags Scraper

![Docker Hub Image Tags Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/docker-hub-image-tags-scraper-cover.png)

Collect publicly available Docker Hub image tag information and export structured results in JSON, CSV, or Excel formats. Retrieve tag names, image sizes, digests, update dates, and other useful metadata for one or more repositories.

### What It Does

This actor collects image tag information for the Docker Hub repositories you provide. Each tag is saved as a separate dataset record, including its metadata and collection timestamp. It supports multiple repositories, duplicate prevention, request pacing, and error records when a request fails.

### Modes

- **List Tags:** Collect tag metadata for each specified repository, including tag names, image sizes, digests, update dates, and image details.

### Input Example

```json
{
  "mode": "list",
  "repositories": ["library/python"],
  "maxItems": 50,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### Output Example

```json
{
  "creator": 1156886,
  "tagId": 1331686966,
  "platforms": [
    {
      "architecture": "amd64",
      "digest": "sha256:3d361d7fea344d55ac7a0f51ed7faa99213808ccc96fc9b9170adb95b6570b96",
      "os": "linux",
      "size": 411620271,
      "status": "active"
    }
  ],
  "last_updated": "2026-10-11T20:07:21.927121Z",
  "last_updater": 1156886,
  "last_updater_username": "doijanky",
  "name": "3.12.15-trixie",
  "repository": 26870,
  "full_size": 411620271,
  "v2": true,
  "tag_status": "active",
  "tag_last_pulled": "2026-10-12T05:18:03.191137238Z",
  "digest": null,
  "namespace": "library",
  "repoName": "python",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

The dataset overview includes `tagId`, `name`, `namespace`, `repoName`, `full_size`, `digest`, `last_updated`, `tag_status`, `last_updater_username` and `scrapedAt`.

### Use Cases

- **Tag Inventory:** Build structured inventories of image tags for containers you use or maintain.
- **Image Size Tracking:** Compare `full_size` values across tags when evaluating container platforms.
- **Digest Auditing:** Keep image digests and update timestamps for development and security reviews.
- **Scheduled Monitoring:** Refresh repository tag information using recurring Apify runs.

### FAQ

**Who can use this actor?**

Developers, DevOps engineers, and platform teams who need structured Docker Hub image tag information.

**What information does it collect?**

It collects tag names, image sizes, digests, architectures, operating systems, update dates, pull timestamps, and related repository metadata.

**Which export formats are supported?**

You can export results as JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I run it on a schedule?**

Yes. Use Apify Schedules to refresh repository tag information automatically.

### Trademark Notice and Disclaimer

Docker, Docker Hub, and their related names and logos are trademarks of their respective owners. This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Docker or its owners.

### Is Web Scraping Legal?

This actor collects publicly accessible Docker Hub image tag information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Repository metadata may include usernames or other identifying information. Handle such information responsibly and consider applicable privacy laws, including the GDPR and CCPA.
- **Copyright and Licensing:** Public tag names, image metadata, and digests are distinct from the underlying container images and their contents. Respect applicable software licences and copyright restrictions when using or redistributing image-related materials.
- **Platform Terms and Rate Limits:** Follow Docker Hub's applicable terms, policies, and request limits. Keep collection activity reasonable.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional if you have questions about your intended use.

[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to fetch. List tags pages Docker Hub tag metadata for each repository.

## `repositories` (type: `array`):

Repositories as namespace/name (for example library/python). Bare names default to library/.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

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

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "list",
  "repositories": [
    "library/python"
  ],
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

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

Dataset items as JSON.

# 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 = {
    "repositories": [
        "library/python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/docker-hub-image-tags-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 = { "repositories": ["library/python"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/docker-hub-image-tags-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 '{
  "repositories": [
    "library/python"
  ]
}' |
apify call kawsar/docker-hub-image-tags-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/docker-hub-image-tags-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/dnebKNAKGa3Vtaobn/builds/1t5uUinrFhMvF9ohP/openapi.json
