Skip to main content

Search Clubs

Search for clubs using a keyword. The search is performed on both club names and slugs using trigram word similarity for fuzzy matching.

Query Parameters

string
required
Keyword to search for in club names and slugs. Supports accent-insensitive search (e.g., “Málaga” and “Malaga” return the same results).

Response

Returns an array of up to 10 matching clubs, ordered by ID.
integer
Unique identifier for the club
string
Full name of the club
string
URL-friendly slug for the club
URL to the club’s logo image

Get Club by ID

Retrieve detailed information about a specific club by its ID.

Path Parameters

integer
required
The unique identifier of the club

Response

integer
Unique identifier for the club
string
Full name of the club
string
URL-friendly slug for the club
string
URL to the club’s logo image

Get Club Seasons

Retrieve all available seasons for a specific club. Returns seasons sorted by year in descending order (most recent first).

Query Parameters

integer
required
Club ID to retrieve seasons for

Response

Returns an array of seasons for the club.
integer
Unique identifier for the season
string
Season year in format “YYYY” or “YYYY-YY” (e.g., “2024” or “2024-25”)
This endpoint is cached for optimal performance. Results are sorted by year in descending order.

Get Club Kits

Retrieve all kits for a specific club. This is a nested resource endpoint following REST conventions.

Path Parameters

integer
required
The unique identifier of the club

Query Parameters

integer
Filter kits by season ID (optional)
integer
default:"1"
Page number for pagination (minimum: 1)
integer
default:"20"
Number of items per page (minimum: 1, maximum: 100)

Response

Returns a paginated array of kits.
integer
Unique identifier for the kit
string
Full name of the kit (e.g., “Manchester United 2024-25 Home Kit”)
string
URL to the main image of the kit
For more flexible filtering options, use /api/kits?club={club_id} instead, which supports additional filters like color, design, and country.

Get Random Clubs

Retrieve a paginated list of random clubs with kit counts.

Query Parameters

integer
default:"1"
Page number for pagination (minimum: 1)
integer
default:"20"
Number of items per page (minimum: 1, maximum: 100)

Response

array
Array of club objects
integer
Unique identifier for the club
string
Full name of the club
string
URL-friendly slug for the club
URL to the club’s logo image
string
ISO 2-letter country code (e.g., “GB”, “ES”, “FR”)
integer
Number of kits available for this club
object
Pagination information
integer
Current page number
integer
Total number of pages
integer
Total number of clubs
boolean
Whether there is a next page
boolean
Whether there is a previous page
integer
Next page number (null if no next page)
integer
Previous page number (null if no previous page)
Only clubs with logos are included in the results. The default logo is excluded.