{"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":"0f1a182a-df58-486d-bbf0-9f0b85dec531","catalogType":"api","categories":["data"],"dataPlatform":"mlb-stats","dataPlatformLogoUrl":"https://api.sh/logos/mlb-stats.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Search MLB and minor-league players by partial name via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including submitted player search query, MLB player identifier, player full name, active player status flag, and primary position abbreviation to resolve ids for downstream calls, build player autocomplete boxes, and search retired legends or prospects.","descriptionTranslations":{"ar":"ابحث عن لاعبي MLB والدوريات الصغرى بجزء من الاسم عبر OpenAny REST لتشغيل الإكمال التلقائي والحصول على معرفات اللاعبين الرقمية. أرسل نص بحث من حرفين على الأقل مع فلاتر النشاط وحد النتائج ومستوى البطولة لاستلام المعرفات والمراكز وأرقام القمصان والأندية وروابط الملفات.","ja":"OpenAny REST で MLB およびマイナーリーグ選手を名前の一部から検索し、オートコンプリートや選手 ID 解決に活用できます。2 文字以上のクエリに現役/引退フラグ、件数上限、レベル条件を組み合わせ、選手 ID、ポジション、背番号、所属球団、MLB.com URL を返します。","zh":"通过 OpenAny REST 按姓名片段搜索 MLB 及小联盟球员，用于实现自动补全搜索框并解析数字球员 ID。传入至少 2 个字符的查询词，并可按现役/退役状态、返回数量上限和赛事级别筛选，返回球员 ID、位置、号码、现效力球队、首秀日期及主页链接。"},"effectContentHtml":"","executionMode":"sync","id":"e9304d1a-5141-408a-ace7-f90a9cbb99ea","includedContentHtml":"","inputs":[{"description":"Part of a player's name (2+ characters).","location":"query","name":"q","nullable":false,"required":true,"type":"string"},{"description":"true or false to limit to active or retired players.","enum_values":["true","false"],"location":"query","name":"active","nullable":false,"required":false,"type":"string"},{"description":"Max results (default 25, 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":"Search MLB players by name API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eMLB Player Search API\u003c/h2\u003e\n\u003cp\u003ePass q (at least 2 characters of a player\u0026#39;s name) with optional active (true or false), limit (default 25, max 100) and sport_id (1 MLB default, or minor-league levels). Returned players[] provide numeric player IDs, positions, handedness, current_team, mlb_debut and MLB.com URLs.\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\u003eRequired query: q (2+ characters). Optional active (true/false), limit (default 25, 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 · Search MLB players by name 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\u003eResolve IDs for downstream calls\u003c/strong\u003e: Look up players[].id by name before calling MLB Player Profile API or MLB Player Stats API.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBuild player autocomplete boxes\u003c/strong\u003e: Filter with active=true and limit=10 to deliver fast search suggestions for current MLB players.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSearch retired legends or prospects\u003c/strong\u003e: Set active=false for historical players or use sport_id=11..16 to find minor-league prospects.\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\u003eq\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSubmitted player search query\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNumber of matching players returned\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].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[].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[].active\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eActive player status flag\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].position\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePrimary position abbreviation\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].jersey\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUniform jersey number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].current_team.name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCurrent club full name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].mlb_debut\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMLB debut date\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource MLB.com player profile URL\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/players/search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode q=ohtani \\\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/e9304d1a-5141-408a-ace7-f90a9cbb99ea\"\u003ePublished MLB Player Search 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 minimum query length for q?\u003c/h3\u003e\n\u003cp\u003ePass at least 2 characters of a player\u0026#39;s name in the required q parameter.\u003c/p\u003e\n\u003ch3\u003eCan I limit results to active or retired players?\u003c/h3\u003e\n\u003cp\u003eYes. Set active=true for active players or active=false for retired players.\u003c/p\u003e\n\u003ch3\u003eHow many matching players can be returned per request?\u003c/h3\u003e\n\u003cp\u003elimit defaults to 25 and accepts up to 100 matching players per call.\u003c/p\u003e\n\u003ch3\u003eCan I search minor-league players with 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 fetch full stats or awards for a matched player?\u003c/h3\u003e\n\u003cp\u003ePass players[].id to the MLB Player Profile API or MLB Player Stats API.\u003c/p\u003e\n\u003ch3\u003eHow do caching and response 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-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-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-mlb-team-roster-active-40-man-depth-chart-coaches-api\"\u003eMLB Team Roster API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/mlb-stats/mlb-stats-search-mlb-players-by-name-api?offering=e9304d1a-5141-408a-ace7-f90a9cbb99ea","providerId":"apish","publicPath":"/v1/agent-apis/apish/mlb/v1/players/search","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"limit":"1","output":"json","q":"ohtani","raw":"0"}},"response_body":{"applied_filters":{"active":null,"sport_id":1},"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:22:05.818Z","players":[{"active":true,"bats":"L","birth_country":"Japan","birth_date":"1994-07-05","current_team":{"abbreviation":null,"id":119,"name":"Los Angeles Dodgers"},"id":660271,"jersey":"17","mlb_debut":"2018-03-29","name":"Shohei Ohtani","position":"TWP","throws":"R","url":"https://www.mlb.com/player/shohei-ohtani-660271"}],"q":"ohtani"}}],"seoDescription":"Search MLB and minor-league players by partial name via REST or MCP powered by Apish. Pay per call, no subscription. Get structured JSON with one API key.","updatedAt":"2026-12-03T02:44:15.607Z","usageInstructionsHtml":""}}