Skip to main content
Use GET /web/scrape/images to find images referenced by a webpage. Results can include <img> sources, inline SVG, responsive sources, metadata images, favicons, CSS backgrounds, and video posters.

Prerequisites

Export an API key from the dashboard:

Find images

The base request returns where each image was found, its source value, source type, and alt text when available.
The base request costs 1 credit, or 2 credits when it includes browser actions.

Enrich the images

Request enrichment only when you need to select, store, or categorize assets:
Setting any enrichment flag makes the entire request cost 5 credits, including a request that also uses browser actions.

Read the result

The src field can be an absolute URL, inline HTML such as SVG markup, or a base64 data URI. Branch on each item’s type before downloading or rendering it.

Choose enrichment

Classification values are photography, illustration, logo, wordmark, icon, pattern, graphic, or other. Treat the value as a useful label, not proof that an asset is approved for a specific use.

Load more images

Use waitForMs for short delayed loads. Use browser actions when the page needs a click or scroll before images appear.
The TypeScript, Python, Ruby, and Go examples send actions as a JSON query value to preserve the array in SDK 2.14.0.

Production behavior

  • Results describe assets referenced by the rendered page. They do not guarantee that every URL remains downloadable later.
  • alt can be null; do not use it as the only source of an accessible label in your product.
  • maxAgeMs defaults to one day, accepts up to 30 days, and can be set to 0 for a fresh scrape.
  • Forwarding custom headers bypasses cache reads and writes.
  • Use the returned cache_metadata to distinguish a hit, miss, or honored ZDR request.

Next steps

Images API reference

Review the complete image schema and error responses.