---
title: "Head-to-Head"
method: GET
path: "/games/h2h"
tags: ["Games"]
---

# Head-to-Head

`GET /games/h2h`

## Request

- Base URL: `https://api.sportsapipro.com/v1/football`
- URL: `https://api.sportsapipro.com/v1/football/games/h2h`
- Auth: API key in header `x-api-key`

Get head-to-head history between two teams

## Query parameters

- `competitor1` integer, required
- `competitor2` integer, required
- `numOfGames` integer

## Response `200`

Head-to-head history retrieved successfully

---

[API](https://skmtc.dev/sportsapipro/apis/sportsapi-pro-football-api.md) - [All operations](https://skmtc.dev/sportsapipro/apis/sportsapi-pro-football-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sportsapipro/apis/sportsapi-pro-football-api/revisions/f56c5a94869d?raw)
