---
title: "获取所有规则"
method: GET
path: "/rules"
tags: ["规则"]
---

# 获取所有规则

`GET /rules`

获取规则信息。

## Response `200`

规则列表。

- object
  - `rules` Rule[]
    - `index` integer
    - `type` string — 如 DOMAIN、IP-CIDR、GEOIP、RuleSet 等。
    - `payload` string
    - `proxy` string
    - `size` integer — 规则条目数量；仅 GEOIP/GEOSITE 有效，其他为 -1。
    - `extra` object — 可选统计字段（存在时）。
      - `disabled` boolean
      - `hitCount` integer
      - `hitAt` string
      - `missCount` integer
      - `missAt` string

---

[API](https://skmtc.net/oom-wg/apis/mihomo-api.md) · [All operations](https://skmtc.net/oom-wg/apis/mihomo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oom-wg/mihomo-api/versions/d1b285042ccc/schema)
