Vai al contenuto
GET /v1/required-rate

Required run rate to chase

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/cricket-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}