Skip to content
Last updated

Start, stop, connect to, and manage cloud browser environments programmatically through the MoreLogin API.


Overview

The Cloud Browser API runs a MoreLogin browser profile on a remote host. After you start an environment, you connect to it over the Chrome DevTools Protocol (CDP) and drive it with automation frameworks such as Puppeteer, Playwright, or Selenium.

Cloud Browser supports two API access methods:

MethodBase URLUse Case
Open API (Remote)https://api.morelogin.comAccess from anywhere, OAuth2 authentication
Local API (Local)http://127.0.0.1:40000Access from the machine running MoreLogin client

Choose Open API if you need remote access or server-to-server integration. Choose Local API if you are running automation on the same machine as the MoreLogin client.

For authentication details, see Authentication.


Capabilities

OperationDescription
StartStart a cloud browser environment
StopStop a running environment, optionally forcing release
PageQuery environments by page with filters for name, group, and keyword
ConnectGet the CDP address for a running environment to attach automation tools

Typical Workflow

  1. Start the environment with envId. The environment enters the STARTING state.
  2. Poll the paginated list until cloudBrowserStatus is RUNNING.
  3. Connect to retrieve the cdpUrl, then attach Puppeteer / Playwright / Selenium over CDP.
  4. Stop the environment when the automation finishes.

Environment Status

StatusDescription
STARTINGStarting up
RUNNINGRunning
CLOSEDClosed

Connection Details

The connect endpoint returns two addresses:

{
  "code": 0,
  "msg": null,
  "data": {
    "cdpUrl": "https://runtime1.morelogin.com:16167?token=c62fedaaac524e41a0f02fc4345d41cb",
    "accessUrl": "https://official-website.morelogin.com/browser-remote?token=eyJkZXNrdG9wVXJsIjoi...ZW52SWQiOiIyMDczMzk1NDg5NzM4OTE5OTM2In0%3D&envName=P-1267&lang=en-US"
  }
}
FieldDescription
cdpUrlCDP endpoint with the access token. Pass it to Puppeteer, Playwright, or Selenium.
accessUrlBrowser-based remote desktop page for viewing and controlling the session. Empty if not configured.

The accessUrl token is a Base64-encoded payload carrying the desktop URL, desktop token, expiry, and team, user, member, and environment IDs. Treat both URLs as credentials and do not share them.


API Reference

APIDescription
Cloud Browser Open APIRemote access via https://api.morelogin.com, OAuth2 authentication
Cloud Browser Local APILocal access via http://127.0.0.1:40000, token authentication

Note: Both APIs expose the same operations. Local API paths use the /api/cloudbrowser/... prefix, while Open API paths use /cloudbrowser/.... Always refer to the specific API reference for exact paths and parameters.


GuideDescription
AuthenticationOAuth2 token setup (Open API) and token auth (Local API)
QuickstartRun your first MoreLogin API call