We've worked hard at Browserling and we're very proud to announce Browerling's Live API!

Browserling's Live API lets you embed real browsers in your applications on demand. Our API also lets you interact with the browsers through a very neat JavaScript programming interface.

Watch this 4 minute demo to see Live API in action:

Here are some real-world use cases from our early API customers:

  • Automating cross-browser tests - Embed a browser and point it at your test files. The browser will load and run your tests.
  • Automating interactions with browsers - Move mouse, click, drag, navigate links, type text and send send keys to your application through the JavaScript API.
  • Continuous integration - Load any browser at any time on every commit. Accept or reject commits based on what you see.
  • QA - Before releasing your application, preview it in all the browsers at once as part of quality assurance process.
  • Secure browsing - Provide a secure, virtualized browsing environment to your employees or product users.
  • Rebranding, white labeling and reselling - Use our API to create your own cross-browser testing product. We run the browsers and you make money!

Embedding a browser takes less than 10 lines of code:

<script src="https://api.browserling.com/v1/browserling.js"></script>

<script> var browserling = new Browserling(token); browserling.setBrowser('ie'); browserling.setVersion('9'); browserling.setUrl('http://www.catonmat.net&#39;);

var div = document.querySelector('#browserling'); div.appendChild(browserling.iframe()); </script>

First, require browserling.js library. Next, create a new Browserling object with the session token. Then, configure the browser. And finally, embed the iframe containing the browser anywhere in your app. That's it! That's how easy it is to embed a real, fully interactive, live browser in your web application in less than 10 lines of code!

Once you've embedded a browser in your application, you can control it through this simple API:

browserling.moveMouse(100, 200) // moves mouse to x=100, y=200
browserling.leftClick(40, 50)   // left clicks mouse at x=40, y=50
browserling.rightClick(40, 50)  // right clicks mouse at x=40, y=50
browserling.dragMouse(0, 0, 100, 101) // drags mouse from 0, 0 to 100, 101

browserling.delay(5000) // delays actions for 5 seconds

browserling.type("hello world") // types "hello world" browserling.keyPress(Browserling.Keys.Enter) // sends Enter key browserling.keyPress(Browserling.Keys.F1) // sends F1 key browserling.keyDown(Browserling.Keys.Shift) // presses Shift (but doesn't release it) browserling.keyPress('a') // presses 'a', but since Shift was pressed, it types 'A' browserling.keyUp(Browserling.Keys.Shift) // releases Shift

Visit Live API page to learn more, read the full documentation or try Live API Demo.

We look forward to seeing what other API use cases you can think of. Email us any time at to talk about API.