Skip to content
Home » DICloak API – Browser Profile Interface

DICloak API – Browser Profile Interface

1. Details of the Browser Profile Interface

1.1Get the list of browser profiles

GET /v1/env/{env_id}/open

Request Parameters

NameTypeRequiredDescription
page_nointegerYesPage number, default is 1.
page_sizeintegerYesPagination size, default is 10.
serial_numintegerNoSerial number.
namestringNoName.
group_idstringNoGroup ID.
proxy_hoststringNoProxy host (Method 1).
statusstringNoStatus (DISABLED for deactivated, ENABLED for normal).
platform_userstringNoPlatform.
remarkstringNoRemarks.
start_create_timestringNoStart time.
end_create_timestringNoEnd time.
operate_statusstringNoBrowser profile open status: ENABLED for open, DISABLED for closed.

Response Parameters

NameTypeDescription
idstringBrowser profile ID, env_id
create_timestringCreation time
update_timestringUpdate time
serial_numintegerSerial number
group_idstringGroup ID
group_namestringGroup name
namestringName
browserstringBrowser type (CHROME: Chrome)
ua_typestringUA type
uastringUser Agent
ua_osstringUser Agent OS (WINDOWS/MAC/ANDROID/IOS/LINUX)
cookiestringCookie
other_cookiestringOther cookies
proxy_waystringProxy way (CUSTOM: Custom, SELECT_EXIST: Select existing)
proxy_idstringProxy ID (Mode 2)
proxy_typestringProxy type (Mode 1) (NON_USE: Not used, HTTP, HTTPS, SSH, SOCKS5, IPFLY)
proxy_hoststringProxy host (Mode 1)
proxy_portinteger(int32)Proxy port (Mode 1)
proxy_user_namestringProxy account (Mode 1)
proxy_passwdstringProxy password (Mode 1)
proxy_ip_typestringIP query channel (Mode 1) (IP2LOCATION)
urls[string]List of URLs
configstringAdvanced settings in JSON format
statusstringStatus (DISABLED: Deactivated, ENABLED: Normal)
remarkstringRemarks
last_open_timestringLast open time
operate_statusstringOperation status (DISABLED: Closed, ENABLED: Enabled, LOCK: Locked)
account_list[object]Accounts
font_idstringFont ID
data_configstringData configuration
browser_configstringBrowser configuration
env_mutil_open_typestringMultiple browser profile openings: GLOBAL: Global, ALLOW: Allowed, BAN: Prohibited
operate_members[object]Information of the current browser profile operator
config_ext_mapobjectExtended fields
totalinteger(int32)Total number of items

Response Example (Python)

{
    "code": 0,
    "msg": "success",
    "data": {
        "list": [
            {
                "id": "1848687666096832515",
                "create_time": "2024-10-22 19:27:41",
                "update_time": "2024-10-23 21:28:15",
                "serial_num": 166,
                "group_id": "1776895967565094913",
                "group_name": null,
                "name": "env——name",
                "browser": "CHROME",
                "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6005.0 Safari/537.36",
                "ua_os": "MAC",
                "cookie": "",
                "other_cookie": null,
                "urls": [
                    
                ],
                "status": "ENABLED",
                "remark": null,
                "last_open_time": "2024-10-23 21:26:15",
                "operate_status": "DISABLED",
                "account_list": null,
                "font_id": "",
                "data_config": "{\"type\":25,\"dataType\":\"custom\"}",
                "browser_config": "{\"type\":1,\"browserType\":\"custom\"}",
                "env_mutil_open_type": "GLOBAL",
                "config_ext_map": null
            }
        ],
        "total": 65
    }
}

1.2PATCH to Open the Browser Profile

PATCH /v1/env/{env_id}/open

Request Parameters

NameTypeRequiredDescription
env_idstringYesBrowser profile ID, corresponding to the ID in the list.

Response Parameters

NameTypeRequiredDescription
serial_numberinteger(int32)YesSerial number of the browser profile.
pidstringYesProcess ID of the browser profile.
debug_portintegerYesPort of the browser profile.

Response Example (Python)

{
    'code': 0,
    'msg': 'success',
    'data': {
        'serial_number': 2,
        'pid': '27028',
        'debug_port': 17539
    }
}

1.3PATCH to Close the Browser Profile

PATCH /v1/env/{env_id}/close

Request Parameters

NameTypeRequiredDescription
env_idstringYesBrowser profile ID, corresponding to the ID in the list.

Response Parameters

