# Extract image URLs and sizes from a web page

**Use case:** 

Extract the image URLs from a web page, with each image's format, width, height and file size. The image files are also saved in a ZIP archive.

## Input

```json
{
  "inputUrls": [
    {
      "url": "https://en.wikipedia.org/wiki/Cat"
    }
  ],
  "onlyNewImages": false,
  "memoryName": "default",
  "includeCanvas": true,
  "includeInlineSvg": true,
  "svgFormat": "both",
  "archiveFormat": "zip",
  "concurrency": 3
}
```

## Output

```json
{
  "input_url": {
    "label": "Input URL",
    "format": "link"
  },
  "image_url": {
    "label": "Image",
    "format": "image"
  },
  "filename": {
    "label": "Filename",
    "format": "link"
  },
  "source": {
    "label": "Found as"
  },
  "file_name": {
    "label": "File in archive"
  },
  "downloaded": {
    "label": "Downloaded",
    "format": "boolean"
  },
  "format": {
    "label": "Format"
  },
  "width": {
    "label": "Width",
    "format": "number"
  },
  "height": {
    "label": "Height",
    "format": "number"
  },
  "bytes": {
    "label": "Bytes",
    "format": "number"
  },
  "duplicate": {
    "label": "Duplicate on page",
    "format": "boolean"
  },
  "duplicate_in_run": {
    "label": "Seen on another page",
    "format": "boolean"
  },
  "download": {
    "label": "Archive link",
    "format": "link"
  },
  "inputurl": {
    "label": "Archive of page",
    "format": "link"
  },
  "errorMessage": {
    "label": "Error"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The 🖼️ Website Image Downloader Pro Actor is ready to run with the inputs already set for "Extract image URLs and sizes from a web page". [Sign up or log in](https://console.apify.com/create-task-from-example/eBoZS9XTpT3jGF85g) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract image URLs and sizes from a web page" task

The 🖼️ Website Image Downloader Pro Actor will start running based on the input automatically. You can also change all the input fields, like 🌐 website urls, 🔁 only new images, and more, to match your specific use case.

### 3. Receive the "Extract image URLs and sizes from a web page" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as input url, image, filename, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract image URLs and sizes from a web page" task via API](https://apify.com/powerful_bachelor/website-image-downloader-pro.md).

## FAQ

### What does the output contain?

This image URL extraction task returns each image's URL, format, width, height, file size and SHA-256, and saves the files in a ZIP archive.

### Can I check several pages at once?

Yes, the image URL extraction task accepts a list of page URLs and returns a separate ZIP archive for each page.

## About this Actor

This example demonstrates how to use [🖼️ Website Image Downloader Pro](https://apify.com/powerful_bachelor/website-image-downloader-pro.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/powerful_bachelor/website-image-downloader-pro.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/powerful_bachelor/website-image-downloader-pro.md

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`).
