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
Mock server
https://guide.morelogin.com/_mock/api-reference/local-api/local-api
Morelogin Local endponint
http://127.0.0.1:40000
Operations

Request

Bodyapplication/jsonrequired
envIdstringrequired

Environment ID. Exactly one of envId or uniqueId must be provided.

localStorageboolean

Clear LocalStorage Default:false

indexedDBboolean

Clear IndexedDB Default:false

cookieboolean

Clear cookies Default:false

extensionboolean

Clear extension data. If extensionFile is not provided, clears both extension name and data. Default:false

extensionFileboolean

Clear extension files (effective from v3.36).

curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/removeLocalCache \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1924340272932134912",
    "localStorage": false,
    "indexedDB": false,
    "cookie": false,
    "extension": false,
    "extensionFile": true
  }'

Responses

Bodyapplication/json
codeinteger
msgstring
dataobject
Response
application/json
{ "code": 0, "msg": "string", "data": { "envId": "string", "requestId": "string" } }

Request

Cleans environment cloud cookies and other data (LocalStorage, IndexedDB, extensions and their data)

Headers
Accept-Languagestring

Default request language

Default zh-CN
Example: zh-CN
Bodyapplication/jsonrequired
cookieboolean

Whether to clear cookies

envIdinteger

Environment ID, must fill one with serial ID

othersboolean

Whether to clear other cache

uniqueIdinteger

Serial ID, must fill one with environment ID

curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/cache/cleanCloud \
  -H 'Accept-Language: zh-CN' \
  -H 'Content-Type: application/json'

Responses

Bodyapplication/json
codeinteger
msgnull
datanull
requestIdstring
Response
application/json
{ "code": 0, "msg": null, "data": null, "requestId": "ca3b32431c264b6c94187fde14d23229" }

Request

Bodyapplication/jsonrequired
envIdstringrequired

Profile ID (environment ID). Exactly one of envId or uniqueId must be provided.

uniqueIdstring

Profile serial number (unique ID). Exactly one of envId or uniqueId must be provided.

uaVersioninteger

Target User-Agent version (e.g., Chrome 129). If omitted, uses the current UA version from the profile.

Example: 129
browserTypeIdinteger

Browser type. 1 = Chrome, 2 = Firefox.

Enum12
operatorSystemIdinteger

Operating system type. 1 = Windows, 2 = macOS, 3 = Android, 4 = iOS.

Enum1234
advancedSettingobject(AdvancedSetting)

Advanced browser fingerprint and behavior configuration.

curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/fingerprint/refresh \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1869988538611834880",
    "uniqueId": "",
    "uaVersion": 129,
    "browserTypeId": 1,
    "operatorSystemId": 2,
    "advancedSetting": {}
  }'

Responses

Bodyapplication/json
codeinteger
msgnull
datanull
requestIdstring
Response
application/json
{ "code": 0, "msg": null, "data": null, "requestId": "string" }
Operations
Operations
Operations
Operations
Operations
Operations
Operations