---
title: "Get stats and counters for the subchannel"
method: GET
path: "/channels/{channel_name}/subchannels/{subchannel_name}/stats"
tags: ["channels"]
---

# Get stats and counters for the subchannel

`GET /channels/{channel_name}/subchannels/{subchannel_name}/stats`

## Path parameters

- `channel_name` string, required
- `subchannel_name` string, required

## Response `200`

returns stats for the subchannel

- ChannelStats — Channel stats object
  - `stats` object, required
    - `counters` object
      - `total_artifact_count` integer — Total number of artifacts
      - `package_count` integer — Number of packages (conda, cran, python)
      - `project_count` integer — Number of anaconda projects
      - `notebook_count` integer — Number of notebooks
      - `environment_count` integer — Number of environments
      - `mirror_count` integer — Number of channel mirrors
      - `group_count` integer — Number of groups
      - `subchannel_count` integer — Number of subchannels in the channel
      - `download_count` integer — Number of downloads

## Other responses

- `401` — Unauthenticated, no token is provided or token is invalid
- `403` — Access is forbidden
- `404` — The specified resource was not found
- `500` — Internal server error

---

[API](https://skmtc.net/anaconda/apis/anaconda-server-api.md) · [All operations](https://skmtc.net/anaconda/apis/anaconda-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anaconda/anaconda-server-api/versions/6aef0cb7a151/schema)
