Runs and balls left, current and required run rate in a chase

Calculates the current and required run rate in a chase, and runs and balls remaining.

Request

POSThttps://sports-tools.p.apihiver.com/v1/cricket/required-run-rate

JSON object. Required: target, runs, overs_bowled.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://sports-tools.p.apihiver.com/v1/cricket/required-run-rate \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "runs": 90,
8  "target": 180,
9  "overs_bowled": 10
10}'

Runs and balls left, current and required run rate in a chase: Sports & Cricket Tools API reference

Calculates the current and required run rate in a chase, and runs and balls remaining. This endpoint is part of the Sports & Cricket Tools API: Tournament fixtures, league tables, Elo ratings and cricket net run rate / required run rate calculators.

Example response (200, application/json)

Success.

1{
2  "status": "in progress",
3  "balls_left": 60,
4  "runs_needed": 90,
5  "current_run_rate": 9,
6  "required_run_rate": 9
7}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "target: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.