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

# Get team statistics

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

## Request

- Base URL: `https://sports.highlightly.net`
- URL: `https://sports.highlightly.net/baseball/teams/statistics/{id}`
- Auth: none declared. Required headers: `x-rapidapi-host`, `x-rapidapi-key`
- TypeScript: <https://skmtc.dev/highlightly/apis/sports-api-highlightly/docs/baseball/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`

- BaseballTeamStatisticsResponseDto[]
  - `total` BaseballTeamTotalStatsResponseDto, required
    - `games` BaseballTeamTotalGameStatsResponseDto, required
      - `played` number, required: Number of games team has played during a specific league round.
      - `wins` number, required: Number of games team has won during a specific league round.
      - `loses` number, required: Number of games team has lost during a specific league round.
    - `points` BaseballTeamTotalPointsStatsResponseDto, required
      - `scored` number, required: Number of points team has scored during a specific league round.
      - `received` number, required: Number of points team has received during a specific league round.
  - `home` BaseballTeamHomeStatsResponseDto, required
    - `games` BaseballTeamHomeGameStatsResponseDto, required
      - `played` number, required: Number of games team has played as home team during a specific league round.
      - `wins` number, required: Number of games team has won as home team during a specific league round.
      - `loses` number, required: Number of games team has lost as home team during a specific league round.
    - `points` BaseballTeamHomePointsStatsResponseDto, required
      - `scored` number, required: Number of points team has scored whilst playing as home team during a specific league round.
      - `received` number, required: Number of points team has received whilst playing as home team during a specific league round.
  - `away` BaseballTeamAwayStatsResponseDto, required
    - `games` BaseballTeamAwayGameStatsResponseDto, required
      - `played` number, required: Number of games team has played as home team during a specific league round.
      - `wins` number, required: Number of games team has won as home team during a specific league round.
      - `loses` number, required: Number of games team has lost as home team during a specific league round.
    - `points` BaseballTeamAwayPointsStatsResponseDto, required
      - `scored` number, required: Number of points team has scored as away team, during a specific league round.
      - `received` number, required: Number of points team has received as away team, during a specific league round.
  - `leagueName` string, required: League name to which team statistics are associated.
  - `round` string, required: Round to which team statistics are associated.

## 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)
