---
title: "Get last five finished games for a specific team id"
method: GET
path: "/cricket/last-five-games"
tags: ["Cricket.Last Five Games"]
---

# Get last five finished games for a specific team id

`GET /cricket/last-five-games`

## Request

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

> Refresh interval: Immediately once a game is considered finished

Retrieve a list of the **last five finished** games for a specific team. If a game was not finished (e.g. was cancelled or postponed) it will *not* be returned.

Specify `teamId` query parameter to retrieve the data. Endpoint is used to create a form section between two teams that are playing a match. Below is an example of what can be achieved:

![Last five games example](https://highlightly.net/assets/img/documentation/l5g.png)

## Query parameters

- `teamId` number, required

## Headers

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

## Response `200`

- CricketMatchResponseDto[]
  - `id` string, required
  - `endDate` string, required
  - `startDate` string, required
  - `startTime` string
  - `country` CricketCountryResponseDto, required
    - `code` string, required: Country code specified by the ISO 3166 standard.
    - `name` string, required
    - `logo` string, required
  - `awayTeam` CricketTeamResponseDto, required
    - `id` string, required
    - `logo` string
    - `name` string, required
    - `abbreviation` string, required
  - `homeTeam` CricketTeamResponseDto, required
    - `id` string, required
    - `logo` string
    - `name` string, required
    - `abbreviation` string, required
  - `league` CricketMatchLeagueResponseDto, required
    - `id` string, required
    - `season` number, required
    - `name` string, required
    - `logo` string
  - `format` string: Cricket match format, e.g. T20, ODI, TEST
  - `dayType` 'SINGLE' | 'MULTI': Information that tells us whether the match will be played across multiple days
  - `state` CricketMatchStateResponseDto, required
    - `description` 'Finished' | 'Unknown' | 'No live coverage' | 'In play' | 'Stumps' | 'Lunch' | 'Innings break' | 'Drinks' | 'Timeout' | 'Tea' | 'Scheduled' | 'Match delayed' | 'Cancelled' | 'Abandoned' | 'Postponed', required: State of the match.
    - `report` string: Descriptive report of the match based on the match status.
    - `teams` CricketMatchScoreTeamsDto, required
      - `away` CricketMatchScoreTeamAwayDto, required
        - `info` string
        - `score` string
      - `home` CricketMatchScoreTeamHomeDto, required
        - `info` string
        - `score` string

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