NameTypeRequiredDescription
serial_numberinteger(int32)YesSerial number of the browser profile.
pidstringYesProcess ID of the browser profile.
debug_portintegerYesPort of the browser profile.

Response Example (Python)

{
    'code': 0,
    'msg': 'success'
}

1.4POST to Add a New Browser Profile

POST /v1/env

Request Parameters

NameTypeRequiredDescription
group_idstringYesGroup ID
namestringNoName
browserstringYesBrowser type (CHROME: Chrome)
osOsVOOsVOYesOperating system
ua_typestringYesUA type (Refer to the appendix for UA types)
uastringYesUser Agent
ua_osstringYesUA OS (WINDOWS/LINUX/MAC/ANDROID/IOS)
cookiestringNoCookie
other_cookiestringNoOther cookies
proxy_waystringNoProxy mode (CUSTOM: Custom, SELECT_EXIST: Select existing)
proxy_idstringNoProxy ID (Mode 2)
proxy_typestringNoProxy type (Mode 1) (NON_USE: Not used, HTTP, HTTPS, SSH, SOCKS5, IPFLY)
proxy_hoststringNoProxy host
proxy_portinteger(int32)NoProxy port
proxy_user_namestringNoProxy account
proxy_passwordstringNoProxy password
proxy_ip_typestringNoIP query channel (IP2LOCATION)
urls[string]NoURL list
configstringYesAdvanced settings in JSON format (Refer to the attached table: Advanced settings for browser profile)
remarkstringNoRemarks
data_configstringNoData configuration (Appendix: Data synchronization)
browser_configstringNoBrowser configuration (Appendix: Browser configuration)
config_ext_mapobjectNoExtended fields
env_mutil_open_typestringNoMultiple browser profile openings: (GLOBAL: Global, ALLOW: Allowed, BAN: Prohibited)
extensions_typestringNoExtension configuration: (ALLOW: Allowed, BAN: Prohibited)
extensions_group_idstringNoExtension group ID
account_list[EnvironmentAccount]NoAccounts
NameTypeRequiredDescription
platformstringYesPlatform
urlstringYesURL
user_namestringNoLogin account
passwdstringNoLogin password
secretstringNoSecret key
remarkstringNoAccount remarks
{
    "extensions_type": "ALLOW",
    "name": "测试环境",
    "group_id": "1858448274955902978",
    "browser": "CHROME",
    "os": {
        "windows": [
            "windows-all"
        ],
        "mac": [
            
        ],
        "android": [
            
        ],
        "ios": [
            
        ],
        "linux": [
            
        ]
    },
    "ua_type": "[\"all\"]",
    "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6166.0 Safari/537.36",
    "proxy_way": "CUSTOM",
    "proxy_type": "NON_USE",
    "proxy_ip_type": "IPAPI",
    "account_list": [
        
    ],
    "urls": [
        
    ],
    "config": "{\"acceptLangType\":\"ip\",\"acceptLangValue\":[\"en-US\",\"en\"],\"langType\":\"acceptLang\",\"langValue\":\"local\",\"timezoneType\":\"ip\",\"timezoneValue\":\"local\",\"geoType\":\"ask\",\"geoSubType\":\"ip\",\"geoValue\":{},\"fontType\":\"custom\",\"fontValue\":[\"Academy Engraved LET\",\"Yrsa SemiBold\",\"Yu Gothic UI\",\"Yu Gothic UI Regular\",\"Z003\"],\"webrtcType\":\"disable\",\"webrtcValue\":\"\",\"canvasType\":\"noise\",\"canvasValue\":\"42541\",\"ratioType\":\"truth\",\"ratioValue\":\"\",\"webGLImageType\":\"noise\",\"webGLImageValue\":\"92132\",\"webGLMetadataType\":\"custom\",\"webglManufacturer\":\"Google Inc. (AMD)\",\"webglRender\":\"ANGLE (AMD, Radeon RX 580 Series Direct3D11 vs_5_0 ps_5_0, D3D11-31.0.14051.5006)\",\"webGPUType\":\"disable\",\"audioContextType\":\"noise\",\"audioContextValue\":91094,\"clientRectsType\":\"noise\",\"clientRectsValue\":3530,\"speechVoicesType\":\"noise\",\"speechVoicesValue\":10408,\"deviceMemoryValue\":\"8\",\"trackType\":\"0\",\"batteryType\":\"noise\",\"batteryValue\":62582,\"portType\":\"1\",\"portValue\":\"\",\"accelerateType\":\"0\",\"hardwareConcurrencyValue\":\"12\",\"ratioWidth\":\"\"}",
    "data_type": "global",
    "browser_type": "global",
    "env_mutil_open_type": "GLOBAL",
    "ua_os": "WINDOWS",
    "extensions_group_id": "1858448274955902979",
    "data_config": "{\"type\":0,\"dataType\":\"global\"}",
    "browser_config": "{\"type\":0,\"browserType\":\"global\"}"
}

