Skip to main content
Use Playwright for your own applications or unprotected pages. For protected-page reads, use fetch to get exit escalation and a content_ok result. Install playwright and requests for Python, or playwright-core for Node.js. A local browser installation is not required for this connection. With a running session, set TILION_API_KEY and TILION_SESSION_ID.
The examples print Example Domain. The default context contains the session’s cookies and storage. A new context has separate state.
browser.close() disconnects this client. The remote session remains running until you delete it or it expires. Send DELETE /v1/session/{id} when finished.
Connection tokens expire after 1,800 seconds. Request /connect again for fresh URLs. See Playwright, CDP & tunnels for the native Playwright endpoint and localhost tunnels. To attach another process to the same browser, see Connect multiple CDP clients. A session supports one main client and up to two observers when enabled for your account.