# Convert images to WebP in bulk (3 public-domain samples)

**Use case:** 

Convert a small batch of image URLs to WebP at quality 80 and see the byte savings per image. The sample is three public-domain files from Wikimedia Commons. Replace the URLs with images you own or are licensed to process. Costs at most $0.003 per run.

## Input

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/2/27/Ing_telescopes_sunset_la_palma_july_2001.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/8/8a/Fraktal_Ljapunov_001.png"
  ],
  "confirmRights": true,
  "outputFormat": "webp",
  "quality": 80,
  "stripMetadata": true,
  "fit": "inside",
  "allowUpscale": false,
  "timeLimitSecs": 3000
}
```

## Output

```json
{
  "url": {
    "label": "Image URL"
  },
  "status": {
    "label": "Status"
  },
  "inputFormat": {
    "label": "Input format"
  },
  "outputFormat": {
    "label": "Output format"
  },
  "inputBytes": {
    "label": "Input bytes",
    "format": "number"
  },
  "outputBytes": {
    "label": "Output bytes",
    "format": "number"
  },
  "savedPercent": {
    "label": "Saved %",
    "format": "number"
  },
  "width": {
    "label": "Width",
    "format": "number"
  },
  "height": {
    "label": "Height",
    "format": "number"
  },
  "kvKey": {
    "label": "File (key-value store key)"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

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

The Bulk Image Compressor & Converter: Images to WebP, AVIF Actor is ready to run with the inputs already set for "Convert images to WebP in bulk (3 public-domain samples)". [Sign up or log in](https://console.apify.com/create-task-from-example/331TLmcbiOftKgSih) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert images to WebP in bulk (3 public-domain samples)" task

The Bulk Image Compressor & Converter: Images to WebP, AVIF Actor will start running based on the input automatically. You can also change all the input fields, like image urls, i own these images or am licensed to process them, and more, to match your specific use case.

### 3. Receive the "Convert images to WebP in bulk (3 public-domain samples)" 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 image url, status, input format, 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 "Convert images to WebP in bulk (3 public-domain samples)" task via API](https://apify.com/lineagersiui/bulk-image-converter.md).

## About this Actor

This example demonstrates how to use [Bulk Image Compressor & Converter: Images to WebP, AVIF](https://apify.com/lineagersiui/bulk-image-converter.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lineagersiui/bulk-image-converter.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/lineagersiui/bulk-image-converter.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`).
