API Description#
Function: Start a browser instance
URI: /api/v1/browser/start
Request Parameters#
Parameter | Description | Type | Required | Optional Values | Default |
---|
env_id | Browser ID (unique ID generated after environment import) | string | Yes | | |
headless | Whether to start in headless mode | number | No | Not passed: No, 1: Yes | Not passed |
append_cmd | Browser startup command | string | No | | |
Request Example#
GET http://127.0.0.1:50230/api/v1/browser/start?env_id=337a934fa89244a183c64**********
Response Data#
Parameter | Description | Type | Optional Values | Default |
---|
code | Execution status code | int | 0: success, -1: input format error, -2: quantity exception | |
msg | Return success or failure message | string | | |
data | Return data | object | | |
Data Structure#
Parameter | Description | Type | Optional Values | Default |
---|
debuggingPort | Debug port | string | | |
webdriver | Browser program location | string | | |
ws | WebSocket information | object | | |
WS Structure#
Parameter | Description | Type | Optional Values | Default |
---|
selenium | Browser debug interface for Selenium automation | string | | |
puppeteer | Browser debug interface for Puppeteer automation | string | | |
Example Response#
{
"code": 0,
"msg": "success",
"data": {
"status": "Active"
}
}
{
"code": -1,
"data": {},
"msg": "failed"
}
Status Codes#
Code | Description |
---|
0 | Success |
-1 | Server error |
-2 | Missing appid |
Modified at 2025-06-21 02:16:50