# Website Image & Media Crawler — Bulk Asset Extractor (`logiover/website-image-media-extractor`) Actor

Crawl an entire website and extract every image, video and audio asset — with alt text, dimensions, source page and file type. Perfect for AI training datasets, image SEO audits, asset inventories and migrations. No login, no browser.

- **URL**: https://apify.com/logiover/website-image-media-extractor.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Developer tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Website Image & Media Crawler — Bulk Image & Asset Scraper 🖼️

**Extract every image, video and audio file from a website.** This **image scraper / media extractor** crawls an entire site and pulls out all media assets — together with **alt text, dimensions, the source page** and **file type**. Point it at one URL and it inventories the media across thousands of pages automatically. **No login, no headless browser.**

> Need to **scrape all images from a website**, build an **image dataset for AI**, run an **image SEO / alt-text audit**, or inventory media before a migration? This actor delivers the full list of asset URLs and metadata.

---

### ✨ Key features

- 🕷️ **Full-site crawl** — start from one URL and follow internal links across the whole domain.
- 🖼️ **Every media type** — `<img>`, `srcset`, `<picture>`, lazy-loaded `data-src`, CSS background images, `<video>` + posters, `<audio>`, plus `og:image`, `twitter:image` and favicons.
- 🔗 **Absolute, de-duplicated URLs** — clean asset URLs ready to download or analyze.
- 🏷️ **Rich metadata** — alt text, title, width/height, loading attribute and where each asset was found.
- ⚡ **Fast & cheap** — pure HTTP, no browser, high concurrency.

### 💡 Use cases

- **AI / ML training datasets** — collect large image sets with their alt-text captions for multimodal models.
- **Image SEO audits** — find images missing `alt` text at scale and improve accessibility & rankings.
- **Asset inventories & migrations** — list every media file on a site before a redesign or platform move.
- **E-commerce & competitor research** — pull product imagery across a whole catalog.
- **Bulk image download lists** — generate a clean URL list to fetch images in bulk.

### 📦 What you get

One row per media asset:

| Field | Description |
|-------|-------------|
| `pageUrl` | The page the asset was found on |
| `mediaUrl` | Absolute URL of the asset |
| `mediaType` | `image`, `video`, `audio` or `icon` |
| `foundIn` | Source (`img`, `img-srcset`, `picture-source`, `meta`, `css-background`, `video`, …) |
| `fileExtension` | `jpg`, `png`, `webp`, `mp4`, `svg`, … |
| `alt` / `title` | Image alt and title text |
| `width` / `height` | Declared dimensions |
| `loading` | `lazy` / `eager` |
| `poster` | Video poster image |
| `crawledAt` | ISO 8601 timestamp |

#### Example output

