GET
/artists
curl \
--request GET 'https://api.mstonjek.cz/v1/artists' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "8d3f7e7a-6a6b-4b99-9b52-6f9d7d2a0a11",
"name": "Daft Punk",
"genres": [
"electronic",
"house"
],
"userId": "user_123",
"country": "FR",
"popularity": 92
},
{
"id": "4f0b3c67-9a42-4c51-a2b0-08e6e2e1c001",
"name": "The Weeknd",
"genres": [
"pop",
"r&b"
],
"userId": "user_456",
"country": "CA",
"popularity": 95
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 132
}
}
Response examples (400)
{
"code": "BAD_REQUEST",
"message": "Neplatný formát dat v těle požadavku."
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Server momentálně nedostupný"
}