Football V1
Search
Search for competitions, competitors, and athletes by name
GET
Search
Endpoint
Description
Search across competitions, competitors (teams), and athletes (players) by name. This is the primary endpoint for implementing search functionality in your application, supporting typeahead/autocomplete experiences.Built-in TTL: 60 seconds. Results are cached for efficient repeated queries.
Parameters
| 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) |
Parameters like
appTypeId, langId, timezoneName, and userCountryId are auto-resolved based on request context.Request Examples
Response
Response Fields
Root Object
| 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) |
Competitor Object
| 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 |
Competition Object
| 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 |
Athlete Object
| 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 |
Country Object
| 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 Options
| 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 |
Use Cases
Typeahead Search
Team Lookup
Player Search
Error Responses
| Status | Description |
|---|---|
| 400 | Missing required query parameter |
| 401 | Invalid or missing API key |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Authorizations
Your SportsAPI Pro API key
Query Parameters
Search query
Example:
"Lakers"
Filter type: all, competitions, competitors, athletes
Available options:
all, competitions, competitors, athletes Response
200
Search results retrieved successfully
Last modified on April 24, 2026
Search