Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Extract & download images

Give it a URL, get back every image on the page. Handles product photos, hero images, thumbnails, whatever the page has.

Extract & download images demo

Works with

TypeScriptTypeScriptPythonPythonStagehandStagehand

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Try in Agents
Copy prompt to run with your AI agent
npx create-browser-app --template image-url-download
uvx create-browser-app --template image-url-download
Try in Agents

Files downloaded by Agents during the session are available through the Downloads API.

Send this template to your email, or view it on your desktop for the source code.

Get started with the Image URL Download template

Point Stagehand at any URL and it extracts every image on the page, `<img>` tags, background images, all of it. Each image is downloaded through the browser's own connection, so cookies, proxy, and auth come along for free. Works on product catalogs, docs sites, landing pages, or anything behind a login. Files are saved with the correct extension based on the actual MIME type.

Steps

  1. Navigate to the target URL and wait for the page to load
  2. Extract all image URLs from the page with Stagehand
  3. Remove duplicates and limit how many images to download
  4. Download each image through the browser's connection, proxy and cookies included
  5. Save images organized by site with the correct file extension

Most Popular Templates

AI browser agent: Gemini 3 Flash

Execute autonomous web tasks using Google's Gemini 3 Flash model

AI browser agent: Gemini 3 Flash

Extract company data from websites

Extract company value propositions from websites for lead enrichment and outreach

Extract company data from websites

Scrape with geolocation proxies

Route browser automation traffic through specific geolocations to access region-specific content

Scrape with geolocation proxies
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service