This Website and the Sub Sites attached to it use cookies. For details please click here. By continuing to use this Website or any Sub Sites, you are consenting to the use of these cookies. You can switch off cookies at any time using your browser settings but if you do, this may affect your user experience.
Progress
Please wait...
ECB API's

Clubs

GET https://www.play-cricket.com/api/v2/clubs.json?&api_token=xxxxxx

Parameters

              
                api_token: string required
                county_id: int
                from_entry_date : string (dd/mm/yyyy)
                end_entry_date  : string (dd/mm/yyyy)
              
            

API Returns

                     
                {
                  "clubs": [
                    {"id": "", "name": "", "county_id":"", status: "", last_updated: ""},
                    {"id": "", "name": "", "county_id":"", status: "", last_updated: ""},
                    .
                    .
                    .
                    {"id": "", "name": "", "county_id":"", status: "", last_updated: ""}
                  ]
                }
              
            

County Cricket Boards

GET https://www.play-cricket.com/api/v2/CCBs.json?&api_token=xxxxxx

Parameters

              
                api_token: string required
              
            

API Returns

                     
                {
                  "CCBs": [
                    {"id": "", "name": "", "county_id":"", status: "" },
                    {"id": "", "name": "", "county_id":"", status: "" },
                    .
                    .
                    .
                    {"id": "", "name": "", "county_id":"", status: "" }
                  ]
                }
              
            

Teams

GET https://www.play-cricket.com/api/v2/teams.json?&api_token=xxxxxx

Parameters

              
                api_token: string required
                site_type: string (club, CCB)
                from_entry_date : string (dd/mm/yyyy)
                end_entry_date  : string (dd/mm/yyyy)                  
              
            

API Returns

                     
                {
                  "teams": [
                    {"id": "", "status": "", "last_updated":"", site_id: "", team_name: "", other_team_name: "", nickname: "", team_captain: "" },
                    {"id": "", "status": "", "last_updated":"", site_id: "", team_name: "", other_team_name: "", nickname: "", team_captain: "" },
                    .
                    .
                    .
                    {"id": "", "status": "", "last_updated":"", site_id: "", team_name: "", other_team_name: "", nickname: "", team_captain: "" }
                  ]
                }
              
            

Request League Sites

GET https://www.play-cricket.com/api/v2/league_sites.json?api_token=xxxxxx

Parameters

              
                api_token: string required
              
            

API Returns

                     
                {
                  "leagues": [
                    { "league_id": "", "name":"15/15", "subsite_url":"" },
                    { "league_id": "", "name":"15/15", "subsite_url":"" },
                    .
                    .
                    { "league_id": "", "name":"15/15", "subsite_url":"" }
                  ]
                }
               
            

Request Competition Details

GET https://www.play-cricket.com/api/v2/competitions.json?season=2014&league_id=296&competition_type=Divisions&api_token=xxxxxx

Parameters

              
                api_token: string required
                season: string required
                league_id : integer
                competition_type: string required (Divisions/Cups)
              
            

API Returns

                     
                {
                  "competitions": [
                    { "id": "", "name":" "  },
                    { "id": "", "name":" "  },
                    .
                    .
                    { "id": "", "name":" ",  }
                  ]
                }
               
            

Request Teams in Division

GET https://www.play-cricket.com/api/v2/competition_teams.json?id=100001&api_token=xxxxxx

Parameters

              
                api_token: string required
                id: integer required (this is the division ID)
 
              
            

API Returns

                     
                {
                  "competition teams": [
                    { "club_id": "", "club_name":" ", "team_id" : "", "team_name": "" },
                    { "club_id": "", "club_name":" ", "team_id" : "", "team_name": "" },
                    .
                    .
                    { "club_id": "", "club_name":" ", "team_id" : "", "team_name": "" }
                  ]
                }
               
            

Get Fixture

GET https://www.play-cricket.com/api/v2/match_detail.json?match_id=100007&api_token=xxxxxx

Parameters

              
                api_token: string required
                match_id: integer
              
            

Retrieve match details

