> For the complete documentation index, see [llms.txt](https://irine-sistiana.gitbook.io/mosdns-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irine-sistiana.gitbook.io/mosdns-wiki/mosdns-v5/api-shuo-ming.md).

# API 说明

**所有 API 目前都是实验性的。不保证稳定性和不变性。**

使用 API 需在配置中设置 api.http 的地址。

## 插件 API

插件 API 的入口为 `http://<api_addr>/plugins/<plugin_tag>`。

参数取决于插件。

## Prometheus Metrics API

Prometheus API 的入口为 `http://<api_addr>/metrics`。包含一些默认数据项。部分插件会添加新数据项。

### pppof 性能分析工具

pprof 位于  `http://<api_addr>/debug/pprof/` 。
