/v1/meta
Spec
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/cricket-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cricket-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cricket-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"notes": "An over is 6 balls; overs are whole overs + balls, not decimal. run rate = runs/(balls/6); strike rate = runs/balls·100; RRR = runs_needed/balls_left·6. For baseball stats use a baseball API.",
"service": "cricket-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/run-rate": "Run rate and projected score from runs and overs.",
"GET /v1/strike-rate": "Batter strike rate from runs and balls faced.",
"GET /v1/required-rate": "Required run rate to chase a target."
},
"description": "Cricket statistics: run rate and projected score, batter strike rate, and the required run rate to chase a target."
},
"meta": {
"timestamp": "2026-06-07T08:17:51.330Z",
"request_id": "f84134b0-b5fa-4dbf-a51b-780513e40a63"
},
"status": "ok",
"message": "Meta",
"success": true
}