Overview
Search for basketball entities including competitions, teams (competitors), and players (athletes) by name.
Query Parameters
Search query (e.g., βLakersβ, βLeBronβ)
Filter type: all, competitions, competitors, athletes
Code Examples
curl -X GET "https://v1.basketball.sportsapipro.com/search?query=Lakers" \
-H "x-api-key: YOUR_API_KEY"
Filter by Type
# Search only for players
curl -X GET "https://v1.basketball.sportsapipro.com/search?query=LeBron&filter=athletes" \
-H "x-api-key: YOUR_API_KEY"
Response Structure
Use the filter parameter to narrow results to a specific entity type for faster, more focused searches.
Your SportsAPI Pro API key
Filter type: all, competitions, competitors, athletes
Available options:
all,
competitions,
competitors,
athletes
Search results retrieved successfully