{"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":"cb9bd195-3aad-49c0-87e0-17f981808005","catalogType":"api","categories":["data"],"dataPlatform":"mlb-stats","dataPlatformLogoUrl":"https://api.sh/logos/mlb-stats.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Fetch sortable MLB stat leaderboards via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as group, limit, output, and retrieve structured data including current pagination offset, next offset, MLB player identifier, player full name, and player position code to build sortable fantasy tables, explore sabermetrics and expected stats, and paginate full league leaderboards.","descriptionTranslations":{"ar":"أنشئ قوائم متصدري إحصاءات MLB قابلة للفرز والتصفية عبر OpenAny REST لتطبيقات التحليل الرياضي وأدوات الفانتازي. صف النتائج حسب المجموعة والموسم ونوع الإحصاء المتقدم ومقياس الفرز وفئة اللاعبين والفريق والدوري والمركز ومستوى البطولة مع دعم التصفح بالصفحات.","ja":"OpenAny REST で並べ替え・絞り込み対応の MLB 個人成績ランキングを取得し、分析アプリやファンタジー評価ツールを構築できます。打撃・投球グループ、シーズン、セイバーメトリクス等の種別、ソート項目、規定到達/新人プール、球団、ポジション別にページング取得できます。","zh":"通过 OpenAny REST 构建可自定义排序与筛选的 MLB 球员数据排行榜，适用于数据分析应用与范特西工具。可按统计分组、赛季、常规或进阶高阶指标类型、排序字段、球员池、球队、联盟、守备位置和赛事级别筛选，并支持偏移分页返回完整数据行。"},"effectContentHtml":"","executionMode":"sync","id":"364a25f3-501f-4d61-a19f-da2a5778342d","includedContentHtml":"","inputs":[{"description":"hitting (default), pitching, fielding, catching, running.","location":"query","name":"group","nullable":false,"required":false,"type":"string"},{"description":"Season year; default this year.","location":"query","name":"season","nullable":false,"required":false,"type":"string"},{"description":"season (default), seasonAdvanced, sabermetrics, expectedStatistics, career, careerAdvanced.","enum_values":["season","seasonAdvanced","sabermetrics","expectedStatistics","career","careerAdvanced"],"location":"query","name":"type","nullable":false,"required":false,"type":"string"},{"description":"Stat to sort by, e.g. homeRuns, avg, ops, era, strikeOuts, whip (default ops for hitting, era for pitching).","location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"asc or desc.","enum_values":["asc","desc"],"location":"query","name":"order","nullable":false,"required":false,"type":"string"},{"description":"qualified (default), all, rookies, qualified_rookies.","enum_values":["qualified","all","rookies","qualified_rookies"],"location":"query","name":"pool","nullable":false,"required":false,"type":"string"},{"description":"Team id or abbreviation.","location":"query","name":"team_id","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":"C, 1B, 2B, 3B, SS, LF, CF, RF, OF, DH, P, SP, RP.","location":"query","name":"position","nullable":false,"required":false,"type":"string"},{"description":"Rows to skip (from next_offset).","location":"query","name":"offset","nullable":false,"required":false,"type":"integer"},{"description":"Rows per page (default 50, 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 stat leaderboard with sorting and filters API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eMLB Stat Leaderboard API\u003c/h2\u003e\n\u003cp\u003eQuery sortable player tables with optional group (hitting default, pitching, fielding, catching, running), season, type (season, seasonAdvanced, sabermetrics, expectedStatistics, career, careerAdvanced), sort, order (asc/desc), pool (qualified, all, rookies, qualified_rookies), team_id, league, position, offset, limit (default 50, max 100) and sport_id.\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: group, season, type, sort, order (asc/desc), pool, team_id, league (al/nl), position, offset, limit (default 50, max 100), sport_id, 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 stat leaderboard with sorting and filters 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 sortable fantasy tables\u003c/strong\u003e: Sort qualified hitters by ops or homeRuns, or pitchers by era, whip or strikeOuts with position filters.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eExplore sabermetrics and expected stats\u003c/strong\u003e: Set type to sabermetrics or expectedStatistics to surface advanced metrics beyond basic counting stats.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePaginate full league leaderboards\u003c/strong\u003e: Loop over next_offset with limit=100 until next_offset is null to export an entire season table.\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 player rows in this page\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal matching players across all pages\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoffset\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCurrent pagination offset\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_offset\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOffset for the next page, or null on the last page\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].rank\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer rank under the selected sort\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].player.id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMLB player identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].player.name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer full name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].position\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer position code\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].league\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlayer league abbreviation\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].stat\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFull statistical line object for the player\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/stats \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode group=pitching \\\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/364a25f3-501f-4d61-a19f-da2a5778342d\"\u003ePublished MLB Stat Leaderboard 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\u003eHow do I paginate through more than 100 players?\u003c/h3\u003e\n\u003cp\u003eUse limit (default 50, max 100) and pass the returned next_offset value into offset until next_offset is null.\u003c/p\u003e\n\u003ch3\u003eAre sabermetrics and expected statistics supported?\u003c/h3\u003e\n\u003cp\u003eYes. The type parameter accepts season, seasonAdvanced, sabermetrics, expectedStatistics, career and careerAdvanced.\u003c/p\u003e\n\u003ch3\u003eHow do I filter for rookies or unqualified players?\u003c/h3\u003e\n\u003cp\u003eSet pool to qualified (default), all, rookies or qualified_rookies.\u003c/p\u003e\n\u003ch3\u003eCan I filter the leaderboard by fielding position or club?\u003c/h3\u003e\n\u003cp\u003eYes. Pass position (e.g. C, 1B, SS, OF, SP, RP) and team_id (numeric ID or abbreviation).\u003c/p\u003e\n\u003ch3\u003eWhat default sort is used if I omit sort?\u003c/h3\u003e\n\u003cp\u003eIt defaults to ops for hitting and era for pitching; pass order=asc or order=desc to control direction.\u003c/p\u003e\n\u003ch3\u003eHow do caching and payload trimming work?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks and fields to select specific keys.\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-league-leaders-by-stat-category-api\"\u003eMLB League Leaders API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-mlb-player-stats-by-season-career-game-log-and-splits-api\"\u003eMLB Player Stats API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/mlb-stats/mlb-stats-search-mlb-players-by-name-api\"\u003eMLB Player Search API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/mlb-stats/mlb-stats-mlb-stat-leaderboard-with-sorting-and-filters-api?offering=364a25f3-501f-4d61-a19f-da2a5778342d","providerId":"apish","publicPath":"/v1/agent-apis/apish/mlb/v1/stats","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"group":"pitching","limit":"1","output":"json","raw":"0","season":"2026"}},"response_body":{"applied_filters":{"group":"pitching","league":null,"order":null,"pool":"qualified","position":null,"season":2026,"sort":"earnedRunAverage","sport_id":1,"team_id":null,"type":"season"},"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:22:09.494Z","next_offset":1,"offset":0,"players":[{"league":"NL","player":{"id":694819,"name":"Jacob Misiorowski"},"position":"P","rank":1,"stat":{"age":24,"airOuts":138,"atBats":610,"avg":".157","balks":1,"baseOnBalls":44,"battersFaced":665,"blownSaves":0,"catchersInterference":0,"caughtStealing":1,"caughtStealingPercentage":".333","completeGames":1,"doubles":8,"earnedRuns":35,"era":"1.80","gamesFinished":0,"gamesPitched":30,"gamesPlayed":30,"gamesStarted":30,"groundIntoDoublePlay":11,"groundOuts":126,"groundOutsToAirouts":"0.91","hitBatsmen":9,"hitByPitch":9,"hits":96,"hitsPer9Inn":"4.95","holds":0,"homeRuns":14,"homeRunsPer9":"0.72","inheritedRunners":0,"inheritedRunnersScored":0,"inningsPitched":"174.2","intentionalWalks":0,"losses":5,"numberOfPitches":2647,"obp":".224","ops":".470","outs":524,"pickoffs":0,"pitchesPerInning":"15.15","runs":43,"runsScoredPer9":"2.22","sacBunts":1,"sacFlies":1,"saveOpportunities":0,"saves":0,"shutouts":1,"slg":".246","stolenBasePercentage":".667","stolenBases":2,"strikeOuts":252,"strikePercentage":".680","strikeoutWalkRatio":"5.73","strikeoutsPer9Inn":"12.98","strikes":1789,"totalBases":150,"triples":2,"walksPer9Inn":"2.27","whip":"0.80","wildPitches":6,"winPercentage":".762","wins":16},"team":{"abbreviation":"MIL","id":158,"name":"Milwaukee Brewers"}}],"total":46}}],"seoDescription":"Fetch sortable MLB stat leaderboards via REST or MCP powered by Apish. Pay per call, no subscription. Designed to build sortable fantasy tables.","updatedAt":"2026-12-03T02:44:08.996Z","usageInstructionsHtml":""}}