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.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lightpanda-cdp-websocket-interface"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lightpanda-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Lightpanda
  description: >-
    Lightpanda is an open-source headless browser built from scratch in Zig for
    AI agents and automation. It does NOT expose a REST API. Its programmable
    interface is the **Chrome DevTools Protocol (CDP)**, a bidirectional
    JSON-RPC wire protocol spoken over a **WebSocket** connection.


    Because the surface is a WebSocket/CDP transport rather than HTTP REST
    request/response endpoints, this OpenAPI document intentionally defines no
    REST paths (`paths: {}`). Modeling fabricated REST endpoints would
    misrepresent the product.


    How to use Lightpanda:

      - Open source binary/CLI (AGPL-3.0, written in Zig). Run
        `lightpanda serve --host 127.0.0.1 --port 9222` to start a CDP server.
        Connect Puppeteer with `browserWSEndpoint: "ws://127.0.0.1:9222"`, or
        Playwright / chromedp via `connectOverCDP`. `lightpanda fetch <url>`
        dumps a page as HTML or markdown; `lightpanda agent` drives the browser
        with LLM instructions.
      - Lightpanda Cloud: managed CDP endpoints over secure WebSocket, e.g.
        `wss://euwest.cloud.lightpanda.io/ws` and
        `wss://uswest.cloud.lightpanda.io/ws`, authenticated with a `token`
        query-string parameter (`?token=YOUR_TOKEN`). Query parameters such as
        `browser=lightpanda|chrome` and `proxy` select the engine and egress.


    The WebSocket/CDP transport is modeled accurately in the companion AsyncAPI
    document at `asyncapi/lightpanda-asyncapi.yml`.
  termsOfService: https://lightpanda.io
  contact:
    name: Lightpanda
    url: https://lightpanda.io
  license:
    name: AGPL-3.0
    url: https://github.com/lightpanda-io/browser/blob/main/LICENSE
  version: '1.0'
servers:
  - url: ws://127.0.0.1:9222
    description: >-
      Local Lightpanda CDP server WebSocket endpoint (started with
      `lightpanda serve`). This is a WebSocket/CDP endpoint, not an HTTP REST
      base URL; it is listed here only to document the transport. See the
      AsyncAPI document for the accurate protocol model.
  - url: wss://cloud.lightpanda.io/ws
    description: >-
      Lightpanda Cloud managed CDP WebSocket endpoint (regional hosts such as
      euwest / uswest). Authenticated via `?token=YOUR_TOKEN`. WebSocket/CDP
      transport, not HTTP REST.
paths: {}