Skip to content
Home » Local API – Browser Profile Interface

Local API – Browser Profile Interface

1. Details of the Browser Profile Interface

1.1Get the list of browser profiles

GET /v1/env/list

Request Parameters

NameTypeRequiredDescription
page_nointegerisPage number, default 1
page_sizeintegerisPage size, default 10
serial_numintegerNoSerial Number
valuestringNoSerial Number/Name/Remarks
namestringNoName
group_idstringNoGrouping
group_ids[string]NoGroup IDs
proxy_typestringNoProxy Type (Method 1) (NON_USE: Do not use HTTP HTTPS SSH SOCKS5 IPFLY)
proxy_hoststringNoProxy Host (Method 1)
out_ipstringNoExport IP
statusstringNoStatus (DISABLED: Inactive, ENABLED: Normal)
platform_userstringNoPlatform
platformstringNoPlatform Type
remarkstringNoRemarks
start_create_timestringNoStart Time
end_create_timestringNoEnd Time
start_last_open_timestringNoLast opened start time
end_last_open_timestringNoLast opened end time
operate_statusstringNoProfile Open Status: ENABLED for open, DISABLED for closed
sharebooleanNoWhether to share the Profile
order_bystringNoSorting Fields: Profile Field ENV_SERIAL_NUM, Profile Name ENV_NAME, Remarks ENV_REMARK, Last Open Time ENV_LAST_OPEN_TIME, Creation Time ENV_CREATE_TIME, Sorting SORT
sortstringNoSorting Method ASC DESC
env_tag_list_typestringNoCONTAIN Contains Label EQUALS Equals Label
env_tag_ids[string]NoTag IDs – matching any one can query the result

Response Parameters

NameTypeDescription
idstringProfile ID, env_id
create_timestringCreation Time
update_timestringModification 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_waystringAgent Mode (CUSTOM: Custom SELECT_EXIST: Select Existing)
proxy_idstringAgent ID (Method 2)
proxy_typestringProxy Type (Method 1) (NON_USE: Do not use HTTP HTTPS SSH SOCKS5 IPFLY)
proxy_hoststringProxy Host (Method 1)
proxy_portinteger(int32)Proxy Port (Method 1)
proxy_user_namestringProxy Account (Method 1)
proxy_passwdstringProxy Password (Method 1)
proxy_ip_typestringIP Query Channel (Method 1) (IP2LOCATION)
proxy_soft_enablebooleanAgent Type (Method 3) Whether the agent service provider reads the configuration account (true: yes, false: no)
urls[string]URL List
fixed_urls[string]Fixed URL List
configstringAdvanced Settings JSON
statusstringStatus (DISABLED: Inactive, ENABLED: Normal)
remarkstringRemarks
last_open_timestringLast Opened Time
operate_statusstringOperating Status DISABLED Closed ENABLED Enabled LOCK Locked
account_list[object]Account
font_idstringFont ID
local_data_configstringLocal Data Settings
env_data_syncstringData Synchronization Limit
data_configstringData Configuration
browser_configstringBrowser Configuration
env_mutil_open_typestringProfile Multi-Opening: GLOBAL: Global ALLOW: Allow BAN: Ban
spoofing_video_typestringVideo Replacement: DEFAULT: Default ENABLE: On DISABLE: Off
restore_url_typestringRestore URL: GLOBAL: Global RESTORE: Restore NOT_RESTORE: Not Restore
operate_members[object]Current Profile Operator Information
config_ext_mapobjectExtended Field
share_numberinteger(int32)Number of Profile Shares
extensions_groupIdstringExtended Group ID
extensions_list[object]Extended Set
bookmark_configstringBookmark Configuration Details
access_limit_configstringAccess Restriction Configuration Details
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.

Body parameter passing

NameTypeRequiredDescription
headlessbooleanNOPass true for headless mode; pass false or leave it unspecified for normal launch.

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)
kernel_versionstringNoKernel versions: 120 (default), 134
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_passwdstringNoProxy 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
statusstringNoStatus (DISABLED: Inactive, ENABLED: Normal)
bookmarkstringNoBookmark
local_storagestringNolocal storage
indexed_dbstringNoindexed_db
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
bookmark_configstringNoBookmark Configuration Details
access_limit_configstringNoAccess Restriction Configuration Details
restore_url_typestringNoRestore URL: GLOBAL: Global RESTORE: Restore NOT_RESTORE: Not Restore
NameTypeRequiredDescription
platformstringYesPlatform
urlstringYesURL
user_namestringNoLogin account
passwdstringNoLogin password
secretstringNoSecret key
remarkstringNoAccount remarks
{
    "extensions_type": "ALLOW",
    "name": "test profile",
    "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": "test profile",
        "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'
}