Documentation / AdsPower compatibility

AdsPower compatibility

Use the optional compatibility listener only for integrations built for its supported contract. Changing a native API port alone does not convert an integration.

Separate contracts#

PropertyNativeCompatibility
Default listener127.0.0.1:47300127.0.0.1:50325 (disabled by default)
Start routePOST /api/v1/profiles/{id}/startGET /api/v1/browser/start?user_id=…
Alternative startUse native schemaPOST /api/v2/browser-profile/start
Success checkHTTP status plus resultcode === 0
FailuresHTTP status and error.codeOften HTTP 200 with code: -1 and msg

Configure explicitly#

Enable and inspect AdsPower compatibility in the app settings. It has its own port and token requirement; the default requires a token. Keep authentication enabled and use the intended scoped credential. A configured legacy key uses the scripts scope preset and does not permit reading secrets. Do not assume the native /openapi.json covers compatibility routes.

Supported runtime examples#

Compatibility listener only
GET /api/v1/browser/active?user_id=PROFILE_ID
GET /api/v1/browser/start?user_id=PROFILE_ID
GET /api/v1/browser/stop?user_id=PROFILE_ID
POST /api/v2/browser-profile/start
{"profile_id":"PROFILE_ID"}

V1 accepts user_id or serial_number; V2 uses profile_id or profile_no. Start data contains ws.selenium, ws.puppeteer, debug_port and webdriver; webdriver can be empty when no matching executable is configured or found. Browser state and installed engines remain TabGecko’s, not the other product’s.

Selenium connections#

From version 0.6.7, Chromium profiles can connect to Selenium through ws.selenium. Send a valid admin-scoped API key, enable the native API and retain the required account and vault permissions. The returned address is temporary, specific to the requesting key and valid only on the same computer. Treat it as a credential. Revoking the key, losing permission or closing the profile ends the connection. The webdriver field identifies the matching ChromeDriver alongside the kernel when available. Firefox is not supported by this ChromeDriver connection.

Python · Selenium
import os
import requests
from selenium import webdriver
from selenium.webdriver.chrome.service import Service

response = requests.get(
    "http://127.0.0.1:50325/api/v1/browser/start",
    headers={"Authorization": "Bearer " + os.environ["TABGECKO_API_TOKEN"]},
    params={"user_id": os.environ["TABGECKO_PROFILE_ID"], "headless": "1"},
    timeout=120,
)
response.raise_for_status()
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
data = result["data"]
if not data["ws"]["selenium"] or not data["webdriver"]:
    raise RuntimeError("Selenium connection or matching ChromeDriver unavailable")
options = webdriver.ChromeOptions()
options.debugger_address = data["ws"]["selenium"]
with webdriver.Chrome(service=Service(data["webdriver"]), options=options) as driver:
    print(driver.title)

Independent partial copies#

From version 0.6.6, content creates an independent profile copy for the recipient. It may contain name, proxy, remark and tabs once each, or be empty. Accounts including passwords and 2FA, cookies and the fingerprint are always included. Only the selected additional fields are copied; bookmarks, extensions, account notes, tags and other browser storage are excluded. Later source profile or proxy changes do not change the copy. The source must be closed. Partial copies require profiles:create, groups:create and vaults:read in addition to the existing sharing permissions; queue_if_locked is not used. Responses include copy_profile_id and group_name. A partial failure can leave completed copies or shares; inspect the operation state before retrying.

Proxy-check diagnostics#

From version 0.5.72, profile.proxy_check_failed includes error.details.proxy_check with error_class, error_code, relay_error_code, duration_ms and checked_at. The same diagnostics appear in profile.start_failed and profile.start_request_failed audit events under the same request_id. A null relay_error_code means no relay failure was reported before the check ended. An IP-check service error does not by itself prove the proxy is unreachable.

Recycle bin, team sharing and status#

From version 0.5.70: POST /api/v2/browser-profile/recycle-bin/list accepts page and limit (1–100); /restore accepts profile_id or profile_no and group_id. Restoration checks profile quota. GET /api/v2/user/list and /api/v2/user-group/list require admin scope. POST /api/v2/browser-profile/share accepts profile_id[] and receiver as an existing TabGecko member ID from the member list. Existing recipients are retained. From version 0.6.9, receiver also accepts the verified account email of an active member of the connected team. Current account and team services are required. Display names are not used as proof of identity. Phone numbers and recipients outside the team are not supported. Without content, new shares include the full profile scope, browser data, cookies and stored profile credentials. Restoration and batch sharing report partial progress by request_id. POST /api/v1/browser/cloud-active reports confirmed local sessions; linked team profiles return compat.cloud_status_unavailable with unknown_user_ids and local_active instead of an empty success list when cross-device status cannot be verified.

Team profile usage and queued sharing#

From version 0.5.73, POST /api/v1/browser/cloud-active also reports linked team profiles that run on another device: a profile counts as running while a non-expired runtime lease exists, and account is the lease holder’s email address or member ID. Leases for publishing or synchronization (publish) do not count as running. If the team server does not support the query yet, cannot be reached or an older client reported no lease purpose, the response remains compat.cloud_status_unavailable with unknown_user_ids, local_active and the already confirmed team profiles in cloud_active.

POST /api/v2/browser-profile/share accepts queue_if_locked: true. While another device uses the profile, the share is queued instead of failing with team.profile_locked, and the response contains pending with profile_id, pending_id, shared_id, receiver and state. A queued share re-checks account and token permissions, recipient and profile group before it runs, starts once the team server reports no active lease, makes at most five attempts and expires after 24 hours with team.share_pending_expired. Without queue_if_locked the previous team.profile_locked rejection is unchanged.

Native API
GET /api/v1/team/profiles/{id}/lease
GET /api/v1/team/pending-shares
DELETE /api/v1/team/pending-shares/{id}
PUT /api/v1/team/profiles/{id}/access
{"member_ids":["MEMBER_ID"],"queue_if_locked":true}

The native lease route returns holder member ID, name, email where the server knows it, device, purpose (runtime or publish), acquired_at, renewed_at and expires_at; without an active lease, lease is null. An older team server returns team.lease_status_unsupported (HTTP 501). Queued access changes return HTTP 202 with pending.

Start timings per phase#

From version 0.5.73, successful starts return timings in data.timings (compatibility) or timings (native API); failed starts return error.details.timings. The object contains request_id, profile_id, pid, outcome, total_ms and phases with whole milliseconds per phase, for example queued, checking_account, preparing_profile, checking_connection, launching_browser, connecting_debugger and response. Failures add failed_phase and error_code. The same timings, without response, appear in the audit events profile.started, profile.start_failed and profile.start_request_failed and can be found with GET /api/v1/audit?request_id=…. A start of an already running profile returns the existing session without timings. Timings contain no proxy addresses, credentials, cookies or paths.

Compatibility is not identity#

Only implemented routes and mappings are supported. Inspect msg for ignored fingerprint fields or fields stored without runtime effect. A code: 0 response does not prove every imported setting took effect. No claim of complete vendor API parity, identical fingerprints or third-party plan access is made.

Search for headless, MCP, cookies or an API endpoint.

↑ ↓ NavigateEnter OpenEsc Close