# Website Image Scraper: Every Image with Real Width & Height (`h1018y/anvil-idea-673-reliable`) Actor

Website Image Scraper reads public pages and returns every image link with its real width, height, file size and format. Extract images from a website, sort them by size and drop tiny icons with a minimum width filter.

- **URL**: https://apify.com/h1018y/anvil-idea-673-reliable.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.72 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## Website Image Scraper: Every Image with Real Width & Height

**Website Image Scraper** - Give it page links and get every image on them with its real pixel size and file size, biggest first.

### What does Website Image Scraper do?

Each image row has width and height read from the image file itself (not the HTML), plus file size, format and megapixels, with a min-width/min-height filter and 'biggest first' order so the logos and spacers drop out.

- Real width x height read from the image file (PNG, JPEG, GIF, WebP, SVG, ICO)
- Biggest first, or page order
- Min width / min height filter to drop icons and spacers
- Finds img, srcset (largest), lazy-load data-src, og:image and CSS background images
- File size, format, alt text and position on the page

### Who uses Website Image Scraper, and for what

- Developers - get a page's main images by API, sorted by size
- E-commerce teams - collect product photo links big enough for a listing
- SEO auditors - find huge image files and missing alt text
- Content teams - grab the og:image and hero image of many articles

### Why this Website Image Scraper?

Low tools fail because they dump every spacer and icon with no way to tell the real photos apart. This Website Image Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from Website Image Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `pageUrl` | https://books.toscrape.com/ |
| `pageTitle` | All products / Books to Scrape - Sandbox |
| `imageUrl` | https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e... |
| `alt` | A Light in the Attic |
| `foundIn` | img |
| `positionOnPage` | 1 |
| `width` | 125 |
| `height` | 155 |
| `megapixels` | 0.019 |
| `aspectRatio` | 0.806 |
| `format` | jpeg |
| `fileSizeBytes` | 9876 |
| `contentType` | image/jpeg |
| `htmlWidth` | null |
| `htmlHeight` | null |
| `httpStatus` | 206 |

### How to use Website Image Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** to get fresh rows every day.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "startUrls": [
    "https://books.toscrape.com/",
    "https://en.wikipedia.org/wiki/Cover_art"
  ],
  "maxImagesPerPage": 10,
  "sortBy": "size",
  "minWidth": 0,
  "minHeight": 0,
  "includeIcons": false
}
```

#### Output example (a real run)

```json
[
  {
    "pageUrl": "https://books.toscrape.com/",
    "pageTitle": "All products | Books to Scrape - Sandbox",
    "imageUrl": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg",
    "alt": "A Light in the Attic",
    "foundIn": "img",
    "positionOnPage": 1,
    "width": 125,
    "height": 155,
    "megapixels": 0.019,
    "aspectRatio": 0.806,
    "format": "jpeg",
    "fileSizeBytes": 9876,
    "contentType": "image/jpeg",
    "htmlWidth": null,
    "htmlHeight": null,
    "httpStatus": 206
  },
  {
    "pageUrl": "https://books.toscrape.com/",
    "pageTitle": "All products | Books to Scrape - Sandbox",
    "imageUrl": "https://books.toscrape.com/media/cache/55/33/553310a7162dfbc2c6d19a84da0df9e1.jpg",
    "alt": "Olio",
    "foundIn": "img",
    "positionOnPage": 17,
    "width": 117,
    "height": 155,
    "megapixels": 0.018,
    "aspectRatio": 0.755,
    "format": "jpeg",
    "fileSizeBytes": 2919,
    "contentType": "image/jpeg",
    "htmlWidth": null,
    "htmlHeight": null,
    "httpStatus": 206
  }
]
```

One flat row per result.

### How much does Website Image Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- website image extractor
- extract images from website
- image url scraper
- get all images from a page
- image size checker
- bulk image links

### FAQ

**Does Website Image Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run Website Image Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - Website Image Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and Website Image Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If Website Image Scraper saved you time, a short review on this page helps others find it.

Data source: [books.toscrape.com](https://books.toscrape.com)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page Monitor: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

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

Public web pages to read, one per line (up to 200). Each page's images come back as rows.

## `maxImagesPerPage` (type: `integer`):

With 'biggest first' the tool checks up to 100 extra images on the page and keeps the biggest.

## `sortBy` (type: `string`):

Biggest first puts the main photos on top and the tiny logos and spacers last.

## `minWidth` (type: `integer`):

Skip images narrower than this, measured from the image file itself. 0 = keep all.

## `minHeight` (type: `integer`):

Skip images lower than this. 0 = keep all.

## `includeIcons` (type: `boolean`):

Also list the site's favicon / app icons.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com/",
    "https://en.wikipedia.org/wiki/Cover_art"
  ],
  "maxImagesPerPage": 10,
  "sortBy": "size",
  "minWidth": 0,
  "minHeight": 0,
  "includeIcons": false
}
```

# Actor output Schema

## `results` (type: `string`):

All result rows (open as table, JSON, CSV or Excel).

# 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": [
        "https://books.toscrape.com/",
        "https://en.wikipedia.org/wiki/Cover_art"
    ],
    "maxImagesPerPage": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-idea-673-reliable").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": [
        "https://books.toscrape.com/",
        "https://en.wikipedia.org/wiki/Cover_art",
    ],
    "maxImagesPerPage": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-idea-673-reliable").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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": [
    "https://books.toscrape.com/",
    "https://en.wikipedia.org/wiki/Cover_art"
  ],
  "maxImagesPerPage": 10
}' |
apify call h1018y/anvil-idea-673-reliable --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,h1018y/anvil-idea-673-reliable"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ony9i7F9iWwSyRcgp/builds/epvgmW2LXwqZTA1Ix/openapi.json
