# 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/` 。


---

# 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://irine-sistiana.gitbook.io/mosdns-wiki/mosdns-v5/api-shuo-ming.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.
