An API key
6. Music Library
Six fictional tracks. API key required.
Endpoint
GET https://api.mydcts.org/music
Authentication: API key required in the key query parameter. Public demonstration key: classroom123.
Query parameters
| Parameter | Type | Description |
|---|---|---|
key | string | Required. classroom123. Missing or incorrect values return 401. |
delay | integer | Optional. Response delay in milliseconds, 0–2000. Default: 0. |
Response
application/json. A JSON array of 6 records.
| Field | Type | Description |
|---|---|---|
title | string | Track title |
artist | string | Fictional artist |
genre | string | Music genre |
duration | number | Track length in seconds |
Status codes
200 Success · 400 Invalid parameter · 401 Missing or incorrect key · 405 Method not allowed