Search for competitions, competitors, and athletes by name
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | Search query (minimum 2 characters recommended) |
filter | string | No | all | Filter type: all, competitions, competitors, athletes |
sports | number | No | - | Sport ID to filter results (1 = Football) |
appTypeId, langId, timezoneName, and userCountryId are auto-resolved by the upstream service based on request context.| Field | Type | Description |
|---|---|---|
lastUpdateId | number | Internal versioning ID for incremental updates |
requestedUpdateId | number | Requested update ID (-1 = latest) |
ttl | number | Cache TTL in seconds (60 for this endpoint) |
sports | array | Sports definitions for matched entities |
countries | array | Countries referenced by matched entities |
competitions | array | Matching competitions (when filter includes) |
competitors | array | Matching competitors/teams (when filter includes) |
athletes | array | Matching athletes/players (when filter includes) |
| Field | Type | Description |
|---|---|---|
id | number | Unique competitor ID |
countryId | number | Country ID |
sportId | number | Sport ID (1 = Football) |
name | string | Full team name |
shortName | string | Short display name |
symbolicName | string | 3-letter code (e.g., βBARβ) |
nameForURL | string | URL-friendly slug |
type | number | Type (1=club, 2=national team) |
popularityRank | number | Popularity ranking (higher = more popular) |
imageVersion | number | Logo image version for cache busting |
color | string | Primary brand color (hex) |
awayColor | string | Away kit color (hex) |
mainCompetitionId | number | Primary competition ID |
hasSquad | boolean | Whether squad data is available |
hasTransfers | boolean | Whether transfer data is available |
| Field | Type | Description |
|---|---|---|
id | number | Unique competition ID |
countryId | number | Country ID |
sportId | number | Sport ID |
name | string | Full competition name |
shortName | string | Short display name |
hasStandings | boolean | Whether standings are available |
hasLiveStandings | boolean | Whether live standings are supported |
hasBrackets | boolean | Whether bracket view is available |
nameForURL | string | URL-friendly slug |
popularityRank | number | Popularity ranking |
imageVersion | number | Logo image version |
color | string | Brand color (hex) |
isTop | boolean | Whether this is a top/featured competition |
| Field | Type | Description |
|---|---|---|
id | number | Unique athlete ID |
name | string | Full player name |
shortName | string | Short display name |
nameForURL | string | URL-friendly slug |
countryId | number | Nationality country ID |
sportId | number | Sport ID |
position | string | Playing position |
imageVersion | number | Photo image version |
| Field | Type | Description |
|---|---|---|
id | number | Country ID |
name | string | Country name |
nameForURL | string | URL-friendly name |
imageVersion | number | Flag image version |
isInternational | boolean | Whether international (e.g., Europe, World) |
| Filter Value | Description |
|---|---|
all | Returns matches from all entity types |
competitions | Only returns matching competitions |
competitors | Only returns matching teams/clubs |
athletes | Only returns matching players |
| Status | Description |
|---|---|
| 400 | Missing required query parameter |
| 401 | Invalid or missing API key |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Your SportsAPI Pro API key
Search query
"Lakers"
Filter type: all, competitions, competitors, athletes
all, competitions, competitors, athletes Search results retrieved successfully