Overview
The ImageLoad endpoint returns the image of a specific object stored in the KoraStats platform. This endpoint is used to retrieve images for the following objects:- Players
- Coaches
- Referees
- Clubs (logos)
The returned image is always in PNG format. If the image cannot be found or the parameters are invalid, the API will return an error response. Typical usage includes:
- Displaying player profile photos
- Showing club logos
- Loading coach images
- Displaying referee avatars
Parameters
Always use
apiAlways use
ImageLoadAPI version. Example:
V2Specifies the type of object whose image should be loaded.Supported values:
playercoachrefereeclub
The unique identifier of the object.Example:
object_id=1Supported Object Types
| Object Type | Description |
|---|---|
| player | Returns the player’s profile image |
| coach | Returns the coach profile image |
| referee | Returns the referee profile image |
| club | Returns the club logo |
Club Image Logic
When theobject_type is set to club, the system first loads the team record using the provided object_id.
The club logo is then retrieved using the club ID associated with that team.
Example internal process: Team ID → Team Record → Club ID → Club Logo
Example Request
Response
The API returns binary image data.Response Headers
Error Responses
Missing Object Type
Returned when theobject_type parameter is not provided.
Example Response
Missing Object ID
Returned when theobject_id parameter is not provided.
Example Response
Invalid Object Type
Returned when the providedobject_type is not supported.
Example