Path: /api/v1/browser/active
Method: GET
Description: To check the startup status of the browser, you need to specify the profile ID.
Optional parameters in the query can be omitted.
Name | Necessary | Default | Example | Description |
---|---|---|---|---|
user_id | YES | - | h1yynkm | Unique profile ID, generated after importing account |
serial_number | NO | - | 123 | Priority will be given to user id when user id is passed. |
//Operation succeeded
{
"code":0,
"data":{
"status": "Active", //Open in browser: “Active”, Close in browser: “Inactive”
"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
}
},
"msg":"success"
}
//Operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}
Path: /api/v1/browser/local-active
Method: GET
Description:Queries all open browsers on the current device
//Operation succeeded
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"user_id": "xxx",
"ws": {
"puppeteer": "ws://127.0.0.1:xxxx/devtools/browser/xxxxxx", //Browser debug interface, used for selenium automation
"selenium": "127.0.0.1:xxxx" //Browser debug interface, used for puppeteer automation
},
"debug_port": "xxxx",
"webdriver": "xxxx"
}
]
}
}
//Operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}