Fantasy Matches
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/player/{}/fantasy/matches' \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportxapi.com/cricket/api/v2/player/{}/fantasy/matches', 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/player/{}/fantasy/matches"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"playerID": "119",
"name": "Virat Kohli",
"matches": [
{
"homeTeamShortName": "England",
"awayTeamShortName": "India",
"homeTeamID": "490",
"awayTeamID": "25",
"matchDate": "1784419200000",
"matchDateFormat": "19/07/2026",
"matchID": "95162",
"matchType": "ODI",
"opposition": "England vs India",
"battingStats": "74(60)",
"bowlingStats": "DNB",
"homeTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/ENG.webp?_sxcdn=20260831",
"awayTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/IND.webp?_sxcdn=20260831"
},
{
"homeTeamShortName": "England",
"awayTeamShortName": "India",
"homeTeamID": "490",
"awayTeamID": "25",
"matchDate": "1784160000000",
"matchDateFormat": "16/07/2026",
"matchID": "95161",
"matchType": "ODI",
"opposition": "England vs India",
"battingStats": "65(66)",
"bowlingStats": "DNB",
"homeTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/ENG.webp?_sxcdn=20260831",
"awayTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/IND.webp?_sxcdn=20260831"
}
]
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Players
Fantasy Matches
Fantasy-relevant matches for the player.
GET
/
cricket
/
api
/
v2
/
player
/
{}
/
fantasy
/
matches
Fantasy Matches
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/player/{}/fantasy/matches' \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportxapi.com/cricket/api/v2/player/{}/fantasy/matches', 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/player/{}/fantasy/matches"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"playerID": "119",
"name": "Virat Kohli",
"matches": [
{
"homeTeamShortName": "England",
"awayTeamShortName": "India",
"homeTeamID": "490",
"awayTeamID": "25",
"matchDate": "1784419200000",
"matchDateFormat": "19/07/2026",
"matchID": "95162",
"matchType": "ODI",
"opposition": "England vs India",
"battingStats": "74(60)",
"bowlingStats": "DNB",
"homeTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/ENG.webp?_sxcdn=20260831",
"awayTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/IND.webp?_sxcdn=20260831"
},
{
"homeTeamShortName": "England",
"awayTeamShortName": "India",
"homeTeamID": "490",
"awayTeamID": "25",
"matchDate": "1784160000000",
"matchDateFormat": "16/07/2026",
"matchID": "95161",
"matchType": "ODI",
"opposition": "England vs India",
"battingStats": "65(66)",
"bowlingStats": "DNB",
"homeTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/ENG.webp?_sxcdn=20260831",
"awayTeamImage": "https://cdn.sportxapi.com/assets/uploads/2025/09/IND.webp?_sxcdn=20260831"
}
]
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}