Skip to main content

Search Clubs

curl -X GET "https://your-domain.com/api/clubs/search?keyword=manchester" \
  -H "X-API-Key: your-api-key-here"
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

keyword
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.
id
integer
Unique identifier for the club
name
string
Full name of the club
slug
string
URL-friendly slug for the club
URL to the club’s logo image
[
  {
    "id": 1,
    "name": "Manchester United",
    "slug": "manchester-united-kits",
    "logo": "https://www.footballkitarchive.com/images/logos/clubs/manchester-united.png"
  },
  {
    "id": 2,
    "name": "Manchester City",
    "slug": "manchester-city-kits",
    "logo": "https://www.footballkitarchive.com/images/logos/clubs/manchester-city.png"
  }
]

Get Club by ID

curl -X GET "https://your-domain.com/api/clubs/1" \
  -H "X-API-Key: your-api-key-here"
Retrieve detailed information about a specific club by its ID.

Path Parameters

club_id
integer
required
The unique identifier of the club

Response

id
integer
Unique identifier for the club
name
string
Full name of the club
slug
string
URL-friendly slug for the club
logo
string
URL to the club’s logo image
{
  "id": 1,
  "name": "Manchester United",
  "slug": "manchester-united-kits",
  "logo": "https://www.footballkitarchive.com/images/logos/clubs/manchester-united.png"
}

Get Club Seasons

curl -X GET "https://your-domain.com/api/seasons?id=1" \
  -H "X-API-Key: your-api-key-here"
Retrieve all available seasons for a specific club. Returns seasons sorted by year in descending order (most recent first).

Query Parameters

id
integer
required
Club ID to retrieve seasons for

Response

Returns an array of seasons for the club.
id
integer
Unique identifier for the season
year
string
Season year in format “YYYY” or “YYYY-YY” (e.g., “2024” or “2024-25”)
[
  {
    "id": 123,
    "year": "2024-25"
  },
  {
    "id": 122,
    "year": "2023-24"
  },
  {
    "id": 121,
    "year": "2022-23"
  }
]
This endpoint is cached for optimal performance. Results are sorted by year in descending order.

Get Club Kits

curl -X GET "https://your-domain.com/api/clubs/1/kits?season=123&page=1&page_size=20" \
  -H "X-API-Key: your-api-key-here"
Retrieve all kits for a specific club. This is a nested resource endpoint following REST conventions.

Path Parameters

club_id
integer
required
The unique identifier of the club

Query Parameters

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

Response

Returns a paginated array of kits.
id
integer
Unique identifier for the kit
name
string
Full name of the kit (e.g., “Manchester United 2024-25 Home Kit”)
main_img_url
string
URL to the main image of the kit
[
  {
    "id": 1001,
    "name": "Manchester United 2024-25 Home Kit",
    "main_img_url": "https://www.footballkitarchive.com/images/kits/manchester-united-2024-25-home.jpg"
  },
  {
    "id": 1002,
    "name": "Manchester United 2024-25 Away Kit",
    "main_img_url": "https://www.footballkitarchive.com/images/kits/manchester-united-2024-25-away.jpg"
  }
]
For more flexible filtering options, use /api/kits?club={club_id} instead, which supports additional filters like color, design, and country.

Get Random Clubs

curl -X GET "https://your-domain.com/api/random-clubs/?page=1&page_size=20" \
  -H "X-API-Key: your-api-key-here"
Retrieve a paginated list of random clubs with kit counts.

Query Parameters

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

Response

clubs
array
Array of club objects
clubs[].id
integer
Unique identifier for the club
clubs[].name
string
Full name of the club
clubs[].slug
string
URL-friendly slug for the club
URL to the club’s logo image
clubs[].country
string
ISO 2-letter country code (e.g., “GB”, “ES”, “FR”)
clubs[].kit_count
integer
Number of kits available for this club
pagination
object
Pagination information
pagination.current_page
integer
Current page number
pagination.total_pages
integer
Total number of pages
pagination.total_count
integer
Total number of clubs
pagination.has_next
boolean
Whether there is a next page
pagination.has_previous
boolean
Whether there is a previous page
pagination.next_page
integer
Next page number (null if no next page)
pagination.previous_page
integer
Previous page number (null if no previous page)
{
  "clubs": [
    {
      "id": 1,
      "name": "Manchester United",
      "slug": "manchester-united-kits",
      "logo": "https://www.footballkitarchive.com/images/logos/clubs/manchester-united.png",
      "country": "GB",
      "kit_count": 150
    },
    {
      "id": 5,
      "name": "Real Madrid",
      "slug": "real-madrid-kits",
      "logo": "https://www.footballkitarchive.com/images/logos/clubs/real-madrid.png",
      "country": "ES",
      "kit_count": 145
    }
  ],
  "pagination": {
    "current_page": 1,
    "total_pages": 25,
    "total_count": 500,
    "has_next": true,
    "has_previous": false,
    "next_page": 2,
    "previous_page": null
  }
}
Only clubs with logos are included in the results. The default logo is excluded.