Overview
BrowserCat is the purr-fect browser automation platform, offering direct and complete access to a fleet of browsers distributed across the globe.
In just a few lines of code, you can automate web browsers for scraping, generating images, PDFs, and videos, or running automated tests. What’s more, you can scale up to hundreds of parallel browsers without any of the headache of managing them yourself.
In this guide, we’ll quickly explore how BrowserCat works and how you can connect to it.
Let’s go!
Cat’s eye view
What is BrowserCat?
BrowserCat is an infrastructure platform specializing in browser automation. It offers a fleet of globally distributed browsers that you can connect to and control using a websocket connection.
These browsers are frequently used to build web crawlers, generate images and PDFs, automate boring tasks, and run automated tests blazingly fast. More recently, our browsers are frequently used to give LLMs control of real browsers in the cloud.
How does it work?
BrowserCat’s browser fleet listens for websocket requests made from your code. On a new connection, we launch the browser of your choice with the configuration you specify.
After that, your code is free to do everything you would normally do in a browser:
- Launch new tabs and navigate to URLs
- Click buttons, fill out forms, and scroll
- Capture screenshots, generate PDFs, and videos
- Run arbritrary JS within a browser context
- And much more!
When your script ends, the browser shuts down, and we record your usage, so that we can bill you the minimum possible amount.
Is it secure?
Yes! BrowserCat is designed with security in mind.
Your browser session is isolated from all others, and at the end of the session, we purge all temporary data, including downloads, the cache, cookies, and local storage.
We also don’t collect any sensitive information from your sessions, so even a hacker couldn’t get their hands on your data or activity log.
How do I connect?
BrowserCat fully supports the Chrome Devtools Protocol (CDP) and the Playwright protocol.
Because of this flexibility, you’ll find good options across a wide range of programing languages, including Javascript, Python, Java, .NET, Ruby, PHP, Go, and Rust. You can even connect using a raw websockets connection and send CDP commands manually.
We recommend the following clients, in order of preference:
- Playwright: Fast, reliable, easy to use, under active development, and available for Javascript, Python, Java, and .NET.
- Puppeteer: Mature and well-documented, but slower than Playwright and only available for chromium-based browsers.
- Other CDP clients: See our docs on Pyppeteer, ChromeDP, Headless Chrome (Rust), and other CDP clients for more information.
Examples
Here’s a few examples to demonstrate just how easy it is to get started with BrowserCat. We’ll use Playwright and TypeScript for these examples, but you can use any of the clients or languages we mentioned above.
Start now!
Getting started is easy:
- Sign up for a free BrowserCat account.
- Create an API key.
- Create your first automation. (If you can, start with the Playwright.)
- Monitor usage, manage keys, and configure billing on the dashboard.