Cricket net run rate (NRR) for a tournament

Calculates a team's net run rate from runs scored/conceded and overs faced/bowled (cricket over notation, e.g. 49.3).

Request

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

JSON object. Required: runs_scored, overs_faced, runs_conceded, 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/net-run-rate \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "overs_faced": 40,
8  "runs_scored": 320,
9  "overs_bowled": 40,
10  "runs_conceded": 300
11}'

Cricket net run rate (NRR) for a tournament: Sports & Cricket Tools API reference

Calculates a team's net run rate from runs scored/conceded and overs faced/bowled (cricket over notation, e.g. 49.3). 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  "net_run_rate": 0.5,
3  "run_rate_for": 8,
4  "run_rate_against": 7.5
5}

Errors

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

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