GET
/artist/albumsReturns the discography for an artist. Pass their name or internal ID. Good for building discography views or browsing a full catalogue.
Rate limit
60 req/min
Caching
Cached in the internal database per artist for 1 hour.
Authentication
Send a
User-Agent header containing a contact email. See authentication.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| artist | string | optional | Artist name. Needed if you are not passing an id. |
| id | string | optional | Internal artist ID from the track/info or artist/info response. Faster than a name lookup. |
| limit | integer | optional | How many albums to return. Between 1 and 100. Defaults to 25. |
Request
curl 'https://api.synkradio.co.uk/artist/albums' \
-H 'User-Agent: [email protected]'Try it
GETTry it
Sends a real requesthttps://api.synkradio.co.uk/artist/albums?artist=Daft%20PunkResponse
200 application/json
[
{
"id": 45442201,
"title": "Glue",
"cover": "https://api.synkradio.co.uk/cover?artist=Bicep&title=Glue",
"releaseDate": "2017-09-01",
"trackCount": 1,
"recordType": "single"
},
{
"id": 13761421,
"title": "Bicep",
"cover": "https://api.synkradio.co.uk/cover?artist=Bicep&title=Bicep",
"releaseDate": "2017-09-01",
"trackCount": 12,
"recordType": "album"
}
]