# API Examples Overview

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 do | Example |
|  --- | --- |
| Create → Start → Automate → Stop a profile | [Browser Profile Examples](/api-reference/examples/browser-examples#full-workflow-create--start--automate--stop) |
| Batch update proxies across profiles | [Browser Profile Examples](/api-reference/examples/browser-examples#batch-operations) |
| Full Selenium script (Python) | [Selenium Guide](/api-reference/examples/selenium) |
| Full Playwright script (Python) | [Playwright Guide](/api-reference/examples/playwright) |
| Full Puppeteer script (Node.js) | [Puppeteer Guide](/api-reference/examples/puppeteer) |


### 📱 Cloud Phone Lifecycle

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

| What you want to do | Example |
|  --- | --- |
| Auth → Create → Install App → ADB | [Cloud Phone Examples](/api-reference/examples/cloudphone-examples#full-workflow-auth--create--install-app--adb) |
| Upload a file to a cloud phone | [Cloud Phone Examples](/api-reference/examples/cloudphone-examples#file-upload-example-python) |


### 🤖 RPA Schedule Automation

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

| What you want to do | API Reference |
|  --- | --- |
| List marketplace templates | `POST /api/cloudphone/rpa/template/market/page` — [Local API](/api-reference/cloud-phone/local-api) |
| List personal templates | `POST /api/cloudphone/rpa/template/personal/page` — [Local API](/api-reference/cloud-phone/local-api) |
| Create a one-time schedule | `POST /api/cloudphone/rpa/onceTask/save` — [Local API](/api-reference/cloud-phone/local-api) |
| List / cancel schedules | `POST /api/cloudphone/rpa/task/page` — [Local API](/api-reference/cloud-phone/local-api) |
| Query execution records | `POST /api/cloudphone/rpa/subTask/page` — [Local API](/api-reference/cloud-phone/local-api) |


> **Tip**: See the `templateParameter` reference in the [Create One-Time Schedule](/api-reference/cloud-phone/local-api) 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 do | Example |
|  --- | --- |
| Add / list / delete proxies | [Shared Resource Examples](/api-reference/examples/shared-examples#proxy-management) |
| Create and manage groups | [Shared Resource Examples](/api-reference/examples/shared-examples#group-management) |
| Create and manage tags | [Shared Resource Examples](/api-reference/examples/shared-examples#tag-management) |
| Full workflow: create resources → assign to profile | [Shared Resource Examples](/api-reference/examples/shared-examples#complete-workflow-create-resources--assign-to-profile) |


## By Language

| Language | Examples |
|  --- | --- |
| **curl** | [Browser](/api-reference/examples/browser-examples), [Cloud Phone](/api-reference/examples/cloudphone-examples), [Shared Resources](/api-reference/examples/shared-examples) |
| **Python** | [Browser](/api-reference/examples/browser-examples), [Selenium](/api-reference/examples/selenium), [Playwright](/api-reference/examples/playwright), [Cloud Phone](/api-reference/examples/cloudphone-examples), [Shared Resources](/api-reference/examples/shared-examples) |
| **Node.js** | [Browser](/api-reference/examples/browser-examples), [Puppeteer](/api-reference/examples/puppeteer), [Cloud Phone](/api-reference/examples/cloudphone-examples), [Shared Resources](/api-reference/examples/shared-examples) |


## Quick Links

- [Authentication & Token Setup](/api-reference/getting-started/authentication)
- [Common Response Format](/api-reference/getting-started/response-format)
- [Error Codes Reference](/api-reference/getting-started/error-codes)
- [Local API vs Open API](/api-reference/getting-started/local-vs-open-api)