Artist APIs Documentation

The GeneralController handles getting information about media objects. This documentation covers the Artists related endpoints.

Controller Route: /api

All routes within the GeneralController are prefixed by /api.


Summary of Endpoints

Endpoint Description Authorization
/api/artist Fetch the details of a specific artist by its ID. Admin, User, Pass
/api/artists Fetch details of multiple artist using a list of album IDs. Admin, User, Pass
/api/artist/tracks Fetch a paginated list of tracks from a specific artist. Admin, User, Pass
/api/artist/releases Fetch a paginated list of album release from a specific artist. Admin, User, Pass
/api/artist/seen-on Fetch a paginated list of albums the artist has contributed to. Admin, User, Pass
/api/artist/connections Fetch a paginated list of artists that have collaborated with this artist. Admin, User, Pass

Get Artist Details

Fetch the details of a specific artist by their ID.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artist?id=66bc9aadab7ba419497e7088" \
             -H "Authorization: Bearer <JWT-token>"
        

Get Multiple Artists

Fetch details of multiple artists using a list of artist IDs.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artists?ids=66bc9aadab7ba419497e7088&ids=66bc9aafab7ba419497e7bcf" \
             -H "Authorization: Bearer <JWT-token>"
        

Get Artist Tracks

Fetch a paginated list of tracks from a specific artist.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artist/tracks?id=66bc9aafab7ba419497e7bcf&page=0&count=100" \
             -H "Authorization: Bearer <JWT-token>"
        

Get Artist Releases

Fetch a paginated list of album releases from a specific artist.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artist/releases?id=66bc9aafab7ba419497e7bcf&page=0&count=15" \
             -H "Authorization: Bearer <JWT-token>"
        

Get Artist Seen-On Albums

Fetch a paginated list of albums where the artist has contributed (seen-on).

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artist/seen-on?id=66bc9aafab7ba419497e7bcf&page=0&count=300" \
             -H "Authorization: Bearer <JWT-token>"
        

Get Artist Connections

Fetch a paginated list of connected artists for a specific artist.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/artist/connections?id=66bc9aafab7ba419497e7bcf&page=0&count=100" \
             -H "Authorization: Bearer <JWT-token>"