Last 12 Balls
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/last12balls' \
--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/{}/last12balls', 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/{}/last12balls"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"0": {
"overNumber": "61",
"over": [
{
"overNumber": "61",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
},
{
"overNumber": "61",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
}
]
},
"1": {
"overNumber": "62",
"over": [
{
"overNumber": "62",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
},
{
"overNumber": "62",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
}
]
},
"2": {
"overNumber": "63",
"over": [
{
"overNumber": "63",
"runs": "0",
"type": "wicket",
"isWicket": "1",
"isBall": "1",
"isLastBall": "1"
}
]
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Live Matches & Ball-by-Ball
Last 12 Balls
Rolling window of the most recent 12 deliveries.
GET
/
cricket
/
api
/
v2
/
match
/
{}
/
last12balls
Last 12 Balls
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/last12balls' \
--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/{}/last12balls', 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/{}/last12balls"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"0": {
"overNumber": "61",
"over": [
{
"overNumber": "61",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
},
{
"overNumber": "61",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
}
]
},
"1": {
"overNumber": "62",
"over": [
{
"overNumber": "62",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
},
{
"overNumber": "62",
"runs": "0",
"type": null,
"isWicket": "0",
"isBall": "1",
"isLastBall": "0"
}
]
},
"2": {
"overNumber": "63",
"over": [
{
"overNumber": "63",
"runs": "0",
"type": "wicket",
"isWicket": "1",
"isBall": "1",
"isLastBall": "1"
}
]
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}