Quickstart
Get a running session, connect to it, take a screenshot, and tear it down — all in under five minutes.
Prerequisites
An API key from the Chaser dashboard. Sign up, create a workspace, and generate a key under API Keys. Set it as an environment variable:
Step 1 — Create a session
Response:
The session is ready when status is "ready". The cdp_url is a standard WebSocket endpoint.
Step 2 — Connect and automate
Use patchright (a drop-in Playwright replacement) or any CDP client:
Or with Python:
Why patchright? The Chromium bundled with stock Playwright and Puppeteer ships with known automation artifacts —
navigator.webdriver === true, missingchrome.runtime, and other detectable properties. Patchright patches these at the browser level so the session looks like an unmodified user browser.
Step 3 — Take a screenshot
Use Chaser’s screenshot endpoint rather than page.screenshot(). The endpoint captures the framebuffer directly and avoids compositor-readback issues:
The response is a raw PNG. From code:
Step 4 — Tear down
Deleting a session is idempotent. If it already expired or was deleted, you get a 409 session_not_open — that’s fine. The session stops accumulating egress the moment it’s deleted.
Sessions also auto-expire at the expires_at timestamp. Set ttl_seconds on creation (default: 1800, max: 3600) to control how long a session lives without explicit deletion.
What’s next
- Core Concepts — deepen your understanding of profiles, fingerprints, billing, and the session lifecycle
- Playwright / Patchright Guide — detailed integration patterns
- Live View — watch sessions in real time, click through the stream
- API Reference — every endpoint, fully documented