{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"52e15723-e061-4ee9-9cff-69042018ff7f","catalogType":"api","categories":["data"],"dataPlatform":"mlb-stats","dataPlatformLogoUrl":"https://api.sh/logos/mlb-stats.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Get MLB Schedule \u0026 Scores data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as date, output, raw, and retrieve structured data including MLB game identifier, abstract state, away team score, and home team score to build team fixture calendars, and track postseason and minor-league slates.","descriptionTranslations":{"ar":"استرجع جداول مباريات ونتائج MLB ليوم واحد أو فترة حتى 31 يوما عبر OpenAny REST لتشغيل لوحات النتائج وتقويمات المباريات ومعرفات المباريات. استخدم فلاتر التاريخ والنطاق الزمني والفريق ونوع المباراة ومستوى البطولة للحصول على المواجهات والرامين المتوقعين ونتائج الأشواط.","ja":"OpenAny REST で指定日または最大 31 日間の MLB 試合日程とスコアを取得し、スコアボードやカレンダー、試合 ID 取得に活用できます。日付範囲、チーム、試合種別（公式戦・ポストシーズン等）、レベル別に絞り込み、予告先発や勝敗投手、ラインスコアを JSON で返します。","zh":"通过 OpenAny REST 获取指定日期或最多 31 天区间内的 MLB 赛程与比分，用于驱动每日比分板、赛历与比赛 ID 查询。支持按日期、起止日期、球队、赛制类型和赛事级别筛选，返回对阵、先发投手、胜败救援归属和逐局比分的 JSON 数据。"},"effectContentHtml":"","executionMode":"sync","id":"258c5164-fb41-4fba-bc39-abcb3999d071","includedContentHtml":"","inputs":[{"description":"Date (YYYY-MM-DD); default today.","location":"query","name":"date","nullable":false,"required":false,"type":"string"},{"description":"Range start (YYYY-MM-DD), with end_date.","location":"query","name":"start_date","nullable":false,"required":false,"type":"string"},{"description":"Range end (YYYY-MM-DD), at most 31 days after start_date.","location":"query","name":"end_date","nullable":false,"required":false,"type":"string"},{"description":"Team id (147) or abbreviation (nyy, lad, bos ...).","location":"query","name":"team_id","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated: R regular season, S spring training, P postseason (all rounds), F wild card, D division series, L league championship, W World Series, A All-Star, E exhibition.","location":"query","name":"game_type","nullable":false,"required":false,"type":"string"},{"description":"Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international.","enum_values":["1","11","12","13","14","16","17","21","22","23","51","586"],"location":"query","name":"sport_id","nullable":false,"required":false,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/mlb-stats.png","method":"GET","name":"MLB schedule and scores for a date or range API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eMLB Schedule \u0026amp; Scores API\u003c/h2\u003e\n\u003cp\u003eQuery games by date (YYYY-MM-DD, default today) or start_date and end_date (at most 31 days apart), with optional team_id, game_type (R, S, P, F, D, L, W, A, E) and sport_id (1 MLB default, or minor-league levels). Returned games[] include gamePk IDs, scores, records, probable pitchers, decisions and linescore summaries.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eOptional query: date (default today), start_date/end_date (max 31 days), team_id, game_type (comma-separated R/S/P/F/D/L/W/A/E), sport_id (default 1 MLB), raw=0, fields and fresh=1.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · MLB schedule and scores for a date or range API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eDiscover gamePk IDs for deep stats\u003c/strong\u003e: Pull games[].id for a date and pass it to the MLB Game Box Score API or MLB Game Play-by-Play API.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBuild team fixture calendars\u003c/strong\u003e: Combine team_id with start_date and end_date to render upcoming series and probable pitchers.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrack postseason and minor-league slates\u003c/strong\u003e: Filter by game_type=P or sport_id=11 (Triple-A) to monitor playoff series or affiliate schedules.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNumber of games returned in the payload\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal_games\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal scheduled games matching the query\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMLB game identifier (gamePk)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eScheduled game date and time\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].abstract_state\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHigh-level game state such as Final or Live\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].game_type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eGame type code such as R or W\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].away.score\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAway team score\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].home.score\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHome team score\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].linescore.current_inning\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCurrent or final inning number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egames[].decisions.winner\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWinning pitcher record when decided\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/mlb/v1/schedule \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode date=2026-10-24 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/258c5164-fb41-4fba-bc39-abcb3999d071\"\u003ePublished MLB Schedule \u0026amp; Scores API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat is the maximum date range allowed with start_date and end_date?\u003c/h3\u003e\n\u003cp\u003eA date-range request covers at most 31 days between start_date and end_date.\u003c/p\u003e\n\u003ch3\u003eWhat date is queried if I omit date, start_date and end_date?\u003c/h3\u003e\n\u003cp\u003eIt defaults to today\u0026#39;s MLB schedule.\u003c/p\u003e\n\u003ch3\u003eCan I filter for postseason or spring training games?\u003c/h3\u003e\n\u003cp\u003eYes. Pass comma-separated game_type codes such as R (regular season), S (spring), P (postseason) or W (World Series).\u003c/p\u003e\n\u003ch3\u003eDoes the schedule include probable pitchers and winning/saving pitchers?\u003c/h3\u003e\n\u003cp\u003eYes. Each game exposes away/home probable_pitcher objects and decisions (winner, loser, save) once finalized.\u003c/p\u003e\n\u003ch3\u003eAre minor-league schedules available on this endpoint?\u003c/h3\u003e\n\u003cp\u003eYes. Set sport_id to 11 (Triple-A), 12 (Double-A), 13 (High-A), 14 (Single-A), 16 (Rookie), 17 (winter) or 51 (international).\u003c/p\u003e\n\u003ch3\u003eHow do I get live score updates without cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to skip the 24-hour cache and raw=0 to omit bulky raw blocks.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-mlb-game-box-score-and-line-score-api\"\u003eMLB Game Box Score API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-mlb-game-play-by-play-with-every-pitch-api\"\u003eMLB Game Play-by-Play API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-mlb-standings-by-division-wild-card-or-league-api\"\u003eMLB Standings API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/mlb-stats/mlb-stats-mlb-schedule-and-scores-for-a-date-or-range-api?offering=258c5164-fb41-4fba-bc39-abcb3999d071","providerId":"apish","publicPath":"/v1/agent-apis/apish/mlb/v1/schedule","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"date":"2026-10-24","output":"json","raw":"0"}},"response_body":{"applied_filters":{"date":"2026-10-24","end_date":null,"game_type":null,"sport_id":1,"start_date":null,"team_id":null},"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:22:07.725Z","games":[{"abstract_state":"Final","away":{"is_winner":false,"probable_pitcher":{"id":656876,"name":"Drew Rasmussen"},"record":{"losses":2,"pct":".000","wins":0},"score":4,"series_number":1,"team":{"abbreviation":"TB","id":139,"name":"Tampa Bay Rays"}},"date":"2026-10-24","day_night":"night","decisions":{"loser":{"id":669330,"name":"Tyler Wells"},"save":{"id":676879,"name":"Aaron Ashby"},"winner":{"id":682842,"name":"Abner Uribe"}},"double_header":"N","game_number":1,"game_type":"W","games_in_series":7,"home":{"is_winner":true,"probable_pitcher":{"id":701656,"name":"Logan Henderson"},"record":{"losses":0,"pct":"1.000","wins":2},"score":5,"series_number":1,"team":{"abbreviation":"MIL","id":158,"name":"Milwaukee Brewers"}},"id":849802,"linescore":{"away":{"errors":1,"hits":7,"runs":4},"current_inning":9,"home":{"errors":1,"hits":11,"runs":5},"inning_state":"Top","innings":[{"away":4,"home":2,"num":1},{"away":0,"home":0,"num":2},{"away":0,"home":0,"num":3},{"away":0,"home":1,"num":4},{"away":0,"home":0,"num":5},{"away":0,"home":1,"num":6},{"away":0,"home":1,"num":7},{"away":0,"home":0,"num":8},{"away":0,"home":null,"num":9}]},"scheduled_innings":9,"season":"2026","series":"World Series","series_game_number":2,"start_time":"2026-10-25T00:00:00Z","status":"Final","status_code":"F","url":"https://www.mlb.com/gameday/849802","venue":{"id":32,"name":"American Family Field"}}],"total_games":1}}],"seoDescription":"Get MLB Schedule \u0026 Scores data via REST or MCP powered by Apish. Pay per call, no subscription. Built to discover gamepk ids for deep stats.","updatedAt":"2026-12-03T02:44:08.679Z","usageInstructionsHtml":""}}