Skip to content

Local API (1.0.0)

The MoreLogin API offers a comprehensive and developer-friendly RESTful interface that empowers you to programmatically manage browser profiles, cloud phones, and related resources—enabling seamless automation, scalability, and control.The MoreLogin local API runs on your machine and is accessible at:127.0.0.1:40000

Download OpenAPI description
Languages
Servers
Morelogin Local endponint
http://127.0.0.1:40000/

Browser Profile

Operations

Start browser profile

Request

Used to start the profile; you must specify the profile ID. After successful startup, you can obtain the profile debug interface for executing Selenium and Puppeteer automation. For Selenium, use the WebDriver matching the corresponding kernel version. The WebDriver path can be retrieved from the response after profile startup. Requires MoreLogin client version 2.15.0 or higher.

Bodyapplication/jsonrequired
envIdstring

Environment ID. At least one of envId or uniqueId must be provided. If both are given, envId takes precedence.

Example: "1993244721490239488"
uniqueIdinteger

Environment serial number (small integer ID). At least one of envId or uniqueId must be provided. If both are given, envId takes precedence.

Example: 1
encryptKeystring

Encryption key. Required only if end-to-end encryption is enabled for the environment.

Example: "xxx"
isHeadlessboolean

Whether to start in headless mode. Defaults to false if omitted. Note: Requires client version v2.36.0 or higher.

Example: false
cdpEvasionboolean

Enable CDP fingerprint evasion to reduce detection risk. Only applies to PC environments. Default:false. Note: Requires client version v2.36.0 or higher.

Example: false
curl -i -X POST \
  http://127.0.0.1:40000/api/env/start \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1993244721490239488",
    "encryptKey": "xxx",
    "isHeadless": false,
    "uniqueId": 1,
    "cdpEvasion": false
  }'

Responses

Bodyapplication/json
codeinteger
msgstring
dataobjectrequired
data.​envIdstringrequired

profile

data.​debugPortstringrequired
data.​typestringrequired
data.​versionintegerrequired
data.​webdriverstringrequired
Response
application/json
{ "code": 0, "msg": "string", "data": { "envId": "string", "debugPort": "string", "type": "string", "version": 0, "webdriver": "string" } }

Stop browser profile

Request

Closes the specified environment. Requires specifying the environment ID. Requires MoreLogin application v2.15.0 or higher.

Bodyapplication/json
envIdstring

Environment ID or serial number — at least one must be provided; if both, envId takes precedence.

uniqueIdinteger

Environment serial number — at least one of 'envId' or 'uniqueId' must be provided; if both, 'envId' takes precedence.

curl -i -X POST \
  http://127.0.0.1:40000/api/env/close \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1869649942658850816",
    "uniqueId": 0
  }'

Responses

Bodyapplication/json
codeintegerrequired
msgnullrequired
dataobjectrequired
data.​envIdstringrequired
data.​debugPortstringrequired
Response
application/json
{ "code": 0, "msg": null, "data": { "envId": "string", "debugPort": "string" } }

Quick create browser profile

Request

Bodyapplication/json
browserTypeIdintegerrequired

1:Chrome, 2:Firefox

Example: 1
groupIdinteger

Environment group ID; default:ungrouped (0)

Example: 0
isEncryptinteger

Enable end-to-end encryption? 0:No, 1:Yes; default:0

operatorSystemIdintegerrequired

OS type 1:Windows, 2:macOS, 3:Android, 4:iOS

Example: 1
quantityinteger[ 1 .. 50 ]required

Number of environments to create; range:[1–50]

Example: 1
browserCoreinteger

Browser kernel version; default:0 (auto-match). Obtain available versions via '/api/env/advanced/ua/versions'

Example: 140
curl -i -X POST \
  http://127.0.0.1:40000/api/env/create/quick \
  -H 'Content-Type: application/json' \
  -d '{
    "browserTypeId": "1,",
    "operatorSystemId": "1,",
    "quantity": 1
  }'

Responses

Bodyapplication/json
codeintegerrequired
msgnullrequired
dataArray of stringsrequired
requestIdstringrequired
Response
application/json
{ "code": 0, "msg": null, "data": [ "string" ], "requestId": "string" }

Cloud Phone

Operations

Cloud Phone/File Management

Operations

Cloud Phone/App Management

Operations

Cloud Phone/Schedules management

Operations

Proxy Management

Operations

Group Management

Operations

Tag Management

Operations