Website Image Scraper avatar

Website Image Scraper

Pricing

from $0.80 / 1,000 records scraped

Go to Apify Store
Website Image Scraper

Website Image Scraper

Extract all image URLs from any website — alt text, dimensions, srcset, and CSS background images. Works on both static and JavaScript-rendered pages.

Pricing

from $0.80 / 1,000 records scraped

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

29

Total users

2

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Scrape images from any website. Give it a URL, get back every image URL with alt text, dimensions, srcset candidates, and CSS background-image URLs. Works on both static and JavaScript-rendered pages.

What it does

Loads your URL, waits for the page to finish rendering, then pulls every image it can find — <img> tags, <picture>/<source> elements, lazy-load data-src attributes, and background-image CSS rules. Returns one record per image with the metadata that's actually useful.

Optionally follows internal links up to a configurable depth, so you can audit images across an entire section of a site rather than just one page.

Output

Each record contains:

FieldDescription
image_urlAbsolute URL of the image
page_urlURL of the page where the image was found
alt_textAlt text (empty string if none)
widthWidth attribute value (empty string if not set in HTML)
heightHeight attribute value (empty string if not set in HTML)
srcsetRaw srcset attribute value
srcset_urlsComma-separated absolute URLs parsed from srcset
srcset_candidatesList of every srcset candidate, each an absolute URL followed by its descriptor (e.g. ... 480w)
highest_resolution_urlAbsolute URL of the largest srcset variant (the image URL itself when there is no srcset)
loadingLoading attribute (lazy, eager, or empty string)
source_tagSource element: img, source, or css-background
filenameFile name from the image URL
extensionLowercase file extension from the image URL (jpg, png, webp, ...)
found_inWhere it was found: img, img-srcset, img-lazy, picture-source, css-background, meta-og-image, meta-twitter-image, link-icon
dom_contextShort DOM path of the holding element (e.g. figure > a > img.cover)
title_textTitle attribute of the image (empty string if none)
parent_link_urlAbsolute URL of the link wrapping the image (empty string if none)
context_textNearby text: the figure caption or surrounding block text, up to 200 characters
alt_missingtrue when an img or picture image has no alt text
is_data_urltrue for inline data-URI images
scraped_atISO 8601 timestamp

Input

ParameterTypeDefaultDescription
urlstring—Website URL to extract images from
maxItemsinteger200Maximum image records to return. Set to 0 for unlimited
crawlLinksbooleanfalseFollow internal links to scrape images from multiple pages
maxDepthinteger1Max depth for internal link crawling (1–3)
includePathPrefixesstring listemptyWith crawling on, only follow links under these path prefixes (e.g. /collections/shoes, /products); the start URL is always visited
waitForLazyLoadbooleantrueScroll each page until its images stop appearing so lazy-loaded images are captured
minWidthinteger0Skip images known to be narrower than this (px). Images with unknown size are kept
minHeightinteger0Skip images known to be shorter than this (px). Images with unknown size are kept
formatsstring listemptyOnly return these extensions (e.g. jpg, png, webp, svg)
urlMustContainstring listemptyOnly return images whose URL contains one of these fragments
urlMustNotContainstring listemptyDrop images whose URL contains any of these fragments
dedupebooleanfalseReturn each image URL once for the whole crawl, not once per page
includeCssBackgroundsbooleantrueInclude CSS background-image images
includeMetaImagesbooleanfalseInclude og:image and twitter:image social preview images
includeIconsbooleanfalseInclude favicons and touch icons
onlyMissingAltbooleanfalseAudit mode: return only img and picture images that have no alt text
includeDataUrlsbooleanfalseInclude inline data-URI images up to 20 KB, flagged with is_data_url

Usage notes

On JavaScript-rendered sites: Images loaded via lazy-loading, React, Vue, or Angular hydration are fully captured. The actor waits for the page network to idle before extracting, which catches most dynamic content.

On srcset: Every srcset variant is returned with its descriptor, and highest_resolution_url points at the largest one. Multi-resolution images are also captured as both the raw srcset string and a parsed comma-separated list of absolute URLs. The image_url field holds the primary src value.

On CSS backgrounds: Computed background-image styles are walked across all visible elements. Inline data URIs are left out unless you turn on includeDataUrls, so the output contains only linkable image URLs by default.

On depth: With crawlLinks: true and maxDepth: 1, the actor crawls the start page plus any internal pages linked from it. Each page is only visited once. Fan-out is capped at 30 new links per page to avoid runaway crawls.

Example output

{
"image_url": "https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg",
"page_url": "https://books.toscrape.com",
"alt_text": "A Light in the Attic",
"width": "",
"height": "",
"srcset": "",
"srcset_urls": "",
"loading": "",
"source_tag": "img",
"filename": "fe72f0532301ec28892ae79a629a293c.jpg",
"extension": "jpg",
"found_in": "img",
"dom_context": "article.product_pod > div.image_container > a > img.thumbnail",
"title_text": "",
"parent_link_url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"context_text": "A Light in the Attic £51.77 In stock",
"is_data_url": false,
"scraped_at": "2026-06-10T12:00:00.000Z"
}

Questions or issues?

Use the feedback fields in the input form or reach out at actor-support@orbtop.com.