Image Source Extractor
Pricing
$4.99/month + usage
Image Source Extractor
Image source extractor that pulls every image URL, alt text, file format, and lazy-load status from any web page, so SEO teams can find missing alt text and fix image issues fast.
Image Source Extractor: Find and Audit Every Image on Any Web Page
Extract every image from a web page with its full URL, alt text, file format, lazy-load status, and Open Graph meta images. Built for SEO auditors who need a complete image inventory without clicking through source code.
Point it at one URL or a list of pages and get back a structured dataset: every <img> element on the page, resolved to an absolute URL, with all the metadata you need to audit image SEO in one pass.
Use cases
- Alt text auditing: find every image on a site with missing or empty alt text and get a prioritized fix list without manual inspection
- Image format analysis: identify pages still serving JPEG instead of WebP, which affects Core Web Vitals and page speed scores
- Lazy-load verification: confirm that below-the-fold images use
loading="lazy"so they are not blocking page load - Open Graph image audit: check that every page has an og:image and twitter:image set correctly for social sharing previews
- Third-party image inventory: flag images loaded from external CDNs or domains that could affect privacy compliance or page performance
- Content migration prep: export a full image list before migrating or redesigning a site so nothing gets missed
What data does this actor extract?
Each record in the output dataset represents one image on the page.
{"pageUrl": "https://apify.com","pageTitle": "Apify: Full-Stack Web Scraping and Browser Automation Platform","imageUrl": "https://apify.com/img/apify-logo.svg","altText": "Apify logo","hasAltText": true,"titleAttr": "","width": "120","height": "40","loading": "lazy","imageFormat": "svg","isExternal": false,"ogImage": "https://apify.com/img/og-image.png","twitterImage": "https://apify.com/img/og-image.png","scrapedAt": "2026-03-01T08:45:12.345678+00:00"}
| Field | Type | Description |
|---|---|---|
pageUrl | string | URL of the source page (final URL after redirects) |
pageTitle | string | Title tag content of the source page |
imageUrl | string | Full absolute URL of the image |
altText | string | Alt attribute value. Empty string if alt is present but blank. Check hasAltText to tell missing from intentionally empty. |
hasAltText | boolean | True if the img element has an alt attribute at all. False means the attribute is missing entirely, which is an SEO issue. |
titleAttr | string | Title attribute on the img element, if present |
width | string | Width attribute from the HTML (may be empty if not set) |
height | string | Height attribute from the HTML (may be empty if not set) |
loading | string | Loading attribute: lazy, eager, or empty if not set |
imageFormat | string | Image file format from the URL extension: jpg, jpeg, png, gif, webp, svg, ico, avif, or other |
isExternal | boolean | True if the image is hosted on a different domain than the page |
ogImage | string | Open Graph image from the page's og:image meta tag |
twitterImage | string | Twitter Card image from the page's twitter:image meta tag |
error | string | Error message if the page could not be fetched (present only on failure) |
scrapedAt | string | ISO 8601 timestamp of when the page was scraped |
Input
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | required | Single web page URL to extract images from |
urls | array | [] | List of page URLs. One per line. Use this to audit multiple pages in one run. |
includeExternalImages | boolean | true | Include images hosted on external domains. Disable to see only images from the same domain as the page. |
maxUrls | integer | 100 | Maximum number of pages to process. Hard cap is 1000. |
requestTimeoutSecs | integer | 30 | Per-request timeout in seconds. Increase for slow sites. |
timeoutSecs | integer | 300 | Overall actor run timeout in seconds. |
proxyConfiguration | object | Datacenter (Anywhere) | Proxy type and location for requests. Supports Datacenter, Residential, Special, and custom proxies. Optional. |
Example input
{"url": "https://apify.com","urls": ["https://apify.com/about","https://apify.com/pricing"],"includeExternalImages": true,"maxUrls": 100,"requestTimeoutSecs": 30,"proxyConfiguration": { "useApifyProxy": true }}
How it works
- Accepts one or more page URLs from the input
- Deduplicates the URL list and caps at
maxUrls - Fetches each page using an async HTTP client with a realistic browser User-Agent
- Parses the HTML with BeautifulSoup and finds every
<img>element - Resolves each image
srcto an absolute URL - Checks for the
alt,title,width,height, andloadingattributes - Detects the file format from the URL extension
- Extracts Open Graph and Twitter Card meta images from the page head
- Pushes one record per image to the output dataset
- Rotates proxy per page when proxy configuration is enabled
FAQ
Can this actor check alt text on JavaScript-rendered pages? No. It uses a plain HTTP request and parses the raw HTML. If images are injected by JavaScript after the page loads, they will not appear in the output. For JS-rendered sites, you would need a browser-based actor using Playwright.
What is the difference between hasAltText false and altText being an empty string?
hasAltText: false means the alt attribute is completely missing from the img element. This is an SEO and accessibility problem. altText: "" with hasAltText: true means the attribute is present but intentionally empty, which is correct markup for decorative images.
How many images can it extract per run?
There is no hard limit on images per page. The maxUrls setting caps the number of pages processed, not the number of images per page. A single page might have 5 images or 500.
Does it follow links and crawl the entire site?
No. It only extracts images from the URLs you provide. It does not crawl to new pages. To audit a full site, export your URL list from a sitemap or crawl tool first and then feed it as the urls input.
What formats does it detect?
It detects jpg, jpeg, png, gif, webp, svg, ico, bmp, tiff, avif, and apng from the URL extension. If the extension is missing or unknown it returns other.
Integrations
Connect Image Source Extractor with other apps and services using Apify integrations. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and many more. You can also use webhooks to trigger actions whenever the image audit is complete.
