Worm / Graph
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/graph' \
--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/{}/graph', 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/{}/graph"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"runRate": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"ins": 0,
"highestRunrate": "4.63",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": "333",
"innings": "1",
"totalWickets": "10",
"data": [
"[object]",
"[object]"
]
},
{
"ins": 1,
"highestRunrate": "5.58",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": "305",
"innings": "2",
"totalWickets": "10",
"data": [
"[object]",
"[object]"
]
}
]
},
"scoreChart": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"id": "1",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": 333,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
},
{
"id": "2",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": 305,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
}
]
},
"wormChart": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"id": "1",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": 333,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
},
{
"id": "2",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": 305,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
}
]
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}Live Matches & Ball-by-Ball
Worm / Graph
Run progression graph payload for charting run-rate and projection.
GET
/
cricket
/
api
/
v2
/
match
/
{}
/
graph
Worm / Graph
curl --request GET \
--globoff \
--url 'https://apiv2.sportxapi.com/cricket/api/v2/match/{}/graph' \
--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/{}/graph', 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/{}/graph"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"runRate": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"ins": 0,
"highestRunrate": "4.63",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": "333",
"innings": "1",
"totalWickets": "10",
"data": [
"[object]",
"[object]"
]
},
{
"ins": 1,
"highestRunrate": "5.58",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": "305",
"innings": "2",
"totalWickets": "10",
"data": [
"[object]",
"[object]"
]
}
]
},
"scoreChart": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"id": "1",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": 333,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
},
{
"id": "2",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": 305,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
}
]
},
"wormChart": {
"format": "FIRST CLASS",
"inningsPhase": [
{
"id": "1",
"teamID": "1038",
"teamShortName": "ENG-U19",
"totalRuns": 333,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
},
{
"id": "2",
"teamID": "1148",
"teamShortName": "PAK-U19",
"totalRuns": 305,
"totalWickets": 10,
"data": [
"[object]",
"[object]"
]
}
]
}
}{
"error": "Unauthorized: Missing or invalid API key"
}{
"error": "Quota limit exceeded for current billing cycle"
}