> 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-v4/api-shuo-ming.md).

# API 说明

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

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

{% content-ref url="/pages/WBt2J73ng9HzsPmcdRqT" %}
[如何配置 mosdns](/mosdns-wiki/mosdns-v4/ru-he-pei-zhi-mosdns.md)
{% endcontent-ref %}

## 插件 API

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

参数取决于插件。

## Prometheus Metrics API

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

### pppof 性能分析工具

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

使用方式详见

{% content-ref url="/pages/F7H4Ft4HKSAo3ohp895b" %}
[Debug 内存与性能问题](/mosdns-wiki/mosdns-v4/debug-nei-cun-yu-xing-neng-wen-ti.md)
{% endcontent-ref %}
