---
title: "Get team statistics"
method: GET
path: "/rugby/teams/statistics/{id}"
tags: ["Rugby.Teams"]
---

# Get team statistics

`GET /rugby/teams/statistics/{id}`

## Request

- Base URL: `https://sports.highlightly.net`
- URL: `https://sports.highlightly.net/rugby/teams/statistics/{id}`
- Auth: none declared. Required headers: `x-rapidapi-host`, `x-rapidapi-key`
- TypeScript: <https://skmtc.dev/highlightly/apis/sports-api-highlightly/docs/rugby/teams/statistics/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

> Refresh interval: Immediately once a match is finished.
 
Retrieve team stats for each league and season by specifying the team's `id` path parameter. Requires `fromDate` query parameter to be specified in the YYYY-MM-DD format. Additionally, the `timezone` query parameter can be specified to futher narrow down the search results based on your location.

## Path parameters

- `id` number, required

## Query parameters

- `fromDate` string, required
- `timezone` string

## Headers

- `x-rapidapi-host` string, required
- `x-rapidapi-key` string, required

## Response `200`

- RugbyTeamStatsResponseDto[]
  - `total` RugbyTotalStatsResponseDto, required
    - `games` RugbyTotalGamesResponseDto, required
      - `played` number, required: Number of games team has played within given league-season.
      - `wins` number, required: Number of games team has won within associated league-season.
      - `loses` number, required: Number of games team has lost within associated league-season.
      - `draws` number, required: Number of games team has drawn within associated league-season.
    - `points` RugbyTotalPointsResponseDto, required
      - `scored` number, required: Number of total points a team has scored.
      - `received` number, required: Number of total points a team has received.
  - `home` RugbyHomeStatsResponseDto, required
    - `games` RugbyHomeGamesResponseDto, required
      - `played` number, required: Number of games team has played within given league-season.
      - `wins` number, required: Number of games team has won within associated league-season.
      - `loses` number, required: Number of games team has lost within associated league-season.
      - `draws` number, required: Number of games team has drawn within associated league-season.
    - `points` RugbyHomePointsResponseDto, required
      - `scored` number, required: Total number of points team has scored whilst playing at home during a specific league-season.
      - `received` number, required: Total number of points team has received whilst playing at home during a specific league-season.
  - `away` RugbyAwayStatsResponseDto, required
    - `games` RugbyAwayGamesResponseDto, required
      - `played` number, required: Total number of games team has played as away team during a specific league-season.
      - `wins` number, required: Total number of games team has won as away team during a specific league-season.
      - `draws` number, required: Total number of games team has drawn as away team during a specific league-season.
      - `loses` number, required: Total number of games team has lost as away team during a specific league-season.
    - `points` RugbyAwayPointsResponseDto, required
      - `scored` number, required: Total number of points team has scored as away team during a specific league-season.
      - `received` number, required: Total number of points team has received as away team during a specific league-season.
  - `leagueId` number, required: League id corresponding to summarized statistics.
  - `leagueName` string, required: League name corresponding to summarized statistics.
  - `season` number, required: Season year associated to team statistics.

## Other responses

- `400`: Bad request descriptive error.
- `500`: Internal server error.

---

[API](https://skmtc.dev/highlightly/apis/sports-api-highlightly.md) - [All operations](https://skmtc.dev/highlightly/apis/sports-api-highlightly/llms.txt) - [OpenAPI document](https://skmtc.dev/highlightly/apis/sports-api-highlightly/revisions/c8a366d3091f?raw)
