/v1/pitching
Pitching rate stats
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/baseball-api/v1/pitching" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baseball-api/v1/pitching", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baseball-api/v1/pitching");
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/baseball-api/v1/pitching",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"era": 3.15,
"fip": 3.23,
"note": "ERA = 9·ER/IP; WHIP = (BB+H)/IP; FIP = (13·HR + 3·(BB+HBP) − 2·K)/IP + constant (~3.10). Innings is a true decimal — use 'outs' for the box-score 6.1/6.2 convention.",
"whip": 1.15,
"inputs": {
"walks": 50,
"home_runs": 20,
"strikeouts": 200,
"earned_runs": 70,
"fip_constant": 3.1,
"hit_by_pitch": 5,
"hits_allowed": 180,
"innings_pitched": 200
},
"h_per_9": 8.1,
"k_per_9": 9,
"bb_per_9": 2.25,
"hr_per_9": 0.9,
"k_bb_ratio": 4
},
"meta": {
"timestamp": "2026-06-05T19:50:09.740Z",
"request_id": "8b76bd97-c8ef-490f-87b7-06fa5b4233cb"
},
"status": "ok",
"message": "Pitching stats",
"success": true
}