Aller au contenu
GET /v1/standings

Division standings for a season

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/mlb-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/mlb-api/v1/standings" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mlb-api/v1/standings", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mlb-api/v1/standings");
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/mlb-api/v1/standings",
    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": {
        "season": 2025,
        "divisions": [
            {
                "teams": [
                    {
                        "pct": 0.58,
                        "rank": 1,
                        "team": {
                            "id": 141,
                            "abbr": "TOR",
                            "name": "Toronto Blue Jays"
                        },
                        "wins": 94,
                        "losses": 68,
                        "streak": "W4",
                        "run_diff": 77,
                        "games_back": 0,
                        "runs_scored": 798,
                        "runs_allowed": 721,
                        "wildcard_games_back": 0
                    },
                    {
                        "pct": 0.58,
                        "rank": 2,
                        "team": {
                            "id": 147,
                            "abbr": "NYY",
                            "name": "New York Yankees"
                        },
                        "wins": 94,
                        "losses": 68,
                        "streak": "W8",
                        "run_diff": 164,
                        "games_back": 0,
                        "runs_scored": 849,
                        "runs_allowed": 685,
                        "wildcard_games_back": 7
                    },
                    {
                        "pct": 0.549,
                        "rank": 3,
                        "team": {
                            "id": 111,
                            "abbr": "BOS",
                            "name": "Boston Red Sox"
                        },
                        "wins": 89,
                        "losses": 73,
                        "streak": "W1",
                        "run_diff": 110,
                        "games_back": 5,
                        "runs_scored": 786,
                        "runs_allowed": 676,
                        "wildcard_games_back": 2
                    },
                    {
                        "pct": 0.475,
                        "rank": 4,
                        "team": {
                            "id": 139,
                            "abbr": "TB",
                            "name": "Tampa Bay Rays"
                        },
                        "wins": 77,
                        "losses": 85,
                        "streak": "L4",
                        "run_diff": 31,
                        "games_back": 17,
                        "runs_scored": 714,
                        "runs_allowed": 683,
                        "wildcard_games_back": 10
                    },
                    {
                        "pct": 0.463,
                        "rank": 5,
                        "team": {
                            "id": 110,
                            "abbr": "BAL",
                            "name": "Baltimore Orioles"
                        },
        
…