Blog
Cricket APIs: Match Ball-by-Ball API
Oct. 18, 2023

Blog
Oct. 18, 2023

https://api.sports.roanuz.com. To access ball-by-ball data, you'll use the following endpoints:/v5/cricket/proj_key/match/key/ball-by-ball/ for retrieving ball-by-ball updates for a specific match./v5/cricket/proj_key/match/key/ball-by-ball/over_key/ for fetching ball-by-ball data for a specific over./v5/cricket/proj_key/match/key/ball-by-ball/FIRST-OVER/ to access data for the first over.proj_key (String, Required): Your Production or Sandbox Project Key.key (String, Required): The match key for which you need ball-by-ball information.over_key (Optional): The key of the over for specific over details.first_over (Optional): Include this parameter to fetch ball-by-ball information for the first over of the match.rs-token (String, Required): This token is needed to access the API. You can generate a new token using the Auth API.pythonCopy code
import requests
project_key = 'YOUR_PROJ_KEY'
token = 'YOUR_ACCESS_TOKEN'
key = 'rsaeng_2020_t20_03'
url = "https://api.sports.roanuz.com/v5/cricket/<span class="highlight highlight-object">/match/{}</span>/ball-by-ball/".format(project_key, key)
headers = {
'rs-token': token
}
response = requests.get(url, headers=headers)
print(response.json())
| Attribute | Description |
|---|---|
| over_number | The number of the over. |
| ball_type | The type of ball bowled. |
| batsman | Details about the batsman. |
| bowler | Details about the bowler. |
| team_score | The team's score after each ball. |
| extras | Extra runs scored on the ball. |
| fielders | Details about fielders and fielding plays. |
| wicket | Information about wickets taken. |
previous_over_key or next_over_key properties in the request URL. This way, you can navigate through overs seamlessly.
cache.key: The key or ID recommended for caching a response.cache.expires: The recommended duration for caching the data.
₹ - India
$ - International
€ - Europe
© Copyright Roanuz Softwares Private Limited. All rights reserved