Examples
Ready-to-run examples for using Browserless with your AI agents, frameworks, and tools.
Take a Screenshot
Capture any webpage as a high-quality PNG or JPEG screenshot.
Generate a PDF
Export pages to PDF with custom margins and page sizes.
Scrape Structured Data
Extract structured data from fully rendered JavaScript pages.
Extract Content from a URL
Fetch the fully rendered HTML of any page, including JavaScript-generated content.
Automate Google Search
Navigate to Google, type a search query, and extract the results.
Fill and Submit a Form
Automate form interactions across multi-step workflows.
Log In and Reuse Sessions
Log in once and reuse that authenticated state across many sessions.
Log In via Email OTP
Automate login flows that send a one-time passcode to an email address.
Log In with BQL and Browser Automation
Fill credentials, solve CAPTCHAs, and handle post-login redirects.
Solving reCAPTCHAs
Automatically detect and solve reCAPTCHA v2, v3, and invisible challenges.
Solving Cloudflare Challenges
Bypass Cloudflare Turnstile and JS challenges to access protected pages.
Basic Puppeteer Connection
Connect an existing Puppeteer script to Browserless with a single line change.
Basic Playwright Connection
Connect an existing Playwright script to Browserless with a single line change.
Upload and Download Files
Upload files to a page and download files produced during a browser session.
Scrape Etsy Product Listings
Search Etsy and extract product titles, prices, and links from the results page.
Scrape Zillow Agent Listings
Extract agent names and profile URLs from a Zillow agent directory.
Scrape Reddit Posts
Extract post titles, scores, and comment counts from any subreddit.
Run End-to-End Tests
Run browser tests against Browserless without installing or managing Chrome locally.
Scrape IMDb Movie Ratings
Extract movie titles, release years, and ratings from IMDb's Top 250 chart.
Scrape Ticketmaster Events
Search Ticketmaster for events and extract names, dates, venues, and price ranges.