Response Example (Python)

NameTypeDescription
idstringUnique ID of the browser profile.
serial_numberintegerSerial number of the browser profile.
OthersSame as the request parametersDetails of the browser profile (Refer to the definition of request parameters).
{
    "code": 0,
    "msg": "成功",
    "data": {
        "id": "1864934151789899778",
        "serial_num": 1,
        "extensions_type": "ALLOW",
        "name": "测试环境",
        "group_id": "1858448274955902978",
        "browser": "CHROME",
        "os": {
            "windows": [
                "windows-all"
            ],
            "mac": [
                
            ],
            "android": [
                
            ],
            "ios": [
                
            ],
            "linux": [
                
            ]
        },
        "ua_type": "[\"all\"]",
        "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6166.0 Safari/537.36",
        "proxy_way": "CUSTOM",
        "proxy_type": "NON_USE",
        "proxy_ip_type": "IPAPI",
        "account_list": [
            
        ],
        "urls": [
            
        ],
        "config": "{\"acceptLangType\":\"ip\",\"acceptLangValue\":[\"en-US\",\"en\"],\"langType\":\"acceptLang\",\"langValue\":\"local\",\"timezoneType\":\"ip\",\"timezoneValue\":\"local\",\"geoType\":\"ask\",\"geoSubType\":\"ip\",\"geoValue\":{},\"fontType\":\"custom\",\"fontValue\":[\"Academy Engraved LET\",\"Yrsa SemiBold\",\"Yu Gothic UI\",\"Yu Gothic UI Regular\",\"Z003\"],\"webrtcType\":\"disable\",\"webrtcValue\":\"\",\"canvasType\":\"noise\",\"canvasValue\":\"42541\",\"ratioType\":\"truth\",\"ratioValue\":\"\",\"webGLImageType\":\"noise\",\"webGLImageValue\":\"92132\",\"webGLMetadataType\":\"custom\",\"webglManufacturer\":\"Google Inc. (AMD)\",\"webglRender\":\"ANGLE (AMD, Radeon RX 580 Series Direct3D11 vs_5_0 ps_5_0, D3D11-31.0.14051.5006)\",\"webGPUType\":\"disable\",\"audioContextType\":\"noise\",\"audioContextValue\":91094,\"clientRectsType\":\"noise\",\"clientRectsValue\":3530,\"speechVoicesType\":\"noise\",\"speechVoicesValue\":10408,\"deviceMemoryValue\":\"8\",\"trackType\":\"0\",\"batteryType\":\"noise\",\"batteryValue\":62582,\"portType\":\"1\",\"portValue\":\"\",\"accelerateType\":\"0\",\"hardwareConcurrencyValue\":\"12\",\"ratioWidth\":\"\"}",
        "data_type": "global",
        "browser_type": "global",
        "env_mutil_open_type": "GLOBAL",
        "ua_os": "WINDOWS",
        "extensions_group_id": "1858448274955902979",
        "data_config": "{\"type\":0,\"dataType\":\"global\"}",
        "browser_config": "{\"type\":0,\"browserType\":\"global\"}"
    },
    "next": null
}

1.5PUT to Edit the Browser Profile

PUT /v1/env/{env_id}

Request Parameters

NameTypeRequiredDescription
env_idstringYesUnique ID of the browser profile.
Other request parametersstringYesRefer to the definition of the request parameters for adding a new browser profile. If a field is not passed, the update of this field will be ignored.

Response Example (Python)

{
    'code': 0,
    'msg': 'success'
}

1.6DELETE the Browser Profile

DELETE /v1/env/{env_id}

Request Parameters

NameTypeRequiredDescription
env_idstringYesThe unique ID of the browser profile.

Response Example (Python)

{
    'code': 0,
    'msg': 'success'
}

1.7DELETE to Completely Delete the Browser Profile

DELETE /v1/env/{env_id}/thorough

Request Parameters

NameTypeRequiredDescription
env_idstringYesThe unique ID of the browser profile.

Response Example (Python)

{
    'code': 0,
    'msg': 'success'
}