# Image URLs to WebP + ZIP

**Use case:** 

Paste a list of image links and get every image back as a WebP file plus one ZIP archive. Images wider than 1920 px are scaled down (never enlarged), hidden metadata is removed and duplicates are skipped. The sample input uses 8 public-domain photos from The Met and Wikimedia Commons; replace them with your own links. You pay only for images that are delivered.

## Input

```json
{
  "imageUrls": [
    "https://images.metmuseum.org/CRDImages/ad/original/DP164167.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/7b/Blinn_House_Exterior_2025.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP103166.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/a/ab/Inside-apartment-design-home_%2824244145021%29.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP-1605-001.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/6/69/Living_Room_-_Day_Trip_to_New_Orleans_April_2024.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/0/04/Apartment_hotel_Nice.jpg",
    "https://images.metmuseum.org/CRDImages/ad/original/DP105063.jpg"
  ],
  "outputFormat": "webp",
  "quality": 80,
  "maxWidth": 1920,
  "stripMetadata": true,
  "minWidth": 0,
  "minHeight": 0,
  "deduplicate": true,
  "fileNameTemplate": "{index}-{originalName}",
  "createZip": true,
  "zipMaxSizeMb": 500,
  "concurrency": 10,
  "maxRetries": 3,
  "requestTimeoutSecs": 30,
  "maxFileSizeMb": 25
}
```

## Output

```json
{
  "fileUrl": {
    "label": "File URL",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "fileName": {
    "label": "File name in ZIP",
    "format": "string"
  },
  "width": {
    "label": "Width",
    "format": "integer"
  },
  "height": {
    "label": "Height",
    "format": "integer"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "bytesOriginal": {
    "label": "Size before (bytes)",
    "format": "integer"
  },
  "bytesFinal": {
    "label": "Size after (bytes)",
    "format": "integer"
  },
  "savedPercent": {
    "label": "Saved %",
    "format": "number"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  }
}
```

## How it works

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

The Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP Actor is ready to run with the inputs already set for "Image URLs to WebP + ZIP". [Sign up or log in](https://console.apify.com/create-task-from-example/zAULxz8mYkjVaxs30) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Image URLs to WebP + ZIP" task

The Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP Actor will start running based on the input automatically. You can also change all the input fields, like image urls, output format, and more, to match your specific use case.

### 3. Receive the "Image URLs to WebP + ZIP" 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 file url, status, file name in zip, 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 "Image URLs to WebP + ZIP" task via API](https://apify.com/zubayer01/bulk-image-downloader-optimizer.md).

## FAQ

### What does the Image URLs to WebP + ZIP task return?

The Image URLs to WebP + ZIP task saves every image as a WebP file, packs all of them into a ZIP archive and adds one results row per link with the file link, the size before and after, and a reason for any skipped or failed image.

### Do I pay for broken links or duplicate images?

No. The Image URLs to WebP + ZIP task charges only for delivered images, at $2.00 per 1,000 with platform usage included. Broken links, duplicates and other skipped or failed images are free.

### Can I use my own image links?

Yes. Replace the sample links in Image URLs with your own, one per line, or pick an Apify dataset instead. The Image URLs to WebP + ZIP task reads JPEG, PNG, WebP, GIF, AVIF, SVG, BMP and TIFF files.

### Where do I find the ZIP file?

Open the Output tab of the run. The Image URLs to WebP + ZIP task stores the ZIP as archive-001.zip in the run's key-value store, and the OUTPUT record lists its download link.

## About this Actor

This example demonstrates how to use [Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP](https://apify.com/zubayer01/bulk-image-downloader-optimizer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zubayer01/bulk-image-downloader-optimizer.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/zubayer01/bulk-image-downloader-optimizer.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`).
