跳转到内容
Local API数据模型

BrowserCreateRequest 数据模型 ​

版本概览

BrowserCreateRequest

object
字段说明
string必填
环境名称
minLength: 1maxLength: 32
object
浏览器窗口尺寸;不传时使用 800 x 600
默认值{"width":800,"height":600}

不允许额外字段。

object必填
浏览器内核、指纹系统和 User-Agent 兼容条件

不允许额外字段。

string | null
环境分组 ID;不传或传 null 时使用默认分组
minLength: 1maxLength: 32
object[] | null
Puppeteer Cookie 对象列表;每项至少包含 name 和 value
maxItems: 500
string | null
环境备注
maxLength: 5000
string | null
浏览器启动参数,格式与图形界面环境配置一致
maxLength: 5000
object
环境代理设置;不传时不使用代理
默认值{"mode":"none"}
string[]
绑定账号管理中已有账号的 ID 列表
默认值[]
maxItems: 100
object[]
随环境创建并绑定的账号;使用该字段还需要当前用户具备账号创建权限
默认值[]
maxItems: 20
string[]
需要绑定的个人或团队扩展 ID 列表
默认值[]
maxItems: 100
object
浏览器常用设置;对象和未传的子字段均使用各字段默认值
默认值{"image_size_limit_kb":null,"restore_last_session":true,"block_video_autoplay":false,"disable_video_preload":false,"mute_audio":false,"disable_translate_prompt":false,"disable_password_save_prompt":false,"block_notifications":false,"block_clipboard_read":false,"stop_open_on_network_error":false,"stop_open_on_ip_change":false,"stop_open_on_country_change":false,"search_engine_preset":null}

不允许额外字段。

object
浏览器指纹配置;不传时使用各字段的默认模式
默认值{"webrtc":{"mode":"based_on_ip"},"timezone":{"mode":"based_on_ip"},"geolocation":{"mode":"based_on_ip"},"language":{"mode":"based_on_ip"},"screen":{"mode":"random"},"fonts":{"mode":"random"},"noise":{"canvas":true,"webgl":true,"audio_context":true,"client_rects":true},"memory":{"mode":"random"},"cpu":{"mode":"random"},"do_not_track":{"mode":"default"},"port_scan_protection":{"mode":"enabled"},"hardware_acceleration":{"mode":"default"},"battery":{"mode":"random"},"media_devices":{"mode":"random"}}

不允许额外字段。

boolean
每次打开环境时是否重新随机指纹
默认值false
中屹浏览器 Local API 文档