# List child teams

From **GitHub v3 REST API**.

`GET /orgs/{org}/teams/{team_slug}/teams`

Lists the child teams of the team specified by `{team_slug}`.

**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `team_slug`

- Location: path
- Required: true
- Type: `string`

team_slug parameter

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

if child teams exist

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `array`

```json
[
  {
    "description": "Started it all.",
    "html_url": "https://github.com/orgs/rails/teams/core",
    "id": 2,
    "members_url": "https://api.github.com/teams/2/members{/member}",
    "name": "Original Roster",
    "node_id": "MDQ6VGVhbTI=",
    "parent": {
      "description": "A great team.",
      "html_url": "https://github.com/orgs/github/teams/justice-league",
      "id": 1,
      "members_url": "https://api.github.com/teams/1/members{/member}",
      "name": "Justice League",
      "node_id": "MDQ6VGVhbTE=",
      "permission": "admin",
      "privacy": "closed",
      "repositories_url": "https://api.github.com/teams/1/repos",
      "slug": "justice-league",
      "url": "https://api.github.com/teams/1"
    },
    "permission": "admin",
    "privacy": "closed",
    "repositories_url": "https://api.github.com/teams/2/repos",
    "slug": "original-roster",
    "url": "https://api.github.com/teams/2"
  }
]
```

```json
{"items":{"$ref":"#/components/schemas/team"},"type":"array"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/teams/{team_slug}/teams
```
