Query parameters

  • page integer

    Minimum value is 1. Default value is 1.

  • limit integer

    Minimum value is 1, maximum value is 100. Default value is 20.

  • q string

    Fulltext vyhledávání v názvu/biu

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data array
  • 400 application/json

    Chyba v požadavku klienta

    Hide response attributes Show response attributes object
    • code string
    • message string
  • 500 application/json

    Chyba serveru

    Hide response attributes Show response attributes object
    • code string
    • message string
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ý"
}