NBA
Fuzzy search NBA players by name
Trigram-similarity (pg_trgm) ranking over full_name. Returns up to limit players whose name has similarity > 0.2 to q, ordered by similarity DESC. Designed for autocomplete / type-ahead UIs where a substring or close-spelling match should outrank exact matches that come alphabetically later.
get/api/v1/nba/players/search
Request
- Base URL: https://api.stat-api.com
- URL: https://api.stat-api.com/api/v1/nba/players/search
- Auth: HTTP bearer
Query parameters
qstring required
Search query — matches against full_name (case-insensitive).
limitinteger
Max results to return. Default 10; max 50.
Response
Fuzzy search NBA players by name
Example response
[
{
"birth_city": "Sombor",
"birth_country": "Serbia",
"birth_date": "1995-02-19",
"display_fi_last": "N. Jokić",
"display_last_comma_first": "Jokić, Nikola",
"dleague_flag": "00",
"draft_number": "41",
"draft_round": "2",
"draft_year": "2014",
"experience": 10,
"first_name": "Nikola",
"from_year": "2015",
"full_name": "Nikola Jokić",
"full_position_list": "Guard-Forward",
"games_played_flag": "Y",
"height": 83,
"injury_since": "2026-04-12T18:30:00Z",
"injury_status": "OUT",
"jersey": "15",
"last_affiliation": "Mega Basket / Serbia",
"last_name": "Jokić",
"league_player_id": 203999,
"league_slug": "nikola-jokic",
"nba_flag": "Y",
"playercode": "jokic_nikola",
"position_category": "Center",
"primary_position": "C",
"roster_status": "active",
"school": "Mega Basket",
"team_abbreviation": "DEN",
"team_city": "Denver",
"team_code": "nuggets",
"team_id": 12,
"team_name": "Nuggets",
"to_year": "2025",
"weight": 284
}
]Changes
No recorded changes to this operation across all 4 revisions of this API.