Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/baseball-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/baseball-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baseball-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baseball-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/baseball-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "notes": "Counting stats in, rate stats out. Innings pitched is a true decimal; pass 'outs' to express the 6.1/6.2 box-score convention exactly. For live scores and standings use a sports-data API.",
        "service": "baseball-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/batting": "Batting rate stats from AB, H, 2B, 3B, HR, BB, HBP, SF (+K for BABIP).",
            "GET /v1/pitching": "Pitching rate stats from IP (or outs), ER, H, BB, K, HR, HBP."
        },
        "description": "Baseball sabermetrics: batting (AVG, OBP, SLG, OPS, ISO, BABIP) and pitching (ERA, WHIP, K/9, FIP) rate stats from counting numbers."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:09.851Z",
        "request_id": "3afc4caf-d350-4f82-bc0d-94964e001d76"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}