# 本地服务指南

![](/files/6iY4yRWEMu6hsmunp3Ri)

### JavaScript 示例代码

注意：demo里的API参数近作为演示使用，详细参数，请以API文档为准

{% file src="/files/GIBkIGQUnRSTRlnrq4pE" %}

### Python示例代码

注意：demo里的API参数近作为演示使用，详细参数，请以API文档为准

{% file src="/files/fJ5a28rvnaxuBYrDIQW8" %}

### E语言示例代码

注意：demo里的API参数近作为演示使用，详细参数，请以API文档为准

{% file src="/files/xAJXjIv37yTYwGRjNAlh" %}

### Postman调试demo，直接导入即可

{% file src="/files/CSWtv0ffhdyCdJyNj97K" %}

### 服务简介

比特浏览器支持通过接口调用方式使用浏览器功能，帮助用户运行自有的自动化脚本。

### 使用方式

1. 安装并登录比特浏览器
2. 打开系统设置，获取到本地接口url
3. 获取示例代码，运行脚本

### 接口使用概述

* 接口请求方式均为post，传参方式均为body传参
* 接口返回json对象，success为true作成功，如有返回数据，附加在data对象中
* 接口返回success为false时，表示业务失败，可能为程序原因，或参数校验等原因，失败信息会附加到msg中

```
// success example
{
  success: true,
  data: {
    id: '2c9c29a28sdd33dds8026f78e380142',
    groupName: '新建分组测试'
  }
}

// failed example
{ success: false, msg: '分组id必传' }
```

### API调用线路图参考

<figure><img src="/files/yo5PxhPhcgqTehhncmfJ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.bitbrowser.cn/api-jie-kou-wen-dang/ben-di-fu-wu-zhi-nan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
