/v1/schedule
Games & scores on a date
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/mlb-api/v1/schedule" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mlb-api/v1/schedule", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mlb-api/v1/schedule");
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/schedule",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"date": "2025-07-04",
"count": 1,
"games": [
{
"away": {
"id": 147,
"abbr": "NYY",
"name": "New York Yankees",
"score": 5,
"record": "48-40"
},
"home": {
"id": 121,
"abbr": "NYM",
"name": "New York Mets",
"score": 6,
"record": "51-38"
},
"venue": "Citi Field",
"status": "Final",
"game_pk": 777250,
"date_time": "2025-07-04T19:10:00Z"
}
]
},
"meta": {
"timestamp": "2026-06-01T00:04:11.192Z",
"request_id": "2d437385-c7e4-4495-8a6d-52a7f5ab483e"
},
"status": "ok",
"message": "Schedule retrieved",
"success": true
}