# Lightpanda CDP WebSocket Interface

**Canonical:** https://apis.io/apis/lightpanda/lightpanda-cdp-websocket-interface/  
**Provider:** Lightpanda — https://apis.io/providers/lightpanda/  
**Base URL:** ws://127.0.0.1:9222  
**Documentation:** https://lightpanda.io/docs

Lightpanda CDP WebSocket Interface is one of 3 APIs that [Lightpanda](https://apis.io/providers/lightpanda/) publishes on the [APIs.io](https://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.

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.

## Machine-readable artifacts (5)

- **Documentation** — https://lightpanda.io/docs
- **GitHub** — https://github.com/lightpanda-io/browser
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/lightpanda/refs/heads/main/asyncapi/lightpanda-asyncapi.yml
- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/lightpanda/refs/heads/main/openapi/_original/lightpanda-openapi.yml
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/lightpanda/refs/heads/main/apis.yml

## Other Lightpanda APIs (2)

- [Lightpanda Cloud](https://apis.io/apis/lightpanda/lightpanda-cloud/)
- [Lightpanda CLI / Binary](https://apis.io/apis/lightpanda/lightpanda-cli-binary/)

## Tags

CDP, WebSocket, Browser Automation, Puppeteer, Playwright

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/lightpanda/lightpanda-cdp-websocket-interface/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/lightpanda/.
