Skip to content
Last updated

A curated collection of real-world code examples organized by scenario. Each section includes working curl, Python, and Node.js snippets you can copy and run immediately.


By Scenario

🌐 Browser Automation

Manage browser profiles and connect via CDP (Chrome DevTools Protocol) for headless or headed automation.

What you want to doExample
Create → Start → Automate → Stop a profileBrowser Profile Examples
Batch update proxies across profilesBrowser Profile Examples
Full Selenium script (Python)Selenium Guide
Full Playwright script (Python)Playwright Guide
Full Puppeteer script (Node.js)Puppeteer Guide

📱 Cloud Phone Lifecycle

Create cloud phone instances, install apps, manage files, and connect via ADB — all through the Open API.

What you want to doExample
Auth → Create → Install App → ADBCloud Phone Examples
Upload a file to a cloud phoneCloud Phone Examples
Complete Python SDK (production-ready)GitHub — cloud_phone_open_api_demo.py

🤖 RPA Schedule Automation

Programmatically create and manage RPA scheduled tasks using marketplace or personal templates.

What you want to doAPI Reference
List marketplace templatesPOST /api/cloudphone/rpa/template/market/pageLocal API
List personal templatesPOST /api/cloudphone/rpa/template/personal/pageLocal API
Create a one-time schedulePOST /api/cloudphone/rpa/onceTask/saveLocal API
List / cancel schedulesPOST /api/cloudphone/rpa/task/pageLocal API
Query execution recordsPOST /api/cloudphone/rpa/subTask/pageLocal API

Tip: See the templateParameter reference in the Create One-Time Schedule endpoint for a step-by-step guide on building template parameters.


🔗 Shared Resources

Proxies, groups, and tags are shared across Browser Profiles and Cloud Phones. Manage them from one place.

What you want to doExample
Add / list / delete proxiesShared Resource Examples
Create and manage groupsShared Resource Examples
Create and manage tagsShared Resource Examples
Full workflow: create resources → assign to profileShared Resource Examples

By Language