Skip to main content
Set your API key in the terminal where you will run the example:
The Python example requires requests (pip install requests). The Node.js example uses built-in fetch in Node 20 or later. The curl example requires jq and uuidgen.

Fetch your first page

Save the Python example as quickstart.py or the Node.js example as quickstart.mjs, then run it with python quickstart.py or node quickstart.mjs.
The script prints the page text, starting with “Example Domain”. Session creation returns 201; deletion returns 204 with no body.
Browser time is metered while the session exists. The finally block closes it even if fetching the page fails. The shell example uses an exit trap for the same purpose.
Use Create a browser to configure regions and proxy exits, or Read a protected page for asynchronous requests and job polling.