Head-to-Head
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/team-head2head' \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportxapi.com/cricket/api/v2/match/{}/team-head2head', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv2.sportxapi.com/cricket/api/v2/match/{}/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"
}Live Matches & Ball-by-Ball
Head-to-Head
Recent head-to-head between the two teams.
GET
/
cricket
/
api
/
v2
/
match
/
{}
/
team-head2head
Head-to-Head
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/team-head2head' \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportxapi.com/cricket/api/v2/match/{}/team-head2head', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv2.sportxapi.com/cricket/api/v2/match/{}/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"
}