---
title: "Teams of a player"
method: GET
path: "/api/team/of/{username}"
tags: ["Teams"]
---

# Teams of a player

`GET /api/team/of/{username}`

All the teams a player is a member of.
Teams that hide their player list are only included if you also belong to the team.

## Path parameters

- `username` string, required

## Response `200`

The list of teams the player is a member of.

- Team[]
  - `id` string, required
  - `name` string, required
  - `description` string
  - `flair` string — See [available flair list and images](https://github.com/lichess-org/lila/tree/master/public/flair)
  - `leader` LightUser
    - `id` string, required
    - `name` string, required
    - `flair` string — See [available flair list and images](https://github.com/lichess-org/lila/tree/master/public/flair)
    - `title` 'GM' | 'WGM' | 'IM' | 'WIM' | 'FM' | 'WFM' | 'NM' | 'CM' | 'WCM' | 'WNM' | 'LM' | 'BOT' — only appears if the user is a titled player or a bot user
    - `patron` boolean — Use patronColor value instead to determine if player is a patron.
    - `patronColor` integer — Players can choose a color for their Patron wings. See [here for the color mappings](https://github.com/lichess-org/lila/blob/master/ui/lib/css/abstract/_patron-colors.scss). The presence of this field indicates the player is an active Patron.
  - `leaders` LightUser[]
    - `id` string, required
    - `name` string, required
    - `flair` string — See [available flair list and images](https://github.com/lichess-org/lila/tree/master/public/flair)
    - `title` 'GM' | 'WGM' | 'IM' | 'WIM' | 'FM' | 'WFM' | 'NM' | 'CM' | 'WCM' | 'WNM' | 'LM' | 'BOT' — only appears if the user is a titled player or a bot user
    - `patron` boolean — Use patronColor value instead to determine if player is a patron.
    - `patronColor` integer — Players can choose a color for their Patron wings. See [here for the color mappings](https://github.com/lichess-org/lila/blob/master/ui/lib/css/abstract/_patron-colors.scss). The presence of this field indicates the player is an active Patron.
  - `nbMembers` integer
  - `open` boolean
  - `joined` boolean
  - `requested` boolean

---

[API](https://skmtc.net/lichess/apis/lichess-org-api-reference.md) · [All operations](https://skmtc.net/lichess/apis/lichess-org-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lichess/lichess-org-api-reference/versions/1425db81eb3b/schema)
