---
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`

## Request

- Base URL: `https://api.anaconda.cloud/api`
- URL: `https://api.anaconda.cloud/api/channels/{channel_name}/subchannels/{subchannel_name}/stats`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Auth`
- TypeScript: <https://skmtc.dev/anaconda/apis/anaconda-server-api/docs/channels/:channel_name/subchannels/:subchannel_name/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/anaconda/apis/anaconda-server-api.md) - [All operations](https://skmtc.dev/anaconda/apis/anaconda-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anaconda/apis/anaconda-server-api/revisions/6aef0cb7a151?raw)
