---
title: "Get all channels with filtering possibilities"
method: GET
path: "/channels"
tags: ["channels"]
---

# Get all channels with filtering possibilities

`GET /channels`

## Query parameters

- `offset` integer
- `limit` integer
- `q` string
- `ids` string[]
- `sort` string[]
- `include_subchannels` boolean
- `include_reserved` boolean

## Response `200`

get all channels

- object
  - `total_count` number
  - `items` Channel[]
    - `id` string
    - `name` string, required
    - `parent` string — if present, the object is supposed to be a subchannel
    - `description` string
    - `privacy` 'private' | 'authenticated' | 'public' — channel privacy channel
    - `channel_type` 'default' | 'virtual' — channel type
    - `indexing_behavior` 'default' | 'frozen' — channel indexing behavior
    - `sources` VirtualChannelSource[]
      - `name` string, required
      - `parent_name` string
    - `created` string — date created
    - `updated` string — date of last update
    - `artifact_count` number — number of artifacts the channel currently has
    - `download_count` number — number of downloads
    - `filters` ChannelFilters — Filter directives for mirroring operation. Fields are optional. Can't have include and exclude licenses together. This attribute is not returned by default in channels list
      - `conda` object
        - `include_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `exclude_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `include_specs` string[] — A list of MatchSpec strings, for including from excluded list General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]
        - `exclude_specs` string[] — A list of MatchSpec strings, for excluding specific packages. General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]
      - `cran` object
        - `include_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `exclude_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `include_specs` string[] — A list of MatchSpec strings, for including from excluded list General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]
        - `exclude_specs` string[] — A list of MatchSpec strings, for excluding specific packages. General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]
      - `python` object
        - `include_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `exclude_licenses` string[] — List of license familities to look for. Empty array means all licenses
        - `include_specs` string[] — A list of MatchSpec strings, for including from excluded list General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]
        - `exclude_specs` string[] — A list of MatchSpec strings, for excluding specific packages. General format is (channel(/subdir):(namespace):)name(version(build))[key1=value1,key2=value2]

## Other responses

- `401` — Unauthenticated, no token is provided or token is invalid
- `403` — Access is forbidden
- `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/revisions/6aef0cb7a151/schema)
