---
title: Extract Images from Web Pages API
slug: bulk-image-downloader
url: https://apyhub.com/martin10291/service/bulk-image-downloader
provider: Martin Petrov
categories: [Ingestion Kit, Media Kit]
tags: [image-downloading, web-scraping, media-ingestion, asset-collection, duplicate-detection]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Extract Images from Web Pages API

Extract images from web pages API: send page URLs or image links and get stored files with download links. Resize or convert. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/bulk-image-downloader/bulk-image-downloader` | What it does Downloads images or other files from direct links and web pages, stores each file, and… | 100 |

## Endpoint reference

### Bulk Image Downloader - Image URLs & Web Pages to Files

`POST https://api.eu.apyhub.com/martin10291/bulk-image-downloader/bulk-image-downloader` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `urls` | body | array of string | no | Direct image or file links. Max 100 items. Send urls, pageUrls, or both. Direct links run first, in input order, and each one returns a row. Example: `["https://www.gstatic.com/webp/gallery/1.jpg","h… |
| `quality` | body | integer | no | Quality for converted JPG and WebP images (30 to 100). Default: `85`. Example: `85`. |
| `maxFiles` | body | integer | no | Max files stored per call (1 to 100). Links over the limit return a row with found set to false. Each fileUrl stays valid for at least 7 days. Default: `50`. Example: `50`. |
| `maxWidth` | body | integer | no | Images wider than this are scaled down, keeping the aspect ratio. 0 means no resize. Default: `0`. Example: `0`. |
| `minWidth` | body | integer | no | Raster images narrower than this are skipped. The check uses the source image, before any resize. 0 keeps all. SVG files ignore it. Default: `50`. Example: `50`. |
| `pageUrls` | body | array of string | no | Web pages to scan for images: img src, lazy data-src, the largest srcset size, og:image, twitter:image and links to image files. Max 100 items. Page images are stored only while room remains under ma… |
| `fileTypes` | body | string | no | images rejects links that are not real images. all stores any file type. One of: images, all. Default: `images`. Example: `images`. |
| `maxFileMb` | body | integer | no | Files bigger than this many megabytes are skipped. Default: `25`. Example: `25`. |
| `minHeight` | body | integer | no | Raster images shorter than this are skipped. The check uses the source image, before any resize. 0 keeps all. SVG files ignore it. Default: `50`. Example: `50`. |
| `outputFormat` | body | string | no | original keeps the file as it is. The other values convert every image. Transparent images get a white background in JPG. SVG and HEIC files stay as they are. One of: original, jpg, webp, png. Defaul… |
| `dedupeByContent` | body | boolean | no | The same picture under different URLs is stored once, detected by the SHA-256 of the content. The first URL in input order is kept. Default: `true`. Example: `true`. |

#### Quickstart

Download one image from a direct link and get back its stored file details.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/bulk-image-downloader/bulk-image-downloader" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://www.gstatic.com/webp/gallery/1.jpg"
    ]
  }'
```

To collect the images on a web page instead, send `"pageUrls": ["https://books.toscrape.com/"]` and set `maxFiles` to limit how many are stored.

#### What you'll get back

Returns a JSON object with a `count` and an `items` array. Each item has the download link in `fileUrl`, plus size, dimensions, format and hash.

```json
{
  "count": 1,
  "items": [
    {
      "bytes": 44891,
      "contentType": "image/jpeg",
      "downloadedAt": "2026-12-04T08:32:16Z",
      "fileName": "1.jpg",
      "fileUrl": "https://api.eu.apyhub.com/martin10291/bulk-image-downloader<signature>",
      "format": "jpg",
      "found": true,
      "foundOn": "input",
      "height": 368,
      "key": "1.jpg",
      "name": null,
      "originalBytes": 44891,
      "position": 1,
      "sha256": "ddbdb9cdb5f109c567d2aafd076288cd57187e7a97d94898c72591dbfe28235c",
      "sourceUrl": "https://www.gstatic.com/webp/gallery/1.jpg",
      "width": 550
    }
  ]
}
```

## About

## What it does
Use this extract images from web pages API to pull the images off a page and keep a copy of each. Send page addresses, and the API finds the images, saves every file and returns a download link. Each row also gives the size, width, height, format and a SHA-256 hash.

Send page addresses in `pageUrls` (up to 100). The API collects images from `<img>` tags, lazy `data-src` values, the largest `srcset` size, `og:image`, `twitter:image` and links to image files. You can also send direct image links in `urls` (up to 100). Set `maxFiles` (1 to 100, default 50) to cap the files stored per call.
To change the files, set `outputFormat` to `jpg`, `webp` or `png`, and `quality` (30 to 100, default 85) for JPG and WebP. `maxWidth` scales wider images down. `minWidth` and `minHeight` (default 50 px) skip icons and tracking pixels. With `dedupeByContent` on, the same picture found under different URLs is stored once. Each file link stays valid for at least 7 days.

Teams use the extract images from web pages API to copy product photos from a shop page, build image catalogs, archive media from partner pages and prepare images for upload. It cannot fetch private or internal network addresses.

After extraction, use the [Resize Image API](https://apyhub.com/apyhub/service/resize-image) for exact sizes, the [Compress Images API](https://apyhub.com/apyhub/service/compress-images) to cut file size, or the [Convert JPEG to WebP API](https://apyhub.com/apyhub/service/convert-jpeg-to-webp) and [Convert PNG to WebP API](https://apyhub.com/apyhub/service/convert-png-to-webp) for web-ready images.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/bulk-image-downloader
