Examples
Ready-to-run examples for using Browserless with your frameworks and tools.
Take a Screenshot
Capture any webpage as a PNG with a single API call.
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 results programmatically.
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.
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.
Extract and Download Images
Find all images on a page and download them using a headless browser.
Record a Browser Session
Capture a video recording of a browser session as it navigates and interacts with a page.
Run Concurrent Browser Sessions
Launch multiple browser sessions in parallel to speed up large-scale automation.