Welcome to FootyCollect API
The FootyCollect API provides programmatic access to the FootyCollect platform for managing football memorabilia collections. Built with Django REST Framework, the API follows REST principles and returns JSON-formatted responses.Base URLs
FootyCollect exposes two distinct API endpoints:| Endpoint | Purpose | Description |
|---|---|---|
/api/ | Internal Server APIs | Django REST Framework endpoints for user management and internal operations |
/fkapi/ | External API Proxy | Proxy endpoints for Football Kit Archive integration via FKAPI |
All API endpoints use HTTPS in production. Development environments may use HTTP.
Response Format
All API responses are returned in JSON format with appropriate HTTP status codes:HTTP Status Codes
The API uses standard HTTP status codes:| Code | Description |
|---|---|
200 | Successful request |
201 | Resource created successfully |
400 | Bad request - invalid parameters |
401 | Unauthorized - authentication required |
403 | Forbidden - insufficient permissions |
404 | Resource not found |
429 | Too many requests - rate limit exceeded |
500 | Internal server error |
503 | Service unavailable |
API Documentation
Interactive API documentation is available during development:Available Endpoints
Internal API (/api/)
The internal API provides access to:
Users
GET /api/users/- List users (filtered to authenticated user)GET /api/users/{username}/- Retrieve user detailsPUT /api/users/{username}/- Update userPATCH /api/users/{username}/- Partial update userGET /api/users/me/- Get current authenticated user
External API Proxy (/fkapi/)
The FKAPI proxy endpoints provide access to Football Kit Archive data:
Clubs
GET /fkapi/clubs/search/?keyword=<query>- Search clubsGET /fkapi/clubs/{club_id}/seasons/- Get club seasonsGET /fkapi/clubs/{club_id}/seasons/{season_id}/kits/- Get club kits for season
Kits
GET /fkapi/kits/search/?keyword=<query>- Search kitsGET /fkapi/kits/{kit_id}/- Get kit details
Other Resources
GET /fkapi/brands/search/?keyword=<query>- Search brandsGET /fkapi/competitions/search/?keyword=<query>- Search competitionsGET /fkapi/seasons/search/?keyword=<query>- Search seasonsGET /fkapi/filters/?filter_type=<type>- Get filter options with counts
FKAPI endpoints require the external FKAPI service to be running. See the FKAPI repository for setup instructions.
OpenAPI Specification
The API is documented using OpenAPI 3.0 specification, generated by drf-spectacular. The schema includes:- Request/response schemas
- Authentication requirements
- Endpoint descriptions
- Example requests and responses
- Data validation rules
Accessing the Schema
- Browser
- curl
- Python
Navigate to
/api/schema/ to download the OpenAPI schema JSON file.Getting Started
To start using the API:- Obtain an authentication token - See Authentication
- Review rate limits - See Rate Limiting
- Make your first request - Try the
/api/users/me/endpoint
Quick Example
API Versioning
The current API version is v1.0.0. Future breaking changes will be introduced in new versions with appropriate deprecation notices.Support
For API issues or questions:- GitHub Issues: FootyCollect Issues
- Documentation: Review the architecture docs in the repository