API For Uploading Matches
Developers - would you like to publish matches to our service? Here is an example API call to publish matches to Cricket Statz online. It assumes developer knowledge of JSON and RESTful APIs. It is recommended to use a tool like ARC or Talend API Tester for debugging your payload since they show the full API response messages.
If you receive an error response (400+) then be sure to read the reason text since the API will return informative information on what is wrong or missing. For example, hitting the API with no username and password will give "Error: Header missing username:password". If you only receive "Bad request" then you aren't reading the full reason code.
POST:
https://www2.cricketstatz.com/ss/addj.aspx
HEADER:
Content-type: application/json;charset=utf-8
Accept: text/html
Authorization: Basic [base64encoded(username:password)]
BODY:
{
"Match": {
"League": "Ashes Test League",
"AutoAddPlayers": "1",
"AutoAddOthers": "1",
"ApproveMatch": "1",
"ExternalMatchID": "1231263",
"MatchType": "2",
"DatePlayed": {
"Day": "2",
"Month": "December",
"Year": "1932"
},
"EndDate": {
"Day": "5",
"Month": "December",
"Year": "1932"
},
"Ground": "Adelaide Oval",
"Grade": "Ashes Test",
"Pool": "ABC",
"BallsPerOver": "6",
"HomeTeam": "AUSTRALIA 1st XI",
"AwayTeam": "ENGLAND 1st XI",
"HomeClub": "AUSTRALIA",
"AwayClub": "ENGLAND",
"HomeCaptain": {
"Firstname": "W",
"Lastname": "Woodfull",
"DOB": ""
},
"AwayCaptain": {
"Firstname": "Douglas",
"Lastname": "Jardine",
"DOB": ""
},
"HomeKeeper": {
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": ""
},
"AwayKeeper": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": ""
},
"Umpire1": {
"Firstname": "A",
"Lastname": "Test",
"DOB": "22/11/2000"
},
"Umpire2": "",
"Umpire3": "",
"Scorer1": {
"Firstname": "B",
"Lastname": "Test",
"DOB": "22/11/1955"
},
"Scorer2": "",
"Scorer3": "",
"Comment": "match comment goes here",
"Round": "1",
"Final": "0",
"GrandFinal": "0",
"Toss": "0",
"Result": "2",
"SubResult": "2",
"Margin": "2 wickets",
"HomePoints": "2",
"AwayPoints": "4",
"Innings1": {
"BattingTeam": "AUSTRALIA 1st XI",
"BallByBall":[
{"Batsmanid": "23265", "Over": "0", "Ball": "1", "Bowlerid": "85422",
"Fielderid": "0", "Result": "2", "Score": "2", "Nonstrikeroutid": "0",
"Comment": "Ball played along the ground through cover."},
{"Batsmanid": "23265", "Over": "0", "Ball": "2", "Bowlerid": "85422",
"Fielderid": "0", "Result": ".", "Score": "0", "Nonstrikeroutid": "0"},
{"Batsmanid": "23265", "Over": "0", "Ball": "3", "Bowlerid": "85422",
"Fielderid": "0", "Result": "NB", "Score": "0", "Nonstrikeroutid": "0"},
{"Batsmanid": "23265", "Over": "0", "Ball": "4", "Bowlerid": "85422",
"Fielderid": "12234", "Result": "OUTCT", "Score": "0", "Nonstrikeroutid": "0",
"Comment": "OUT! Ball hit in the air and caught at mid wicket."}
],
"Retirements":[
{"Batsmanid": "23265", "Retiredatruns": "123", "Retiredatwicket": "3"}
],
"Batsman1": {
"Firstname": "W",
"Lastname": "Woodfull",
"DOB": "",
"id": "23265",
"Howout": "3",
"Fielder": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": "",
"id": "12234"
},
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": "",
"id": "85422"
},
"Score": "7",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0",
"MVP": "1"
},
"Batsman2": {
"Firstname": "W",
"Lastname": "Ponsford",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "32",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman3": {
"Firstname": "J",
"Lastname": "Fingleton",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": ""
},
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "26",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman4": {
"Firstname": "A",
"Lastname": "Kippax",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "8",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman5": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": "",
"Howout": "1",
"Fielder": "?",
"Bowler": "?",
"Score": "187",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman6": {
"Firstname": "V",
"Lastname": "Richardson",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": ""
},
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Score": "49",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman7": {
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": ""
},
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "4",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman8": {
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": ""
},
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Score": "19",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman9": {
"Firstname": "L",
"Lastname": "Nagel",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman10": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Score": "4",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman11": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": ""
},
"Bowler": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": ""
},
"Score": "4",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"FOW1": {
"Score": "22",
"Firstname": "W",
"Lastname": "Woodfull",
"DOB": ""
"Over": "11.5",
},
"FOW2": {
"Score": "65",
"Firstname": "J",
"Lastname": "Fingleton",
"DOB": ""
},
"FOW3": {
"Score": "82",
"Firstname": "W",
"Lastname": "Ponsford",
"DOB": ""
},
"FOW4": {
"Score": "87",
"Firstname": "A",
"Lastname": "Kippax",
"DOB": ""
},
"FOW5": {
"Score": "216",
"Firstname": "V",
"Lastname": "Richardson",
"DOB": ""
},
"FOW6": {
"Score": "231",
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": ""
},
"FOW7": {
"Score": "299",
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": ""
},
"FOW8": {
"Score": "300",
"Firstname": "L",
"Lastname": "Nagel",
"DOB": ""
},
"FOW9": {
"Score": "305",
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": ""
},
"FOW10": {
"Score": "360",
"Firstname": "T",
"Lastname": "Wall",
"DOB": ""
},
"FOW11": {
"Score": ""
},
"FOW12": {
"Score": ""
},
"FOW13": {
"Score": ""
},
"FOW14": {
"Score": ""
},
"Bowler1": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": "",
"Overs": "31",
"Maidens": "5",
"Wickets": "5",
"RunsA": "96",
"Wides": "0",
"Noballs": "0"
},
"Bowler2": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": "",
"Overs": "29",
"Maidens": "4",
"Wickets": "4",
"RunsA": "110",
"Wides": "0",
"Noballs": "0"
},
"Bowler3": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": "",
"Overs": "15",
"Maidens": "1",
"Wickets": "0",
"RunsA": "65",
"Wides": "0",
"Noballs": "0"
},
"Bowler4": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": "",
"Overs": "14.2",
"Maidens": "0",
"Wickets": "1",
"RunsA": "34",
"Wides": "0",
"Noballs": "0"
},
"Bowler5": {
"Firstname": "H",
"Lastname": "Verity",
"DOB": "",
"Overs": "13",
"Maidens": "4",
"Wickets": "0",
"RunsA": "35",
"Wides": "0",
"Noballs": "0"
},
"legbyes": "4",
"byes": "12",
"wides": "0",
"noballs": "4",
"penalties": "0",
"Result": "1"
},
"Innings3": {
"BattingTeam": "AUSTRALIA 1st XI",
"Batsman1": {
"Firstname": "W",
"Lastname": "Woodfull",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman2": {
"Firstname": "W",
"Lastname": "Ponsford",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Score": "2",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman3": {
"Firstname": "J",
"Lastname": "Fingleton",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "40",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman4": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": ""
},
"Score": "32",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman5": {
"Firstname": "V",
"Lastname": "Richardson",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Bowler": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman6": {
"Firstname": "A",
"Lastname": "Kippax",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "19",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman7": {
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "M",
"Lastname": "Leyland",
"DOB": ""
},
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "1",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman8": {
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": ""
},
"Bowler": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"Score": "5",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman9": {
"Firstname": "L",
"Lastname": "Nagel",
"DOB": "",
"Howout": "1",
"Fielder": "?",
"Bowler": "?",
"Score": "21",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman10": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": ""
},
"Bowler": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": ""
},
"Score": "20",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman11": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": ""
},
"Score": "7",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"FOW1": {
"Score": "2",
"Firstname": "W",
"Lastname": "Ponsford",
"DOB": ""
},
"FOW2": {
"Score": "10",
"Firstname": "W",
"Lastname": "Woodfull",
"DOB": ""
},
"FOW3": {
"Score": "61",
"Firstname": "S",
"Lastname": "McCabe",
"DOB": ""
},
"FOW4": {
"Score": "61",
"Firstname": "V",
"Lastname": "Richardson",
"DOB": ""
},
"FOW5": {
"Score": "100",
"Firstname": "A",
"Lastname": "Kippax",
"DOB": ""
},
"FOW6": {
"Score": "104",
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": ""
},
"FOW7": {
"Score": "105",
"Firstname": "J",
"Lastname": "Fingleton",
"DOB": ""
},
"FOW8": {
"Score": "113",
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": ""
},
"FOW9": {
"Score": "151",
"Firstname": "T",
"Lastname": "Wall",
"DOB": ""
},
"FOW10": {
"Score": "164",
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": ""
},
"FOW11": {
"Score": "0"
},
"FOW12": {
"Score": "0"
},
"FOW13": {
"Score": "0"
},
"FOW14": {
"Score": "0"
},
"Bowler1": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": "",
"Overs": "18",
"Maidens": "4",
"Wickets": "5",
"RunsA": "28",
"Wides": "0",
"Noballs": "0"
},
"Bowler2": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": "",
"Overs": "17.3",
"Maidens": "5",
"Wickets": "2",
"RunsA": "54",
"Wides": "0",
"Noballs": "0"
},
"Bowler3": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": "",
"Overs": "9",
"Maidens": "5",
"Wickets": "1",
"RunsA": "13",
"Wides": "0",
"Noballs": "0"
},
"Bowler4": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": "",
"Overs": "15",
"Maidens": "6",
"Wickets": "2",
"RunsA": "37",
"Wides": "0",
"Noballs": "0"
},
"Bowler5": {
"Firstname": "H",
"Lastname": "Verity",
"DOB": "",
"Overs": "4",
"Maidens": "1",
"Wickets": "0",
"RunsA": "15",
"Wides": "0",
"Noballs": "0"
},
"legbyes": "2",
"byes": "12",
"wides": "1",
"noballs": "2",
"penalties": "0",
"Result": "1"
},
"Innings2": {
"BattingTeam": "ENGLAND 1st XI",
"Batsman1": {
"Firstname": "H",
"Lastname": "Sutcliffe",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": ""
},
"Score": "194",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman2": {
"Firstname": "R",
"Lastname": "Wyatt",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": ""
},
"Score": "38",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman3": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": ""
},
"Bowler": {
"Firstname": "L",
"Lastname": "Nagel",
"DOB": ""
},
"Score": "112",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman4": {
"Firstname": "",
"Lastname": "Nawab Pataudi Snr",
"DOB": "",
"Howout": "2",
"Fielder": "?",
"Bowler": {
"Firstname": "L",
"Lastname": "Nagel",
"DOB": ""
},
"Score": "102",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman5": {
"Firstname": "M",
"Lastname": "Leyland",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": ""
},
"Bowler": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman6": {
"Firstname": "Douglas",
"Lastname": "Jardine",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "W",
"Lastname": "Oldfield",
"DOB": ""
},
"Bowler": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": ""
},
"Score": "27",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman7": {
"Firstname": "H",
"Lastname": "Verity",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": ""
},
"Score": "2",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman8": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": "",
"Howout": "4",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": ""
},
"Score": "19",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman9": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": "",
"Howout": "3",
"Fielder": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": ""
},
"Bowler": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman10": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": "",
"Howout": "6",
"Fielder": "?",
"Bowler": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": ""
},
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman11": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": "",
"Howout": "1",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"FOW1": {
"Score": "112",
"Firstname": "R",
"Lastname": "Wyatt",
"DOB": ""
},
"FOW2": {
"Score": "300",
"Firstname": "W",
"Lastname": "Hammond",
"DOB": ""
},
"FOW3": {
"Score": "423",
"Firstname": "H",
"Lastname": "Sutcliffe",
"DOB": ""
},
"FOW4": {
"Score": "423",
"Firstname": "M",
"Lastname": "Leyland",
"DOB": ""
},
"FOW5": {
"Score": "470",
"Firstname": "Douglas",
"Lastname": "Jardine",
"DOB": ""
},
"FOW6": {
"Score": "479",
"Firstname": "H",
"Lastname": "Verity",
"DOB": ""
},
"FOW7": {
"Score": "519",
"Firstname": "G",
"Lastname": "Allen",
"DOB": ""
},
"FOW8": {
"Score": "522",
"Firstname": "L",
"Lastname": "Ames",
"DOB": ""
},
"FOW9": {
"Score": "522",
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": ""
},
"FOW10": {
"Score": "524",
"Firstname": "",
"Lastname": "Nawab Pataudi Snr",
"DOB": ""
},
"FOW11": {
"Score": "0"
},
"FOW12": {
"Score": "0"
},
"FOW13": {
"Score": "0"
},
"FOW14": {
"Score": "0"
},
"Bowler1": {
"Firstname": "T",
"Lastname": "Wall",
"DOB": "",
"Overs": "38",
"Maidens": "4",
"Wickets": "3",
"RunsA": "104",
"Wides": "0",
"Noballs": "0"
},
"Bowler2": {
"Firstname": "L",
"Lastname": "Nagel",
"DOB": "",
"Overs": "43.4",
"Maidens": "9",
"Wickets": "2",
"RunsA": "110",
"Wides": "0",
"Noballs": "0"
},
"Bowler3": {
"Firstname": "W",
"Lastname": "O'Reilly",
"DOB": "",
"Overs": "67",
"Maidens": "32",
"Wickets": "3",
"RunsA": "117",
"Wides": "0",
"Noballs": "0"
},
"Bowler4": {
"Firstname": "C",
"Lastname": "Grimmett",
"DOB": "",
"Overs": "64",
"Maidens": "22",
"Wickets": "1",
"RunsA": "118",
"Wides": "0",
"Noballs": "0"
},
"Bowler5": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": "",
"Overs": "15",
"Maidens": "2",
"Wickets": "1",
"RunsA": "42",
"Wides": "0",
"Noballs": "0"
},
"Bowler6": {
"Firstname": "A",
"Lastname": "Kippax",
"DOB": "",
"Overs": "2",
"Maidens": "1",
"Wickets": "0",
"RunsA": "3",
"Wides": "0",
"Noballs": "0"
},
"legbyes": "17",
"byes": "7",
"wides": "0",
"noballs": "6",
"penalties": "0",
"Result": "1"
},
"Innings4": {
"BattingTeam": "ENGLAND 1st XI",
"Batsman1": {
"Firstname": "H",
"Lastname": "Sutcliffe",
"DOB": "",
"Howout": "1",
"Fielder": "?",
"Bowler": "?",
"Score": "1",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman2": {
"Firstname": "R",
"Lastname": "Wyatt",
"DOB": "",
"Howout": "1",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman3": {
"Firstname": "W",
"Lastname": "Hammond",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman4": {
"Firstname": "",
"Lastname": "Nawab Pataudi Snr",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman5": {
"Firstname": "M",
"Lastname": "Leyland",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman6": {
"Firstname": "Douglas",
"Lastname": "Jardine",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman7": {
"Firstname": "H",
"Lastname": "Verity",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman8": {
"Firstname": "G",
"Lastname": "Allen",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman9": {
"Firstname": "L",
"Lastname": "Ames",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman10": {
"Firstname": "Harold",
"Lastname": "Larwood",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"Batsman11": {
"Firstname": "W",
"Lastname": "Voce",
"DOB": "",
"Howout": "0",
"Fielder": "?",
"Bowler": "?",
"Score": "0",
"Fours": "0",
"Sixes": "0",
"Balls": "0",
"Mins": "0"
},
"FOW1": {
"Score": "0"
},
"FOW2": {
"Score": "0"
},
"FOW3": {
"Score": "0"
},
"FOW4": {
"Score": "0"
},
"FOW5": {
"Score": "0"
},
"FOW6": {
"Score": "0"
},
"FOW7": {
"Score": "0"
},
"FOW8": {
"Score": "0"
},
"FOW9": {
"Score": "0"
},
"FOW10": {
"Score": "0"
},
"FOW11": {
"Score": "0"
},
"FOW12": {
"Score": "0"
},
"FOW13": {
"Score": "0"
},
"FOW14": {
"Score": "0"
},
"Bowler1": {
"Firstname": "S",
"Lastname": "McCabe",
"DOB": "",
"Overs": "0.1",
"Maidens": "0",
"Wickets": "0",
"RunsA": "1",
"Wides": "0",
"Noballs": "0"
},
"legbyes": "0",
"byes": "0",
"wides": "0",
"noballs": "0",
"penalties": "0",
"Result": "2"
}
}
}
Notes:
-
An API call will upload a single match - you need multiple calls to do multiple matches
-
The access level of the user account denoted by username:password determines what the API will allow - level 5+ can update existing matches, level 6+ can add new matches and level 7+ can approve match results
-
Player firstname+lastname combinations must be unique within a given club
-
Match types: 1=1 innings, 2=2 innings, 3=t20, 6=100B
-
AutoAddPlayers: 1=add new player records when they can't be matched, 0=don't add players
-
AutoAddOthers: 1=add venues, clubs, teams, divisions when they can't be matched, 0=don't add
-
ApproveMatch: 1=auto approve match, 0=unapproved
-
"dob" field is optional for players and officials - if provided, it needs to match the date of birth in our system
-
"id" field is optional for players and officials - it will attempt to match with the internal Cricket Statz id for that player/official and will not attempt to match by name
-
Howouts: 0=dnb, 1=not out, 2=bowled, 3=ct, 4=c&b, 5=ct behind, 6=lbw, 7=runout, 8=st, 9=hit wkt, 10=obstructed, 11=handled ball, 12=hit twice, 20=retired, 21=absent, 22=retired out, 23=timed out, 24=unknown out
-
Toss: 0=Hometeam, 1=Awayteam, 2=unknown, 3=uncontested
-
(Match) Result: 1=Hometeam win, 2=Awayteam win, 3=draw, 4=no result, 7=in progress, 8=abandoned, 9=tied, 10=cancelled
-
Subresult: 0=blank, 1=by 1st innings, 2=outright, 3=dls, 4=in super over, 5=forfeit, 6=walkover
-
Final & Grandfinal: 0=no, 1=yes
-
The optional MVP field assigns MVP points to any player. See Q18 in the FAQ for details on the MVP points system.
-
Substitute fielders - set both their Firstname to "sub" and Lastname to "sub" and they will be tagged as a sub fielder
-
(Innings) Result: 0=unknown, 1=all out, 2=closed, 3=declared, 4=abandoned, 5=in progress
-
Field names are case sensitive and all fields and values need to be enclosed in double quotes (all values are expected to be strings)
(Optional) BallByBall notes:
-
BallByBall requires the use of the Cricket Statz playerID to identify players
-
Result: 1,2,3,4,5,6,etc for runs off bat, "." for a dot ball, NB=noball, 1W=1 wide, 1LB=1 leg bye, 1B=1 bye, 1+1NB=1 run off bat + 1 noball, OUTBLD=out bowled, OUTCT=out caught, OUTCTB=out caught behind, OUTLBW=out LBW, OUTCB =out caught & bowled, OUTRO=out runout,1+OUTRO=1 run off bat + out runout, OUTST=out stumped, OUTHW=out hit wicket, OUTOBS=out obstructed field, OUTHDB=out handled ball, OUTHB2=out hit ball twice, RETNO=retired not out, OUTRET=out retired, OUTTO=out timed out
-
Ball count is a unique delivery number starting at 1 and increasing. It still increments even for a noball or wide.
-
Over count always starts at 0
-
Score is the number of runs that the scoreboard is incremented for that ball, inclusive of any extras
-
If the non-striker is run out then set Nonstrikeroutid to their playerID