Context.dev is our pick for developers who need image URLs, dimensions, asset classification, and visual deduplication from rendered web pages. Its image output can collect responsive images, CSS backgrounds, SVGs, and video posters through one scraping endpoint. That fits product-image pipelines, visual asset inventories, and computer vision datasets that need consistent records across different websites. Image extraction documentation.
Apify is useful when you want an Actor that downloads image files or builds ZIP archives. Bright Data and Zyte can return images within product records. Firecrawl offers image extraction alongside its scraping and crawling tools. ScrapingBee, ScraperAPI, and Scrapfly give developers different levels of control over rendering, selectors, and HTML parsing.
An image scraping API starts with a page or site you want to extract from. An image search service starts with a query and discovers images across the web. This comparison focuses on extracting images from website pages, including the extra work needed to turn the response into usable files or dataset records.
Pricing and capabilities checked November 27, 2026. Prices are USD list rates; subscription prices use monthly billing and exclude temporary promotions.
The best API for each image scraping use case
-
Best for rendered image records with metadata: Context.dev. Extract page images with optional dimensions, asset classification, and visual deduplication.
-
Best for downloadable files and ZIP archives: Apify. Choose an image-downloader Actor or build a custom workflow; capabilities and pricing depend on the Actor.
-
Best for image fields from supported retail and social sites: Bright Data. Use a pre-built scraper that returns images alongside the rest of a structured record.
-
Best for open-source scraping and crawling: Firecrawl. Request image output from the hosted API or evaluate its self-hosted core.
-
Best for CSS-based image extraction: ScrapingBee. Define which image attributes you want and return them through extraction rules.
-
Best for custom image parsers backed by managed retrieval: ScraperAPI. Retrieve HTML with rendering and proxy options, then apply your own image-selection logic.
-
Best for product records with images and attributes: Zyte. Extract a product schema containing image URLs, prices, and other product fields.
-
Best for browser and proxy tuning: Scrapfly. Combine rendering controls with CSS/XPath extraction templates or your own parser.
How we compare these APIs
The useful output depends on the job. A gallery downloader needs actual files. A catalog pipeline needs product-to-image relationships. An AI dataset may need measured dimensions, source pages, and a way to remove duplicate assets.
We compare image output, dynamic page handling, image metadata and deduplication, billing units, and use cases. Context.dev publishes this guide. Provider capabilities and prices link to official documentation; the Context example below includes output from a live request.
Image scraping API comparison
| API | Image output | Dynamic pages | Metadata & deduplication | Pricing basis | Choose it when… |
|---|---|---|---|---|---|
| Context.dev | Image records; optional hosted files | Rendering included; scroll/click actions optional. | Measured dimensions, classification, and on-page visual dedupe. | Developer: $20/mo, 10,000 credits. 1 credit/page; 2 with actions. | Production image extraction with metadata. |
| Apify | Actor-dependent: URL lists, files, or ZIPs | Example Actor: HTTP only. Browser support depends on the Actor. | Saved files: dimensions and SHA-256. List mode can dedupe URLs. | Example Actor fees: $2.50/1,000 saved images, or $0.80/1,000 listed, plus $0.001/run and applicable platform usage. | File delivery and custom workflows. |
| Bright Data | Image fields in site-specific records | Managed by the selected scraper; check gallery coverage. | Endpoint-defined image fields; validate dimensions and dedupe in your pipeline. | Web Scraper API PAYG: $1.50/1,000 records. | Supported retail and social sources. |
| Firecrawl | Image, product, or custom JSON output | Browser actions: scroll, click, and wait. | Custom JSON for attributes; measure files and dedupe in your pipeline. | Hobby: $19/mo, 5,000 credits. 1 credit/page; JSON adds 4. | Open-source scraping and crawling. |
| ScrapingBee | Selected image attributes or HTML | JavaScript scenarios support scrolling, clicks, and waits. | CSS/XPath attributes; measure files and dedupe in your pipeline. | Hobby: $19/mo, 75,000 credits. Standard JS: 5 credits/request. | Selector-based extraction. |
| ScraperAPI | HTML for your parser; supported-site structured endpoints | Optional JS rendering and wait_for_selector. | Your parser and file-processing code define the image metadata and dedupe. | Hobby: $49/mo, 100,000 credits. Standard JS: 10 credits/request. | Custom image parsing. |
| Zyte | Product image fields or HTML/custom extraction | Browser extraction supports actions and waits. | Product image fields; custom attributes for other HTML fields. Validate files and dedupe downstream. | PAYG browser retrieval: $1.01–$16.08/1,000 responses, plus automatic extraction. | Product records with associated images. |
| Scrapfly | HTML or extraction-template output | Optional JS rendering and wait controls. | CSS/XPath attributes; your code handles file measurement and dedupe. | Discovery: $30/mo, 200,000 credits. Datacenter base: 1 credit; JS adds 5. | Detailed browser and proxy controls. |
Pricing: Pages, records, images, and credits are different billing units. The listed settings cover the stated request type; protected targets, extraction options, and file downloads can change the cost.
Coverage and metadata: Rendering alone does not expose every gallery image. HTML attributes are not verified file dimensions; URL dedupe, exact-file hashing, and visual dedupe solve different problems. Apify's example is the third-party jtpalms/website-image-downloader Actor, not a platform-wide feature or price.
The 8 best image scraping APIs
1. Context.dev
Best for product-image collections and AI datasets across different websites. Context.dev extracts images from rendered web pages and returns image records with optional dimensions and asset classifications. It covers responsive images, CSS backgrounds, SVGs, and video posters, making it useful for catalog pipelines and visual asset libraries. Images documentation.
Dimensions help you filter out small thumbnails, while classifications help you distinguish photographs from logos and icons. Visual deduplication keeps the largest copy of repeated images on a page. Rendering, proxies, and anti-bot handling are included in the base scrape; scrolling and clicks can expose more images in lazy-loaded galleries. Image workflows.
Pricing: Developer includes 10,000 credits for $20 per month. A base scrape costs 1 credit, or 2 with browser actions. Image enrichment has no separate charge in the unified scrape API. The free tier includes 1,000 monthly credits. Pricing, image billing.
Limitations: Some images may lack dimensions, classifications, or alt text. Hosted download links expire after 24 hours. Visual deduplication applies within a page; deduplicate across pages in your own pipeline. Available resolution depends on the source website. Image output and limits, dataset workflow.
2. Apify
Best for choosing or building an image-download workflow. Apify exposes Actors through its API, so a developer can select a ready-made extractor or implement custom crawling behavior. Evaluate the specific Actor's inputs, rendering, output schema, and billing model.
For example, JT Palms' Website Image Downloader accepts page URLs or direct image URLs. It can list images, save individual files, or create ZIP archives. Downloaded-image records include the source page, image URL, alt text, dimensions, format, and SHA-256 hash. Actor documentation.
Pricing: That Actor lists standard event fees of $2.50 per 1,000 saved images or $0.80 per 1,000 listed images, plus $0.001 per run. Applicable platform usage is additional. Other Actors use different billing models. Actor pricing, platform billing models.
Limitations: This example uses plain HTTP, with no browser or proxy, so it cannot render JavaScript-only galleries. Apify also supports browser-based Actors; choose one when rendering is required rather than assuming every image Actor provides it.
3. Bright Data
Best for image data from supported sites with pre-built scrapers. Bright Data's Web Scraper API returns structured records using a scraper selected for the target website. Its Amazon product scraper, for example, documents image_url, images, and images_count alongside product and pricing fields. Its Instagram post scraper returns photo fields for that source. Amazon scraper fields, Instagram post fields.
This fits a catalog or social-data pipeline when the scraper already exposes the required images. Check the exact endpoint's schema: a product image array, a search-result thumbnail, and every image displayed on a page have different coverage.
Pricing: Web Scraper API pay-as-you-go is $1.50 per 1,000 records. Scale is $499 per month with 384,000 records included and $1.30 per 1,000 additional records. The bill counts delivered records, not the number of image URLs within each one. Pricing.
Limitations: Pre-built schemas are site-specific. A scraper for one retailer does not establish coverage for arbitrary product pages. Confirm required image fields and whether your application still needs to download the returned asset URLs.
4. Firecrawl
Best for image extraction within an open-source scraping and crawling stack. Firecrawl's Scrape API supports an images output format alongside Markdown, HTML, links, and other formats. Its product format can return product images and variants, while custom JSON extraction can target a schema you define. Formats and options.
The hosted service handles the scraping infrastructure. Its open-source core also gives developers a self-hosting option when they need to operate or modify the stack. Self-hosting guide.
Pricing: Hobby includes 5,000 credits for $19 per month. A basic scrape costs 1 credit per page. JSON extraction adds 4 credits per page; budget for the format you actually request. Pricing.
Limitations: The default self-hosted stack does not include every Cloud capability. Screenshots and page actions require Fire-engine, which is not included in the default stack. Self-hosted feature support.
5. ScrapingBee
Best for selecting image elements and attributes with CSS rules. ScrapingBee can return rendered HTML or apply extract_rules to return structured fields. That lets you define which gallery elements to select and which attributes, such as image URLs or alt text, to extract. HTML API and extraction rules.
Selector-based extraction is useful when the relevant gallery has a predictable structure. For responsive images, preserve the available candidates and implement the size-selection logic your application needs. Selectors also need maintenance when a site's markup changes.
Pricing: Hobby includes 75,000 credits for $19 per month; Freelance includes 250,000 for $49. A standard JavaScript-rendered request costs 5 credits. Premium proxies, stealth proxies, and AI extraction change the cost; AI extraction adds 5 credits. Plans, request costs.
Limitations: Fields selected from HTML are not automatically measured image metadata. If you need decoded file dimensions, visual classification, or image-content deduplication, make those explicit steps in the workflow.
6. ScraperAPI
Best for developers maintaining their own image parser. ScraperAPI's generic endpoint retrieves a page, with optional JavaScript rendering, geographic controls, and premium proxy settings. Your code then identifies image candidates and turns the HTML into your application's image schema. Supported sites also have structured-data endpoints. Request parameters.
This gives an application control over how it handles srcset, gallery-specific attributes, source-page associations, and downloads. It also leaves the parsing and validation work with your team.
Pricing: Hobby includes 100,000 credits for $49 per month. Standard JavaScript rendering through render=true costs 10 credits per request. Premium plus rendering costs 25; ultra-premium plus rendering costs 75. Target-specific pricing can also apply. Pricing, parameter costs.
Limitations: Successful page retrieval does not establish that your parser found every gallery image or selected the largest available asset. Test your parsing rules separately from the retrieval layer.
7. Zyte
Best for extracting product data with associated images. Zyte API's automatic product extraction returns a structured product, including mainImage and images. Use this when the image needs to stay associated with a product's name, price, SKU, and other attributes. Automatic extraction, product schema.
Zyte also provides browser HTML and custom attributes. Custom extraction can retrieve image URLs from HTML, which is useful when the standard product schema does not match the required fields. Custom attributes.
Pricing: Pay-as-you-go browser retrieval ranges from $1.01 to $16.08 per 1,000 responses by website tier. Automatic extraction adds $0.27–$1.07 per 1,000 requests per data type. Browser actions and custom attributes have separate pricing. Retrieval rates, request-cost components.
Limitations: Product-image extraction covers the product schema; it is not a complete inventory of every visual asset on the page. Include both retrieval and extraction when estimating the cost of a product-image workflow.
8. Scrapfly
Best for detailed control over rendering, proxies, and extraction rules. Scrapfly supports browser rendering with wait controls, and its Extraction API supports CSS and XPath templates. Use rules to select image attributes, or retrieve HTML and parse it in your own application. Rendering controls, extraction templates.
The distinction between retrieving a page and downloading an image file matters here. Scrapfly bills text responses by request and features; binary responses use bandwidth-based billing. An image-collection budget should account for both when downloading through the API. Billing rules.
Pricing: Discovery includes 200,000 credits for $30 per month. A datacenter text request starts at 1 credit; JavaScript rendering adds 5. Residential proxies cost 25 credits in place of the datacenter base, and unblocking can change the final cost. Dedicated extraction and binary downloads have their own billing rules. Plans, credit calculation.
Limitations: Configure and validate the extraction schema you need. Rendering, proxy selection, extraction, and file delivery can contribute separately to the job's cost.
How to extract website images with an API
This Context.dev request extracts images from Books to Scrape, a public scraping test site. It requests measured dimensions, asset classifications, and visual deduplication. Set CONTEXT_DEV_API_KEY to your API key. API reference.
curl -X POST https://api.context.dev/v1/web/scrape \
-H "Authorization: Bearer $CONTEXT_DEV_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://books.toscrape.com/",
"formats": {
"images": true
},
"imageParams": {
"enrich": ["dimensions", "classification"],
"dedupe": "visual"
}
}'The live request on November 27 returned 21 image records. This is an abridged response containing its first result:
{
"images": {
"requested": true,
"success": true,
"data": [
{
"url": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg",
"alt": "A Light in the Attic",
"width": 125,
"height": 155,
"classification": "illustration"
}
]
}
}Check images.success, then read images.data. Filter on dimensions and asset type only when those fields are present. This request also returned a favicon without enrichment, so code should handle incomplete metadata rather than assume every record has the same optional fields. Response fields.
The first cover measures 125 × 155 pixels. Extracting it does not produce a higher-resolution original. If your dataset needs larger images, look for source pages or responsive candidates that actually expose them. Keep the input page URL with each selected image so you can trace and refresh the record later.
What image scraping costs in a production workflow
Count page retrievals, browser actions, extraction, and file downloads separately. A page containing 30 images may consume one page request, generate 30 billable image records, or require additional requests to inspect and download the assets.
For Context.dev, 1,000 base page scrapes use 1,000 credits. If every request includes browser actions, the total is 2,000 credits. At the Developer plan's $20 per 10,000 included credits, those consume $2 or $4 of the allowance when fully utilized; the monthly plan still costs $20. Context.dev pricing.
For the example Apify Actor, saving 10,000 images incurs $25 in Actor fees at the standard listed rate, plus the run fee and applicable platform usage. Bright Data's $1.50 per 1,000 records instead applies to the selected pre-built scraper's output records. Neither figure establishes the cost of extracting every image from 1,000 arbitrary websites. Actor billing, Bright Data pricing.
How to choose an image scraping API
Use representative product pages, responsive layouts, and galleries from the sites your application needs. Compare the returned records against the images you expect to collect:
-
Coverage: Does the response include the required gallery images, responsive candidates, and CSS backgrounds?
-
Rendering: Can the workflow expose images loaded by scrolling, pagination, or variant clicks?
-
Metadata: Are dimensions measured from the asset, copied from HTML, or absent? Can you distinguish photographs from logos and icons?
-
Traceability: Can you retain the source page and associate images with the right product or variant?
-
Delivery and cost: Do you receive URLs or files, and what does the complete job cost per usable image?
Start with Context.dev when you need rendered image records with enrichment and visual deduplication. Choose an Apify Actor when file downloads or custom execution are central. Evaluate Bright Data or Zyte for product records with associated images, and Firecrawl for an open-source scraping stack. ScrapingBee, ScraperAPI, and Scrapfly fit workflows where your team wants more control over selectors, parsing, or retrieval settings.
Frequently asked questions
Can an API extract images from JavaScript-heavy websites?
Yes. Use rendered-page retrieval, then trigger any scrolling, clicks, or waits needed to expose the gallery. JavaScript rendering alone does not guarantee that every lazy-loaded or variant image becomes visible. Context.dev supports browser actions alongside image extraction. Image workflows.
Can image scraping APIs return full-resolution originals?
They can retrieve higher-resolution candidates when the source exposes them. Check responsive sources, zoom links, and gallery behavior, then verify the decoded dimensions. An extractor cannot guarantee access to an original file or create detail that the source image does not contain.
What is the difference between image URLs and downloaded files?
An image URL identifies an asset your application can request. A downloaded file is a copy already saved to storage. Context.dev returns image URLs with optional enrichment and hosted files; the Apify Actor discussed above can save files and build ZIP archives. Hosted links may expire, so check retention requirements before treating them as permanent storage. Context image files, Actor outputs.
How do I scrape images across thousands of product pages?
Build a page URL list from your catalog, sitemaps, or discovery workflow. Queue image-extraction requests with rate limits, retries, and saved progress. Preserve product identifiers and source URLs, download the selected assets, and deduplicate across pages before assembling the dataset. Context.dev multi-site workflow.
How do I remove duplicate images from scraped pages?
Deduplicate repeated URLs first. Hash downloaded files to identify identical bytes; use visual deduplication when resized or re-encoded copies should count as the same image. Context.dev's imageParams.dedupe: "visual" keeps the largest copy within a visual duplicate group on a page. Deduplicate across pages in your own pipeline. Image deduplication.
Which image metadata should I keep for an AI dataset?
Keep the source page, image URL, measured width and height, retrieval time, file format, and any product or variant identifier you have. Add alt text and asset classification when available. Keep missing fields explicit, validate downloaded files, and deduplicate before splitting the dataset into training and evaluation sets.
Start with your target pages
Take a few pages from the actual catalogs or galleries your product needs. Extract their images, inspect the returned records, and confirm that the selected files meet your resolution and metadata requirements.
Try Context.dev with 1,000 free monthly credits, or follow the image extraction documentation.
Related guides: Best Tools to Extract Images from Websites in Bulk, Best Web Scraping APIs in 2026, and Best Web Search and Scraping APIs in 2026.