---
title: "Get Channel Affinity Cache Stats"
method: GET
path: "/api/option/channel_affinity_cache"
tags: ["Option"]
---

# Get Channel Affinity Cache Stats

`GET /api/option/channel_affinity_cache`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/option/channel_affinity_cache`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Response `200`

OK

- ResponseServiceChannelAffinityCacheStats: Response_service.ChannelAffinityCacheStats schema
  - `data` ChannelAffinityCacheStats, required
    - `by_rule_name` object, nullable, required
    - `cache_algo` string, required
    - `cache_capacity` integer, required
    - `enabled` boolean, required
    - `total` integer, required
    - `unknown` integer, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
