Skip to content
GET /v1/run-rate

Run rate and projected score

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/cricket-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/cricket-api/v1/run-rate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cricket-api/v1/run-rate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cricket-api/v1/run-rate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/cricket-api/v1/run-rate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "The run rate is the runs scored per over = runs ÷ (balls ÷ 6); an over is six legal balls, so 150 runs off 20 overs is 7.50 an over. Note overs are whole overs plus balls, not a decimal — '20.3 overs' means 20 overs and 3 balls (20.5 in real terms), the classic cricket-maths trap. Multiply the run rate by the innings overs for a projected score at the current pace.",
        "inputs": {
            "runs": 150,
            "balls": 0,
            "overs": 20,
            "target_overs": 50
        },
        "run_rate": 7.5,
        "balls_faced": 120,
        "projected_score": 375
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:51.188Z",
        "request_id": "e6e4972c-5d9f-4c17-bb29-9a4ae7361ed5"
    },
    "status": "ok",
    "message": "Run rate",
    "success": true
}