Browser Environment

  • Path:/api/v1/browser/start

  • Method:POST

  • Content-Type:application/json

  • Interface Description: This interface is used to start the specified environment. After the startup is successful, you can obtain the browser debug interface to execute selenium and puppeteer automation scripts.

Request Parameters

Parameter Name Type Require Default Value Explanation
Session_ID array Yes 373808cb37bd63f5f7d92415e736e85f,705cc4c139e69b729a2fd277f30e1863 Environment ID
isHeadless boolean No true

true:Default browser headless mode

false:The browser has header mode

isWebDriverReadOnlyMode boolean No true Read-only mode or not, default is true read-only. Read-only mode does not save cookies and other data
args array No "args": ["--disable-extensions", "--blinksettings=imagesEnabled=false"] Start Parameter

Example Single Environment Request

{
    "Session_ID": [
        "373808cb37bd63f5f7d92415e736e85f"
    ],
    "args": [ 
        "--disable-extensions", 
        "--blink-settings=imagesEnabled=false" 
    ]
}

Examples of Multiple environment Requests

{
    "Session_ID": [
        "373808cb37bd63f5f7d92415e736e85f",
        "705cc4c139e69b729a2fd277f30e1863"
    ],
    "args": [ 
        "--disable-extensions", 
        "--blink-settings=imagesEnabled=false",
        "--interval-seconds=3" 
    ]
}

--disable-extensions Disable Plug-in

--blink-settings=imagesEnabled=false Do Not Load Images

--interval-seconds Time between browser launches (seconds)

Execution Success Return

{
    "message": "Success",
    "code": 0,
    "data": {
        "listid": [{
            "Session_Name": "Business Environment I",
            "Session_ID": "373808cb37bd63f5f7d92415e736e85f",
            "Group_Name": "default",
            "Actived_script_id": "O73808cb37bd63f5f7d92415e736e999",
            "Actiived_script_name": "Here's an example of a script",
            "Actiived_script_encode": "true",
            "Weblogin_Account_Count": "4",
            "Weblogin_Account_name": "aaa@163.com, aaa1@163.com, aaa2@163.com, aaa3@163.com",
            "Plugins_Count": "4",
            "Plugin_Id": "jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm",
            "template_id": "123456",
            "template_name": "Douyin International Edition",
            "browser_Path": "D:\\mbbrowser\\Chromium_x64\\chromium.exe",
            "browser_CDP_Port": 46973,
            "MBData_Path": "C:\\MBDATA\xxxxxxxxxx\xxxxxxxxxx\xxxxxxxxxxx",
            "Public_ip": "8.208.80.219",
            "Internel_ip": "192.168.225.69",
            "isDynamicIp": false,
            "StartPage": "about:blank",
            "proxyType": "socks5",
            "proxy_ip": "127.0.0.1",
            "proxy_port": "1080",
            "isHeadless": "true",
            "webdriver": "C:\\Users\\Administrator\\houniao\\Driver\\100\\chromedriver.exe", //Return the corresponding kernel webdriver driver path according to the kernel of the currently open environment
            "status": 0
        }],
        "total": 1
    }
}

Use POSTMAN To Debug This Interface