Zum Inhalt springen
GET /v1/required-rate

Required run rate to chase

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/cricket-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/cricket-api/v1/required-rate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cricket-api/v1/required-rate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cricket-api/v1/required-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/required-rate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Chasing a target, the required run rate = the runs still needed ÷ the balls left × 6. Needing 80 to win (target 200, on 120) with 10 overs left means 8.00 an over. It climbs sharply as balls run out, which is why a chase that looks comfortable can tip away in a couple of tight overs; compare it with the current run rate to read the game.",
        "inputs": {
            "target_runs": 200,
            "current_runs": 120,
            "balls_remaining": 0,
            "overs_remaining": 10
        },
        "runs_needed": 80,
        "balls_remaining": 60,
        "required_run_rate": 8
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:51.097Z",
        "request_id": "1d634b22-2ab8-471a-ab49-b0e9db13593d"
    },
    "status": "ok",
    "message": "Required run rate",
    "success": true
}