```json
{
  "pageUrl": "https://shop.example.com/product/123",
  "mediaUrl": "https://shop.example.com/img/123-main.jpg",
  "mediaType": "image",
  "foundIn": "img",
  "fileExtension": "jpg",
  "alt": "Blue running shoe, side view",
  "width": "800",
  "height": "800",
  "crawledAt": "2026-05-25T14:15:28.001Z"
}
````

### 🚀 How to use it

1. Click **Try for free / Start**.
2. Paste one or more website URLs into **Start URLs**.
3. (Optional) Set **Max pages to crawl** — `0` for the whole site.
4. (Optional) Toggle which media to include: images, video, audio, CSS backgrounds.
5. Click **Save & Start**.
6. Export the asset list as **JSON, CSV, Excel or via API**.

### ⚙️ Input

| Option | Description | Default |
|--------|-------------|---------|
| `startUrls` | Websites to crawl | – (required) |
| `maxPagesToCrawl` | Max pages per run (`0` = whole site) | `1000` |
| `includeImages` | `<img>`, srcset, `<picture>`, og:image, favicons | `true` |
| `includeVideo` | `<video>` sources and posters | `true` |
| `includeAudio` | `<audio>` sources | `true` |
| `includeBackgroundImages` | CSS inline background images | `true` |
| `maxConcurrency` | Parallel requests | `10` |

#### Example input

```json
{
  "startUrls": [{ "url": "https://example.com" }],
  "maxPagesToCrawl": 2000,
  "includeImages": true
}
```

### 🔍 How it works

The crawler follows internal links within the same domain as your Start URLs. On each page it extracts media from `<img>` (including `srcset` and `data-src`), `<picture>`, inline CSS backgrounds, `<video>`/`<audio>` and their `<source>` children, plus `og:image`, `twitter:image` and favicons. All URLs are resolved to absolute and de-duplicated per page. Pure HTTP — fast and inexpensive.

### 🧰 Tips & best practices

- Set `maxPagesToCrawl` to `0` to inventory an entire catalog or media library.
- Filter by `mediaType` or `fileExtension` after the run to get exactly the assets you need.
- Use `imagesMissingAlt`-style filtering: rows where `alt` is empty are your image-SEO fixes.
- To download the files, feed the `mediaUrl` list into a bulk downloader.

### ❓ FAQ

**Does it download the image files?** No — it extracts asset **URLs and metadata**. You can download them from the `mediaUrl` list afterwards with any bulk downloader.

**Does it capture lazy-loaded images?** Yes — it reads `data-src`, `srcset` and `<picture>` sources in addition to plain `src`.

**Does it render JavaScript?** No — it parses server-rendered HTML for speed and low cost.

**How do I crawl the whole site?** Set `maxPagesToCrawl` to `0`.

**What formats can I export?** JSON, CSV, Excel, HTML and a full REST API.

### 🔗 Related actors by the same author

- **Website to Markdown & Text Crawler** — clean text + Markdown for AI / RAG.
- **Website SEO Audit Crawler** — on-page SEO audit including image alt coverage.
- **Broken Link Checker** — find dead links across a whole site.
- **Sitemap to URL Crawler** — extract all URLs from any sitemap.xml.

***

### Changelog

- **2026-05-25** — Maintenance & reliability pass: pulled the latest source and rebuilt the Actor on the current base image; build verified.

*Last reviewed: 2026-05-25.*

# Actor input Schema

## `startUrls` (type: `array`):

Websites to crawl. The crawler follows internal links and extracts all media assets from every page.

## `maxPagesToCrawl` (type: `integer`):

Maximum pages to crawl per run. Set 0 for no limit (crawl the whole site).

## `includeImages` (type: `boolean`):

Extract <img>, srcset, <picture>, og:image / twitter:image and favicons.

## `includeVideo` (type: `boolean`):

Extract <video> sources and posters.

## `includeAudio` (type: `boolean`):

Extract <audio> sources.

## `includeBackgroundImages` (type: `boolean`):

Extract images referenced in inline style background URLs.

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

Number of parallel requests. Lower this if the target site rate-limits you.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com"
    }
  ],
  "maxPagesToCrawl": 1000,
  "includeImages": true,
  "includeVideo": true,
  "includeAudio": true,
  "includeBackgroundImages": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `pageUrl` (type: `string`):

Page the media was found on

## `mediaUrl` (type: `string`):

Media asset URL

## `mediaType` (type: `string`):

image / video / audio / icon

## `alt` (type: `string`):

Alt text

# 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 = {
    "startUrls": [
        {
            "url": "https://books.toscrape.com"
        }
    ],
    "maxPagesToCrawl": 1000,
    "maxConcurrency": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/website-image-media-extractor").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 = {
    "startUrls": [{ "url": "https://books.toscrape.com" }],
    "maxPagesToCrawl": 1000,
    "maxConcurrency": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/website-image-media-extractor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://books.toscrape.com"
    }
  ],
  "maxPagesToCrawl": 1000,
  "maxConcurrency": 10
}' |
apify call logiover/website-image-media-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logiover/website-image-media-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Website Image & Media Crawler — Bulk Asset Extractor",
        "description": "Crawl an entire website and extract every image, video and audio asset — with alt text, dimensions, source page and file type. Perfect for AI training datasets, image SEO audits, asset inventories and migrations. No login, no browser.",
        "version": "1.0",
        "x-build-id": "uXY2Q39mQLKs87z7u"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/logiover~website-image-media-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-logiover-website-image-media-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/logiover~website-image-media-extractor/runs": {
            "post": {
                "operationId": "runs-sync-logiover-website-image-media-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/logiover~website-image-media-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-logiover-website-image-media-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Websites to crawl. The crawler follows internal links and extracts all media assets from every page.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxPagesToCrawl": {
                        "title": "Max pages to crawl",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum pages to crawl per run. Set 0 for no limit (crawl the whole site)."
                    },
                    "includeImages": {
                        "title": "Include images",
                        "type": "boolean",
                        "description": "Extract <img>, srcset, <picture>, og:image / twitter:image and favicons.",
                        "default": true
                    },
                    "includeVideo": {
                        "title": "Include video",
                        "type": "boolean",
                        "description": "Extract <video> sources and posters.",
                        "default": true
                    },
                    "includeAudio": {
                        "title": "Include audio",
                        "type": "boolean",
                        "description": "Extract <audio> sources.",
                        "default": true
                    },
                    "includeBackgroundImages": {
                        "title": "Include CSS background images",
                        "type": "boolean",
                        "description": "Extract images referenced in inline style background URLs.",
                        "default": true
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Number of parallel requests. Lower this if the target site rate-limits you."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
