Skip to main content
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.
Finding correct entity IDs. /search is the canonical way to discover IDs when migrating from another provider, or when an image / data endpoint returns 404 for an ID you thought was valid. Three quick examples:
For common names like “Barcelona” or “Manchester”, multiple matches will be returned — disambiguate by sorting on popularityRank (descending) or by filtering on countryId. For a full migration playbook see the One-Time ID Migration Guide; for tournament ID semantics see Canonical IDs.

Parameters

Parameters like appTypeId, langId, timezoneName, and userCountryId are auto-resolved based on request context.

Request Examples

Typeahead Implementation: For autocomplete/typeahead search, debounce user input by 300ms and only trigger searches when the query is 2+ characters. This reduces API calls and provides a smoother user experience.

Response

Response Fields

Root Object

Competitor Object

Competition Object

Athlete Object

Country Object

Filter Options

Use Cases

Team Lookup

Error Responses

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

query
string
required

Search query

Example:

"Lakers"

filter
enum<string>
default:all

Filter type: all, competitions, competitors, athletes

Available options:
all,
competitions,
competitors,
athletes

Response

200

Search results retrieved successfully

Last modified on June 29, 2026