cURL
curl --request GET \ --url https://v1.basketball.sportsapipro.com/games/h2h \ --header 'x-api-key: <api-key>'
Get head-to-head history between two basketball teams
curl -X GET "https://v1.basketball.sportsapipro.com/games/h2h?competitor1=678&competitor2=679&numOfGames=10" \ -H "x-api-key: YOUR_API_KEY"
Show Game Object
Show Properties
Your SportsAPI Pro API key
First team ID
678
Second team ID
679
Number of historical games to return
10
Head-to-head history retrieved successfully
Was this page helpful?