---
title: "Get list of all virtual channels created from current channel"
method: GET
path: "/channels/{channel_name}/virtual-channels"
tags: ["channels"]
---

# Get list of all virtual channels created from current channel

`GET /channels/{channel_name}/virtual-channels`

## Request

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

## Path parameters

- `channel_name` string, required

## Query parameters

- `offset` integer
- `limit` integer
- `q` string
- `sort` string[]

## Response `200`

return list of virtual 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
- `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)
