Men — Batting/Bowling/All-Rounder (v2)
curl --request GET \
--url https://apiv2.sportsxapi.com/cricket/api/v2/ranking/men \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportsxapi.com/cricket/api/v2/ranking/men', 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/ranking/men"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"test": {
"men": {
"bat": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
}
}
},
"oDI": {
"men": {
"bat": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
}
}
},
"t20": {
"men": {
"bat": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
}
}
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Men — Batting/Bowling/All-Rounder (v2)
Mens individual rankings.
GET
/
cricket
/
api
/
v2
/
ranking
/
men
Men — Batting/Bowling/All-Rounder (v2)
curl --request GET \
--url https://apiv2.sportsxapi.com/cricket/api/v2/ranking/men \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://apiv2.sportsxapi.com/cricket/api/v2/ranking/men', 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/ranking/men"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"test": {
"men": {
"bat": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "Test",
"rank": [
"[object]",
"[object]"
]
}
}
},
"oDI": {
"men": {
"bat": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "ODI",
"rank": [
"[object]",
"[object]"
]
}
}
},
"t20": {
"men": {
"bat": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
},
"bowl": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
},
"allrounder": {
"gender": "male",
"matchType": "T20",
"rank": [
"[object]",
"[object]"
]
}
}
}
}{
"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.

