{"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":"3cf258cf-fb67-4327-863a-78afef6585ce","catalogType":"api","categories":["data"],"dataPlatform":"mlb-stats","dataPlatformLogoUrl":"https://api.sh/logos/mlb-stats.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Fetch MLB league leaders by stat category, season, league and game type via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as category, limit, output, and retrieve structured data including statistical category key, recorded statistical value, ranked player identity object, and player team identity object to build multi-stat leader cards, compare al and nl races, and monitor minor-league standouts.","descriptionTranslations":{"ar":"استعلم عن متصدري إحصاءات MLB حسب الفئة عبر OpenAny REST لتشغيل لوحات سباق الجوائز وتصنيفات الفانتازي وملخصات الموسم. اجمع عدة فئات مفصولة بفواصل مع فلاتر الموسم والمجموعة والدوري ونوع المباراة والحد ومستوى البطولة لاستلام قوائم اللاعبين المتصدرين.","ja":"OpenAny REST で統計カテゴリ別の MLB リーグリーダーを取得し、タイトル争いウィジェットやファンタジーランキングに活用できます。複数カテゴリをカンマ区切りで指定でき、シーズン、グループ、リーグ、試合種別、件数上限、マイナー含むレベル別で絞り込めます。","zh":"通过 OpenAny REST 按统计类别获取 MLB 联盟领跑者榜单，用于构建奖项角逐组件、范特西排行榜和多指标赛季概览。支持逗号分隔的多个指标，并可按赛季、统计分组、联盟、赛制、条数上限和赛事级别筛选，覆盖 MLB 及小联盟排行。"},"effectContentHtml":"","executionMode":"sync","id":"644c1b44-f2c7-4edb-92c5-30830f0ccbdc","includedContentHtml":"","inputs":[{"description":"Leader category (default homeRuns); comma-separated for several, e.g. homeRuns,battingAverage,earnedRunAverage.","location":"query","name":"category","nullable":false,"required":false,"type":"string"},{"description":"Season year; default this year.","location":"query","name":"season","nullable":false,"required":false,"type":"string"},{"description":"hitting, pitching, fielding, catching or running.","location":"query","name":"group","nullable":false,"required":false,"type":"string"},{"description":"al or nl.","enum_values":["al","nl"],"location":"query","name":"league","nullable":false,"required":false,"type":"string"},{"description":"R (default), P postseason, S spring ...","location":"query","name":"game_type","nullable":false,"required":false,"type":"string"},{"description":"Leaders per category (default 10, max 100).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"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 league leaders by stat category API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eMLB League Leaders API\u003c/h2\u003e\n\u003cp\u003eFilter league leaders with optional category (default homeRuns; comma-separated such as homeRuns,battingAverage,earnedRunAverage), season, group (hitting, pitching, fielding, catching or running), league (al or nl), game_type (R, P, S), limit (default 10, max 100) and sport_id (1 for MLB or minor-league IDs).\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: category (default homeRuns, comma-separated), season, group, league (al/nl), game_type (R/P/S), limit (default 10, max 100), 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 league leaders by stat category 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\u003eBuild multi-stat leader cards\u003c/strong\u003e: Request homeRuns,battingAverage,earnedRunAverage in one call to populate homepage stat leader modules.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCompare AL and NL races\u003c/strong\u003e: Set league=al or league=nl alongside game_type=P to track league-specific or postseason leaders.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMonitor minor-league standouts\u003c/strong\u003e: Set sport_id to 11 (Triple-A) through 16 (Rookie) to surface top prospect performers.\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 leader categories returned\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].category\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eStatistical category key\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].group\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eStat group such as hitting or pitching\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].season\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSeason year for the leaderboard\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].game_type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eGame type code such as R or P\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].total\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal ranked entries in the category\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].leaders[].rank\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer rank in the category\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].leaders[].value\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRecorded statistical value\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].leaders[].player\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRanked player identity object\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecategories[].leaders[].team\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer team identity object\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/leaders \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode category=homeRuns \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0 \\\n  --data-urlencode season=2026\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/644c1b44-f2c7-4edb-92c5-30830f0ccbdc\"\u003ePublished MLB League Leaders 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\u003eCan I request multiple stat categories in a single call?\u003c/h3\u003e\n\u003cp\u003eYes. Pass comma-separated category names such as homeRuns,battingAverage,earnedRunAverage.\u003c/p\u003e\n\u003ch3\u003eWhat is the default category and limit if I omit them?\u003c/h3\u003e\n\u003cp\u003ecategory defaults to homeRuns and limit defaults to 10 leaders per category (up to max 100).\u003c/p\u003e\n\u003ch3\u003eHow do I filter leaders to the American League or National League?\u003c/h3\u003e\n\u003cp\u003ePass league=al or league=nl in the query string.\u003c/p\u003e\n\u003ch3\u003eAre minor-league and postseason leaderboards supported?\u003c/h3\u003e\n\u003cp\u003eYes. Use sport_id (e.g. 11 Triple-A, 12 Double-A) for minor leagues and game_type=P for postseason.\u003c/p\u003e\n\u003ch3\u003eWhen should I use MLB Stat Leaderboard API instead?\u003c/h3\u003e\n\u003cp\u003eUse MLB Stat Leaderboard API when you need full sortable multi-column tables with position, pool and offset pagination.\u003c/p\u003e\n\u003ch3\u003eHow do I get fresh leaderboards without cached values?\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-stat-leaderboard-with-sorting-and-filters-api\"\u003eMLB Stat Leaderboard API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-mlb-player-bio-draft-awards-and-stats-api\"\u003eMLB Player Profile 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-league-leaders-by-stat-category-api?offering=644c1b44-f2c7-4edb-92c5-30830f0ccbdc","providerId":"apish","publicPath":"/v1/agent-apis/apish/mlb/v1/leaders","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"category":"homeRuns","limit":"1","output":"json","raw":"0","season":"2026"}},"response_body":{"applied_filters":{"category":"homeRuns","game_type":"R","group":null,"league":null,"season":2026,"sport_id":1},"cached":false,"categories":[{"category":"homeRuns","game_type":"R","group":"hitting","leaders":[{"league":"NL","player":{"id":691718,"name":"Pete Crow-Armstrong"},"rank":1,"team":{"abbreviation":"CHC","id":112,"name":"Chicago Cubs"},"value":"45"},{"league":"NL","player":{"id":656941,"name":"Kyle Schwarber"},"rank":1,"team":{"abbreviation":"PHI","id":143,"name":"Philadelphia Phillies"},"value":"45"}],"season":"2026","total":538},{"category":"homeRuns","game_type":"R","group":"catching","leaders":[{"league":"NL","player":{"id":592663,"name":"J.T. Realmuto"},"rank":1,"team":{"abbreviation":"PHI","id":143,"name":"Philadelphia Phillies"},"value":"140"}],"season":"2026","total":110},{"category":"homeRuns","game_type":"R","group":"pitching","leaders":[{"league":"NL","player":{"id":605400,"name":"Aaron Nola"},"rank":1,"team":{"abbreviation":"PHI","id":143,"name":"Philadelphia Phillies"},"value":"37"}],"season":"2026","total":766}],"count":3,"credits_used":1,"fetched_at":"2026-11-19T12:22:02.479Z"}}],"seoDescription":"Fetch MLB league leaders by stat category, season via REST or MCP powered by Apish. Pay per call, no subscription. Get structured JSON with one API key.","updatedAt":"2026-12-03T02:44:08.395Z","usageInstructionsHtml":""}}