/v1/required-rate
Required run rate to chase
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}