Prerequisites
Set your API token and base URL. The examples use your account’s default proxy pool. Proxy, fingerprint, and other start options are in the API reference.Run an example
The examples use a one-time profile. To reuse a saved login, pass a persistent profile UUID to the session call instead.- Python (async)
- JavaScript
- Java
- .NET
Requires Python 3.12 or newer.Save as Run it:
surfsky_playwright.py:Click, type, and scroll
Prefer human emulation over Playwright’s own click, fill, and scroll.Human.* commands move the cursor and type with human timing, and they run through a page-level CDP session. Replace the selector with an input on your page:
Stop the session
Playwright’sbrowser.close() only disconnects from a browser attached over CDP. Without the SDK, stop it through CDP as the Java and .NET examples do. In async Python:
internal_uuid from the start response: