---
title: "Get a list of the top channels for a team."
method: GET
path: "/api/v4/teams/{team_id}/top/channels"
tags: ["insights"]
---

# Get a list of the top channels for a team.

`GET /api/v4/teams/{team_id}/top/channels`

Get a list of the top public and private channels (the user is a member of) for a given team.
##### Permissions
Must have `view_team` permission for the team.

## Path parameters

- `team_id` string, required

## Query parameters

- `time_range` string, required
- `page` integer
- `per_page` integer

## Response `200`

Top channels retrieved successfully.

- 38cb7293TopChannelList
  - `has_next` boolean — Indicates if there is another page of channels that can be fetched.
  - `items` 38cb7293TopChannel[] — List of channels.
    - `id` string
    - `type` string
    - `display_name` string
    - `name` string
    - `team_id` string
    - `message_count` string — The number of messages posted in the channel by users over the given time period (not including messages posted by bots).

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
