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.
Save Logins to Authenticated Profiles
Capture a logged-in browser state once and reuse it across parallel 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.
Auto-Accept Cookie Consent Banners
Automatically detect and dismiss cookie consent banners before scraping or capturing pages.
Browse Cloudflare Access-Protected Pages
Authenticate through Cloudflare Access and scrape pages behind it.
Change Your Browser's IP Address Using Proxies
Route browser traffic through a residential or datacenter proxy to control the IP address seen by target websites.
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.
Export Pages and Assets
Export a full page snapshot with all linked stylesheets, scripts, images, and fonts.
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 Glassdoor Job Listings
Extract job titles, companies, locations, and salary estimates from Glassdoor search results using stealth mode.
Scrape Walmart Product Listings
Search Walmart and extract product names, prices, ratings, and review counts from the results page.
Scrape Google Shopping Results
Search Google Shopping and extract product names, prices, and links from the results page.
Scrape Zillow Agent Listings
Extract agent names and profile URLs from a Zillow agent directory.
Scrape Booking.com Hotel Listings
Pull hotel names, prices, ratings, and locations from Booking.com search results using stealth mode.
Scrape YouTube Video Data
Extract title, channel, view count, likes, and upload date from a YouTube video page.
Scrape Reddit Posts
Extract post titles, scores, and comment counts from any subreddit.
Export a Slide Deck to PDF or PNG
Capture a slide presentation as a high-fidelity PDF or PNG with accurate fonts and backgrounds.
Record a Browser Session
Capture a video recording of a browser session as it navigates and interacts with a page.
Disconnect and Reconnect to a Browser
Gracefully disconnect from a browser without terminating it, then reconnect with all state intact.
Continue Browser State Across Runs
Create long-lived sessions via the Session API and keep cookies, localStorage, and state across disconnects for hours or days.
Close a Browser Session
Fully terminate a remote browser session and release all resources with browser.close() or a DELETE request.
Wait for Navigation After a Click
Handle page transitions triggered by clicks without losing the navigation event.
Batch DOM Queries in a Single Browser Call
Replace multiple page.$eval() calls with one page.evaluate() to cut Node-to-Chrome round-trips down to one.
Run End-to-End Tests
Run browser tests against Browserless without installing or managing Chrome locally.
Run Concurrent Browser Sessions
Launch multiple browser sessions in parallel to speed up large-scale automation.
Retry Browser Sessions with Exponential Backoff
Catch 429s and transient failures and retry with exponential backoff so capacity spikes don't lose work.
Scrape OpenTable Restaurants
Search OpenTable and extract restaurant names, ratings, cuisine types, and booking availability.
Scrape Amazon Product Listings
Search Amazon and extract product titles, prices, ratings, and review counts from the results page.
Scrape LinkedIn Job Listings
Search LinkedIn Jobs and extract titles, companies, locations, and posting dates from the results.
Scrape Indeed Job Listings
Search Indeed for jobs and extract titles, companies, locations, and salaries from the results.
Scrape Yelp Business Listings
Search Yelp for businesses and extract names, ratings, review counts, and price ranges.
Scrape Realtor.com Property Listings
Search Realtor.com for homes and extract prices, addresses, bed/bath counts, and square footage.
Scrape IMDb Movie Ratings
Extract movie titles, release years, and ratings from IMDb's Top 250 chart.
Scrape GitHub Trending Repos
Extract repository names, descriptions, languages, and star counts from GitHub's trending page.
Scrape Ticketmaster Events
Search Ticketmaster for events and extract names, dates, venues, and price ranges.
Bulk Invoice Download
Navigate a sandbox invoice portal and download PDF invoices in bulk using browser automation.
Fill Out a Job Application Form
Navigate a sandbox job application, fill in personal details, and submit the form.
Healthcare Portal Extraction
Extract patient records and appointment details from a sandbox healthcare portal dashboard.