Scrapeless API
latest
  • latest
  • v1
Dashboard
Dashboard
latest
  • latest
  • v1
  1. Scraping Browser
  • User
    • Get User Info
      GET
  • Scraping Browser
    • CDP API
    • Browser extensions
      • Upload extension
      • Upgrade extension
      • Delete extension
      • Extension info
      • Extension list
    • Browser profiles
      • Create profile
      • Upgrade profile
      • Delete profile
      • Profile info
      • Profile list
    • Browser signal
      • Send signal
      • Wait for signal
      • List signals
      • Signal stats
      • Clear signals
    • 1Password
      • Create 1Password Integration
      • Revoke 1Password Authorization
      • Get Single Secret
      • Get Multiple Secrets
    • TeamCredentials
      • Create Credential
      • Update Credential
      • Delete Credential
      • Get Credential
    • Connect
      WSS
    • Create session task
      GET
    • Connect by taskId
      WSS
    • Running sessions
      GET
    • Live URL
      GET
  • Scraping API
    • shopee
      • Actor List
      • Shopee Product
      • Shopee Search
      • Shopee Rcmd
    • br sites
      • Solucoes cnpjreva
      • Solucoes certidaointernet
      • Servicos receita
      • Consopt
    • amazon
      • API Parameters
      • product
      • seller
      • keywords
    • Scraper Request
      POST
    • Scraper GetResult
      GET
  • Universal Scraping API
    • JS Render Docs
    • JS Render
      POST
    • Web Unlocker
      POST
  • Crawler
    • Scrape
      • Scrape a single URL
      • Scrape multiple URLs
      • Cancel a batch scrape job
      • Get the status of a scrape
      • Get the status of a batch scrape job
      • Get the errors of a batch scrape job
    • Crawl
      • Crawl multiple URLs based on options
      • Cancel a crawl job
      • Get the status of a crawl job
      • Get the errors of a crawl job
  • Public
    • actor status
      GET
    • actor status
      POST
  1. Scraping Browser

CDP API

Overview#

Scrapeless Scraping Browser extends the standard CDP (Chrome DevTools Protocol) functionality with a series of powerful custom functions to enhance browser automation capabilities. This documentation covers CDP functions for CAPTCHA handling, Signal communication, and Agent operations.

Captcha API#

Overview#

Scrapeless Scraping Browser includes advanced CAPTCHA solution capabilities that can automatically handle mainstream CAPTCHA types appearing on web pages.
Supported CAPTCHA Types:
reCaptcha
Cloudflare Turnstile

Events#

Scraping Browser provides three core events to monitor the CAPTCHA solving process:
Event NameDescription
Captcha.detectedCAPTCHA detected
Captcha.solveFinishedCAPTCHA solved
Captcha.solveFailedCAPTCHA solve failed
Event Response Data Structure:
FieldTypeDescription
typestringCAPTCHA type: recaptcha turnstile
successbooleanSolution result
messagestringStatus message: "NOT_DETECTED" "SOLVE_FINISHED" "SOLVE_FAILED" "INVALID"
token?stringToken returned on success (optional)
Implementation Example:
Node.js (Puppeteer)
Python (Playwright)

Methods#

MethodDescription
Captcha.setTokenSet authentication token for CAPTCHA service
Captcha.setConfigConfigure all CAPTCHA solver parameters
Captcha.solveManually trigger CAPTCHA solving process

Captcha.setToken#

Set authentication token for CAPTCHA solving service.
Node.js (Puppeteer)
Python (Playwright)

Captcha.setConfig#

Configure all parameters for the CAPTCHA solver.
Node.js (Puppeteer)
Python (Playwright)

Captcha.solve#

Manually trigger CAPTCHA solving process.
Node.js (Puppeteer)
Python (Playwright)

Signal API#

Overview#

Signal API provides bidirectional communication capabilities for browser automation scripts, enabling real-time data exchange and event coordination through CDP protocol.
Core Capabilities:
Bidirectional Communication: Send and receive signals through event channels
Timeout Control: Configurable wait timeout (1s ~ 5min)
Global Sharing: All events are globally visible, no session isolation
Event Queue: First-send-then-wait pattern, supports event caching (up to 100 events)
Response Status Codes:
Status CodeMeaningScenario
200SuccessOperation successful or data received
400Parameter ErrorParameter validation failed
408TimeoutWait timeout, no data received
500Server ErrorInternal exception

Methods#

MethodDescription
Signal.sendSend data to specified event channel
Signal.waitWait for data from specified event channel
Signal.listList pending event names
Signal.statsView queue statistics
Signal.clearClear specified or all events

Signal.send#

Send signal data to a specified event channel.
CDP Method Call:
Parameters:
ParameterTypeRequiredDescription
eventstring✅Event channel name (1-256 characters)
dataobject✅Event data payload
Usage Examples:
Example 1: Send MFA verification code
Example 2: Send CAPTCHA result
Response Format:
Success:
{
  "status": 200
}
Error:
{
  "status": 400,
  "error": "event must not be empty"
}

Signal.wait#

Wait for signal data from a specified event channel.
CDP Method Call:
Parameters:
ParameterTypeRequiredDefaultDescription
eventstring✅-Event channel name
timeoutinteger❌60000Timeout in milliseconds (1000-300000)
Usage Examples:
Example 1: Wait for MFA code (default timeout)
Example 2: Wait for CAPTCHA (custom timeout 30 seconds)
Response Format:
Success (data received):
{
  "status": 200,
  "data": { "code": "123456" },
  "event": "mfa_code"
}
Timeout (no data received):
{
  "status": 408,
  "data": null,
  "event": "mfa_code"
}
Parameter Error:
{
  "status": 400,
  "error": "timeout must be between 1000 and 300000"
}

Signal.list#

List pending event names in the queue.
CDP Method Call:
Parameters:
No parameters required.
Response Format:
{
  "status": 200,
  "events": ["mfa_code", "captcha_result", "order_status"]
}
Description:
Returns an array of all pending event names
Deduplicated unique event names
Sorted by first occurrence time

Signal.stats#

View queue statistics.
CDP Method Call:
Response Format:
{
  "status": 200,
  "events": 12,
  "waiters": 3
}
Field Description:
FieldTypeDescription
statusintegerStatus code (200)
eventsintegerTotal number of pending events in queue
waitersintegerNumber of waiting subscribers

Signal.clear#

Clear specified or all events.
CDP Method Call:
Parameters:
ParameterTypeRequiredDescription
eventstring❌Event name, omit to clear all events
Usage Examples:
Clear specific event:
Clear all events:
Response Format:
{
  "status": 200,
  "cleared": 5
}
Field Description:
FieldTypeDescription
statusintegerStatus code (200)
clearedintegerNumber of events cleared

Agent API#

Overview#

Agent API provides browser automation utilities for simulating user interactions and retrieving page information.

Methods#

MethodDescription
Agent.clickSimulate a mouse click
Agent.liveURLGet live URL of current session page

Agent.click#

Simulates a mouse click.
Node.js (Puppeteer)
Python (Playwright)

Agent.liveURL#

Get live URL of current session page.
Node.js (Puppeteer)
Python (Playwright)
Modified at 2025-11-26 10:06:39
Previous
Get User Info
Next
Upload extension
Built with