Win Probability
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/winning-percentage' \
--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/{}/winning-percentage', 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/{}/winning-percentage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"matchID": "98697",
"teamsWinProbability": {
"homeTeamShortName": "England Under-19s",
"homeTeamPercentage": "58.82",
"awayTeamShortName": "Pakistan Under-19s",
"awayTeamPercentage": "47.62",
"tiePercentage": "0"
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Live Matches & Ball-by-Ball
Win Probability
Modelled winning percentage over time (if available for this match).
GET
/
cricket
/
api
/
v2
/
match
/
{}
/
winning-percentage
Win Probability
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/winning-percentage' \
--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/{}/winning-percentage', 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/{}/winning-percentage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"matchID": "98697",
"teamsWinProbability": {
"homeTeamShortName": "England Under-19s",
"homeTeamPercentage": "58.82",
"awayTeamShortName": "Pakistan Under-19s",
"awayTeamPercentage": "47.62",
"tiePercentage": "0"
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}