INTEGRATIONS

Integrate Scrapeless with Puppeteer to Automate Page Interactions

Use Puppeteer with a remote Scrapeless browser session. Connect through the WebSocket endpoint and keep navigation and extraction in your script.

  • CDP
  • Target URL, task, and browser settings
  • Page data or screenshots selected by your script
Scrapeless
Puppeteer
Input
Remote connectionConfigure the framework
urlhttps://example.com
Workflow resultIllustrative data
{
  "url": "https://example.com",
  "title": "Example Domain"
}

Trusted by teams bringing web data into their workflows

What is Puppeteer?

Puppeteer is a JavaScript library for controlling a browser. Use its page APIs to navigate websites, interact with elements, extract information, and capture screenshots.

Build Automated Web Data Workflows with Scrapeless and Puppeteer

Puppeteer connects to Scrapeless Agent Browser over CDP. These capabilities belong to the remote browser service; your framework keeps control of the task.

Agent Browser connection

Connect Puppeteer to the authenticated Scrapeless browser endpoint over CDP.

Rendered page access

Scrapeless runs the browser and JavaScript; Puppeteer controls page navigation and the content your task extracts.

Browser proxy settings

Configure the browser session’s supported proxy options, such as its proxy country, on the Scrapeless connection.

Session lifetime

Create a remote session for the task, control its lifetime, and close it when your work finishes.

Live Session

Inspect an active Scrapeless browser session while your Puppeteer task runs.

Session Replay

Enable session recording when needed and review the recorded run after the browser task.

Connect Puppeteer to Agent Browser

Pass the Scrapeless WebSocket endpoint to Puppeteer. Create a page, navigate, and extract content using your existing Puppeteer code.

View setup guide

Scrapeless provides the browser, proxy configuration, and session visibility.

Puppeteer keeps its own navigation and extraction code.

Try for Free

How to Connect Scrapeless to Puppeteer and Run Your First Workflow

A Scrapeless API key and authenticated browser endpoint. Node.js with puppeteer-core. A known public page for the first test.

Prepare Puppeteer
# Create a Scrapeless API key in Settings → API Key Management.
npm install puppeteer-core
export SCRAPELESS_API_KEY="YOUR_SCRAPELESS_API_KEY"

# Save the complete example from Step 03 as first-page-puppeteer.cjs.

Install puppeteer-core and set SCRAPELESS_API_KEY in the terminal you will use to run the example.

Ready to get started? Create your Scrapeless account →

Build the authenticated Scrapeless WebSocket URL and connect to the remote browser. Step 03 includes the complete script.

Run node first-page-puppeteer.cjs. For example.com, expect Example Domain in the title and heading. The script closes the browser after the request.

Explore Web Data Workflows with Scrapeless and Puppeteer

Open a page such as example.com through Scrapeless Agent Browser. Connect Puppeteer over CDP, run your page-reading logic, and inspect the returned content before passing it to your application.

  1. Puppeteer

    Choose a Target URL

  2. Scrapeless

    Agent Browser

    {
      "url": "https://example.com",
      "html": "<h1>Example Domain</h1>\n<p>This domain is for use in documentation examples.</p>"
    }
  3. Puppeteer

    Read Page Content

  4. Puppeteer

    Return the Result

Illustrative workflow and example data. Scrapeless provides the web data or browser session. Puppeteer performs the following workflow steps.

Frequently asked questions

Which Puppeteer connection option do I use?

Use puppeteer.connect with browserWSEndpoint set to the authenticated Agent Browser endpoint. The official guide also provides an SDK option.

Do I still need my own extraction logic?

Yes. Your framework or agent decides how to navigate, wait, and select data. Scrapeless provides the browser infrastructure.

Can I configure proxies and session options?

Yes. Use the browser guide’s supported connection options for proxy location, session lifetime, and other settings. Check the exact parameter names in the documentation.

Where do I get the API key?

Create or sign in to your Scrapeless account and get the API key from the dashboard. Save it in the connection or environment used by your integration.

How is usage billed?

Check the current Scrapeless pricing for the product you call. Your automation platform or model provider may bill separately; the integration does not combine those charges.

What should I check if the connection fails?

Check the authenticated endpoint, framework dependencies, session options, and the first page response. Use the official browser guide to investigate connection errors.

Connect your tools to web data

Bring search, scraping, and browser automation into the tools you already use.