{"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":"f174a186-2933-4fac-a94d-cde0fc1ccaa8","catalogType":"api","categories":["data"],"dataPlatform":"nba","dataPlatformLogoUrl":"https://api.sh/logos/nba.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Search NBA Player 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 search query submitted, total matching players found, unique NBA player identifier, player full display name, and first NBA season year to build instant search autocomplete, and disambiguate historical namesakes.","descriptionTranslations":{"ar":"ابحث عن لاعبي NBA الحاليين والسابقين بالاسم الكامل أو الجزئي عبر OpenAny REST لتشغيل الإكمال التلقائي وحل معرفات اللاعبين. مرر نص البحث المطلوب مع فلتر الحالة النشطة والترقيم اختياريا لاسترجاع معرفات اللاعبين وسنوات المسيرة والفريق وروابط nba.com بتنسيق JSON.","ja":"OpenAny REST で現役および歴代 NBA 選手を氏名や部分一致で検索し、オートコンプリートや選手 ID 解決に活用できます。必須の検索クエリに任意の現役フラグとページ指定を組み合わせると、選手 ID、在籍期間、チーム名、現役ステータス、nba.com URL を JSON で取得できます。","zh":"通过 OpenAny REST 按完整或部分姓名搜索现役与历史 NBA 球员，适用于自动补全、实体消歧和球员 ID 查询。传入必填搜索词，并可选筛选现役或退役状态及分页参数，即可获取匹配的球员 ID、效力年份、球队名称、现役标记及 nba.com 官方主页链接。"},"effectContentHtml":"","executionMode":"sync","id":"2d571db4-2b0f-4ad8-b212-935e08f0b990","includedContentHtml":"","inputs":[{"description":"Player name or part of it.","location":"query","name":"q","nullable":false,"required":true,"type":"string"},{"description":"`true` active players only, `false` past players only.","location":"query","name":"active","nullable":false,"required":false,"type":"boolean"},{"description":"Page number, from 1.","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"description":"Results per page (1-100, default 25).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"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/nba.png","method":"GET","name":"NBA player search API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eNBA Player Search API\u003c/h2\u003e\n\u003cp\u003eLook up NBA players by name using the required q parameter, plus optional active (true for active only, false for past players only), page and limit (1-100, default 25). Returned players[] provide IDs, career spans, team info and profile URLs ready for downstream player endpoints.\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 (player name or partial name). Optional: active (boolean), page (from 1), limit (1-100, default 25), raw=0, fields, fresh=1.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · NBA player search 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 player IDs from user input\u003c/strong\u003e: Convert natural player names into players[].id values for the Player Profile, Game Log, Awards or Shot Chart APIs.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBuild instant search autocomplete\u003c/strong\u003e: Query partial names with active=true and a small limit to populate fast search dropdowns.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eDisambiguate historical namesakes\u003c/strong\u003e: Use from_year, to_year, team_name and active flags to distinguish players sharing similar names.\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\u003eSearch query submitted\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 found\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUnique NBA 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 display 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\u003eWhether the player is currently active\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].from_year\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFirst NBA season year\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].to_year\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMost recent NBA season year\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].team\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCurrent or last team abbreviation\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eplayers[].url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOfficial nba.com player profile URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext page number, or null on the final page\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/nba/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 \u0026#39;q=lebron james\u0026#39; \\\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/2d571db4-2b0f-4ad8-b212-935e08f0b990\"\u003ePublished NBA 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\u003eCan I search by partial player names?\u003c/h3\u003e\n\u003cp\u003eYes. The required q parameter matches full or partial player names.\u003c/p\u003e\n\u003ch3\u003eHow do I limit results to active or retired players?\u003c/h3\u003e\n\u003cp\u003ePass active=true for active players only, active=false for past players only, or omit active to search both.\u003c/p\u003e\n\u003ch3\u003eHow many results are returned per page?\u003c/h3\u003e\n\u003cp\u003elimit accepts 1 to 100 results per page (default 25); use page and next_page to paginate.\u003c/p\u003e\n\u003ch3\u003eWhich downstream APIs accept the returned player ID?\u003c/h3\u003e\n\u003cp\u003ePass players[].id into the NBA Player Profile, Player Game Log, Player Awards and Shot Chart APIs.\u003c/p\u003e\n\u003ch3\u003eDoes search return career stats or only identity metadata?\u003c/h3\u003e\n\u003cp\u003eSearch returns identity, career span, team and URL metadata; call the NBA Player Profile API for full career stats.\u003c/p\u003e\n\u003ch3\u003eHow do caching and output formats work?\u003c/h3\u003e\n\u003cp\u003eOutput is JSON only. Pass fresh=1 to bypass the 24-hour cache and raw=0 to omit bulky upstream blocks.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/nba/nba-player-index-api\"\u003eNBA Player Index API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/nba/nba-player-profile-and-career-stats-api\"\u003eNBA Player Profile API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/nba/nba-player-game-log-api\"\u003eNBA Player Game Log API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/nba/nba-player-search-api?offering=2d571db4-2b0f-4ad8-b212-935e08f0b990","providerId":"apish","publicPath":"/v1/agent-apis/apish/nba/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":"lebron james","raw":"0"}},"response_body":{"applied_filters":{"active":null},"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:22:28.635Z","next_page":null,"page":1,"players":[{"active":true,"from_year":2003,"id":2544,"last_first":"James, LeBron","name":"LeBron James","played_games":true,"slug":"lebron_james","team":"PHI","team_id":1610612755,"team_name":"Philadelphia 76ers","to_year":2026,"url":"https://www.nba.com/player/2544/lebron_james"}],"q":"lebron james","total":1}}],"seoDescription":"Search NBA Player via REST or MCP powered by Apish. Pay per call, no subscription. Integrate structured JSON into apps and AI agents with one API key.","updatedAt":"2026-12-03T02:55:46.105Z","usageInstructionsHtml":""}}