API returns

              
                {  
                  "match details":
                    {  
                      "id" : "",
                      "status" : "New",
                      "published" : Yes,
                      "last_updated" : "04/12/2014",  

                      "competition_name":"Premier League",
                      "competition_id":"6337",
                      "competition_type":"League",
                      "match_type":"Limited Overs",
                      "game_type":"Standard",
                      "match_id":"528199",
                      "match_date":"16/08/2014",
                      "match_time":"12:30",
                      "ground_name":"Darfield Cricket Club",
                      "ground_id":"9622",
                      "home_team_name":"1st XI",
                      "home_team_id":"161463",
                      "home_club_name":"Darfield CC",
                      "home_club_id":"2220",
                      "away_team_name":"1st XI",
                      "away_team_id":"157998",
                      "away_club_name":"Wickersley Old Village CC",
                      "away_club_id":"6908",
                      "umpire_1_name":"Bob Ross",
                      "umpire_1_id":"996220",
                      "umpire_2_name":"Fred Clark",
                      "umpire_2_id":"1193305",
                      "umpire_3_id":"",
                      "referee_id":"",
                      "scorer_1_name":"David Dixon",
                      "scorer_1_id":"1153465",
                      "scorer_2_name":"Dave Smith",
                      "scorer_2_id":"1024542",
                      "toss_won_by_team_id":"161463",
                      "toss":"Darfield CC - 1st XI won the toss and elected to field",
                      "no_of_overs":"",
                      "no_of_innings":1,
                      "no_of_days":1,
                      "no_of_players":11,
                      "no_of_reserves":1,
                      "result":"Wickersley Old Village CC - 1st XI - Won",
                      "result_type":  "51464#157998",
                      "match_notes":"",

                      "match_result_types":[  
                        [  
                          "Darfield CC - 1st XI - Won",
                          "51464#161463"
                        ],
                        [  
                          "Wickersley Old Village CC - 1st XI - Won",
                          "51464#157998"
                        ],
                        [  
                          "Draw",
                          51466
                        ],
                        [  
                          "Tied",
                          51467
                        ],
                        [  
                          "",
                          51469
                        ],
                        [  
                          "Match In Progress",
                          14
                        ]
                      ],
                        "players":[  
                          {  
                            "home_team":[  
                              { "position":1,"player_name":"","user_id":,"captain":false,"wicket_keeper":false },
                              { "position":2,"player_name":"","user_id":,"captain":false,"wicket_keeper":false },
                              ..
                              { "position":12,"player_name":"","user_id":,"captain":false,"wicket_keeper":false }
                            ]
                          },
                          {  
                            "away_team":[  
                              { "position":1,"player_name":"","user_id":,"captain":false,"wicket_keeper":false },
                              { "position":2,"player_name":"","user_id":,"captain":false,"wicket_keeper":false },
                              ..
                              { "position":12,"player_name":"","user_id":,"captain":false,"wicket_keeper":false }
                            ]
                          }
                        ],
                        "innings":[  
                          {  
                            "team_batting_name":"Wickersley Old Village CC - 1st XI",
                            "team_batting_id":"157998",
                            "innings_number":1,
                            "extra_byes":"1",
                            "extra_leg_byes":"5",
                            "extra_wides":"9",
                            "extra_no_balls":"0",
                            "extra_penalty_runs":"0",
                            "penalties_runs_awarded_in_other_innings":"",
                            "total_extras":"15",
                            "runs":"224",
                            "wickets":"9",
                            "overs":"50",
                            "declared":false,
                            "bat":[  
                              {
                                "position":"1",
                                "batsman_name":"",
                                "batsman_id":" ",
                                "how_out":"",
                                "fielder_name":"",
                                "fielder_id":"",
                                "bowler_name":"",
                                "bowler_id":"",
                                "runs":"12",
                                "fours":"1",
                                "sixes":"0",
                                "balls":""
                              }
                              ..
                              { 
                                "position":"11",
                                "batsman_name":"",
                                "batsman_id":" ",
                                "how_out":"",
                                "fielder_name":"",
                                "fielder_id":"",
                                "bowler_name":"",
                                "bowler_id":"",
                                "runs":"12",
                                "fours":"1",
                                "sixes":"0",
                                "balls":"" 
                              }

                            ],
 
                            "fow":[  
                              {
                                "runs":"20",
                                "wickets":1,
                                "batsman_out_name":"",
                                "batsman_out_id":""
                              }
                              .
                              .
                              {
                                "runs":"20",
                                "wickets":10,
                                "batsman_out_name":"",
                                "batsman_out_id":""
                              }
                            ],
                            "bowling":[  
                              {
                                "bowler_name":"",
                                "bowler_id":"",
                                "overs":"9",
                                "maidens":1,
                                "runs":29,
                                "wides":3,
                                "wickets":0,
                                "no_balls":0
                              }
                              ..
                              {
                                "bowler_name":"",
                                "bowler_id":"",
                                "overs":"9",
                                "maidens":1,
                                "runs":29,
                                "wides":3,
                                "wickets":0,
                                "no_balls":0
                              }

                            ]
                          },
                          {  
                            "team_batting_name":"Darfield CC - 1st XI",
                            "team_batting_id":"161463",
                            "innings_number":1,
                            "extra_byes":"4",
                            "extra_leg_byes":"1",
                            "extra_wides":"2",
                            "extra_no_balls":"0",
                            "extra_penalty_runs":"0",
                            "penalties_runs_awarded_in_other_innings":"",
                            "total_extras":"7",
                            "runs":"105",
                            "wickets":"10",
                            "overs":"28.1",
                            "declared":false,
                            "bat":[  
                              {
                                "position":"1",
                                "batsman_name":"",
                                "batsman_id":" ",
                                "how_out":"",
                                "fielder_name":"",
                                "fielder_id":"",
                                "bowler_name":"",
                                "bowler_id":"",
                                "runs":"12",
                                "fours":"1",
                                "sixes":"0",
                                "balls":""
                              }
                              ..
                              { 
                                "position":"11",
                                "batsman_name":"",
                                "batsman_id":" ",
                                "how_out":"",
                                "fielder_name":"",
                                "fielder_id":"",
                                "bowler_name":"",
                                "bowler_id":"",
                                "runs":"12",
                                "fours":"1",
                                "sixes":"0",
                                "balls":"" 
                              }

                            ],
 
                            "fow":[  
                              {
                                "runs":"20",
                                "wickets":1,
                                "batsman_out_name":"",
                                "batsman_out_id":""
                              }
                              .
                              .
                              {
                                "runs":"20",
                                "wickets":10,
                                "batsman_out_name":"",
                                "batsman_out_id":""
                              }
                            ],
                            "bowling":[  
                              {
                                "bowler_name":"",
                                "bowler_id":"",
                                "overs":"9",
                                "maidens":1,
                                "runs":29,
                                "wides":3,
                                "wickets":0,
                                "no_balls":0
                              }
                              ..
                              {
                                "bowler_name":"",
                                "bowler_id":"",
                                "overs":"9",
                                "maidens":1,
                                "runs":29,
                                "wides":3,
                                "wickets":0,
                                "no_balls":0
                              }

                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }