Naar de inhoud
GET /v1/pitching

Pitching rate stats

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/baseball-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}