Browserless

Powerful browser automation built for developers

Go to site
Explore
/
Apps
/
Browserless

Browserless API Integrations

Build and run workflows using the Browserless API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

// See the browserless docs for more info:
// https://docs.browserless.io/
const puppeteer = require('puppeteer-core') 

const browser = await puppeteer.connect({ 
  browserWSEndpoint: `wss://chrome.browserless.io?token=${auths.browserless.api_key}` 
})
const page = await browser.newPage()

await page.goto("https://example.com")
const screenshot = await page.screenshot()

// export the base64-encoded screenshot for use in future steps,
// along with the image type and filename
this.screenshot = Buffer.from(screenshot, 'binary').toString('base64')
this.type = "png"
this.filename = `${url.replace(/[&\/\\#, +()$~%.'":*?<>{}]/g, '_')}-${+new Date()}.${type}`

await browser.close()

Authentication

Browserless uses API keys for authentication. When you connect your Browserless account, Pipedream securely stores the keys so you can easily authenticate to Browserless APIs in both code and no-code steps.

Sign-up for a browserless account, it will create a unique token that allows service interaction.