Head-to-Head
curl --request GET \
--url https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Head-to-Head
Recent head-to-head between the two teams.
GET
/
cricket
/
api
/
v2
/
match
/
{matchId}
/
team-head2head
Head-to-Head
curl --request GET \
--url https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv2.sportsxapi.com/cricket/api/v2/match/{matchId}/team-head2head"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Authorizations
Your secret SportSXAPI key from https://dashboard.sportsxapi.com.
Response
Successful Response (JSON)
The response is of type object.

