Menu

Open Browser

Basics

Path: /api/v1/browser/start

Method: GET

Description: To open a browser, you need to specify the profile ID. After a successful launch, you can obtain the browser's debug interface for executing Selenium and Puppeteer automation. Selenium requires the use of a Webdriver that matches the corresponding browser's core version. Ensure that your application is updated to version 3.4.1 or higher. After launching the browser, you can retrieve the path to the corresponding Webdriver from the return value.


Request Parameters

Optional parameters in the query can be omitted.

NameNecessaryDefaultExampleDescriptionRemarks
user_idYES-h1yynkmUnique profile ID, generated after creating profile
serial_numberNO-123Priority will be given to user id when user id is filled.
open_tabsNO01Open a platform or historical page. 0: Open (Default setting); 1: Closeshould update to V2.4.2.9 or above
ip_tabNO10Whether to open the ip detection page, 0: not open, 1: open (default)should update to V2.5.7.9 or above
new_first_tabNO01Whether to use the new version of the ip detection page: 1: new version, 0: old version (default)should update to V2.6.6.9 or above
launch_argsNO-["--window-position=400,0","--blink-settings=imagesEnabled=false", "--disable-notifications"]Browser startup parameters. eg: --blink-settings=imagesEnabled=false: Prohibit image loading. --disable-notifications: Disable notifications
p.s.: If launch_args are set both for API and the profile, priority will be given to the ones in API settings.
should update to V2.4.6.7 or above
headlessNO01Whether to start the headless browser 0:NO (Default) 1:YESshould update to V2.4.6.7 or above
disable_password_fillingNO01Whether to disable the function of filling password 0:NO (Default) 1:YESshould update to V2.4.6.7 or above
clear_cache_after_closingNO01Whether to delete the cache after closing the browser 0:NO (Default) 1:YESshould update to V2.4.7.6 or above. If the disk space is insufficient, it is recommended to set this parameter to 1
enable_password_savingNO01Whether to allow password saving 0:NO (Default) 1:YESshould update to V2.4.8.7 or above
cdp_mask No11Whether to mask the cdp detection. 1: Yes (default), 0: No.
device_scaleNO-1Only valid for mobile OS. Range 0.1 to 2, 1 is 100%.


Return Data


//Operation succeeded
{
  "code":0,
  "data":{
    "ws":{
      "selenium":"127.0.0.1:xxxx",    //Browser debug interface, used for selenium automation
      "puppeteer":"ws://127.0.0.1:xxxx/devtools/browser/xxxxxx"  //Browser debug interface, used for puppeteer automation
    },
    "debug_port": "xxxx", //debug port
    "webdriver": "C:\\xxxx\\chromedriver.exe" //webdriver path
  },
  "msg":"success"
}

//Operation failed
{
  "code":-1,
  "data":{},
  "msg":"failed"
}
      


Previous
Browser
Next
Open Browser V2
Last modified: 2025-02-18Powered by