Baseball.Head 2 Head
Get head 2 head games
Retrieve a list of the last ten head 2 head games between two teams. Compare the two teams to find out who is stronger based on their past match results.
Specify teamIdOne and teamIdTwo query parameters to retrieve the data. The order of team ids does not matter.
Below is an example of what you can achieve with the data:

get/baseball/head-2-head
Request
- Base URLhttps://sports.highlightly.net
- Authnone declared. Required headers: x-rapidapi-host, x-rapidapi-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
teamIdOnenumber required
Example:10291175
teamIdTwonumber required
Example:10291176
Headers
x-rapidapi-hoststring required
sport-highlights-api.p.rapidapi.com
x-rapidapi-keystring required
Rapid API Token
Response
Example response
[
{
"id": 394,
"round": "regular-season",
"date": "2024-03-06T00:30:00.000Z",
"league": "NCAA",
"season": 2024,
"awayTeam": {
"id": 219,
"logo": "https://example.com/logos/team/219.png",
"name": "Bears",
"displayName": "Baylor",
"abbreviation": "BAY"
},
"homeTeam": {
"id": 219,
"logo": "https://example.com/logos/team/219.png",
"name": "Bears",
"displayName": "Baylor",
"abbreviation": "BAY"
},
"state": {
"description": "Finished",
"report": "Final",
"score": {
"home": {
"hits": 4,
"errors": 2,
"innings": [
0,
0,
1,
1,
0,
0,
1,
1,
1
]
},
"away": {
"hits": 4,
"errors": 2,
"innings": [
0,
0,
1,
1,
0,
0,
1,
1,
1
]
},
"current": "5 - 8"
}
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.