Overview
PalanK exposes a local API that allows external applications to leverage its browser automation capabilities. The API communicates via WebSocket with the local Gateway server.The API is designed for local integrations only. All connections are restricted to
127.0.0.1.Architecture
Connection
WebSocket Endpoint
HTTP Health Check
200 OK if the Gateway is running.
Message Format
All messages use JSON format:Request
Response
Error Response
Quick Start
Available Methods
| Category | Methods |
|---|---|
| Navigation | Page.navigate, Page.reload, Page.goBack, Page.goForward |
| DOM | DOM.getDocument, DOM.querySelector, DOM.getOuterHTML |
| Input | Input.dispatchMouseEvent, Input.dispatchKeyEvent |
| Runtime | Runtime.evaluate, Runtime.callFunctionOn |
| Target | Target.createTarget, Target.closeTarget, Target.activateTarget |
The API supports most Chrome DevTools Protocol methods.