How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Lightpanda CDP WebSocket Interface

Lightpanda's primary programmable interface. The browser runs as a CDP server (`lightpanda serve`) and exposes the Chrome DevTools Protocol over a WebSocket endpoint (default `ws://127.0.0.1:9222`). CDP is a bidirectional JSON-RPC wire protocol over WebSocket - not a REST API. Existing Puppeteer, Playwright, and chromedp scripts connect by pointing `browserWSEndpoint` / `connectOverCDP` at this endpoint instead of Chrome.

Lightpanda CDP WebSocket Interface is one of 3 APIs that Lightpanda publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include CDP, WebSocket, Browser Automation, Puppeteer, and Playwright. The published artifact set on APIs.io includes API documentation, an AsyncAPI specification, and an OpenAPI specification.

This event API exposes 2 operations across 1 channel, and defines 6 schemas. It is described by AsyncAPI 2.6.0, at version 1.0.0.

The API connects through 2 servers: 127.0.0.1:9222 (ws), cloud.lightpanda.io/ws (wss).

2 operations 1 channels 6 schemas

Metadata

The identity and technical contract details declared by the specification.

Specification
AsyncAPI 2.6.0
API Version
1.0.0
Base URL
ws://127.0.0.1:9222
Resource Areas
1

Channels & Operations 2

Across 1 channel, the API surfaces 2 operations. Each is listed below with its action, channel, parameters, and response codes.

Channels 2
SUB
/cdp
Receive CDP command results and asynchronous events.
receiveCdpMessages body
PUB
/cdp
Send a CDP command to the browser.
sendCdpCommand body

Messages & Schemas 6

The contract defines 6 schemas that model the data carried by its messages. The most detailed are CdpResult (4 properties), CdpCommand (4 properties), CdpEvent (3 properties). Each schema is shown below with its type and property counts.

CdpCommand
message
A Chrome DevTools Protocol command sent from client to browser.
CdpResult
message
A response to a previously sent CDP command, keyed by its id.
CdpEvent
message
An asynchronous event emitted by the browser (no id).
CdpCommand
object
A CDP command message (JSON-RPC style).
4 properties 2 required
CdpResult
object
A CDP command result keyed by the originating command id.
4 properties 1 required
CdpEvent
object
An asynchronous CDP event emitted by the browser.
3 properties 1 required

Specification

The full machine-readable AsyncAPI contract behind this narrative.

Source

lightpanda-asyncapi.yml Raw ↑

Other APIs Lightpanda publishes across the network.

Lightpanda Cloud
Lightpanda CLI / Binary
Where this information came from

This is an independent, third-party profile of Lightpanda CDP WebSocket Interface, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.