GET
/artist/top-tracksReturns the top tracks for an artist. Standalone version of the topTracks field in /artist/info, in case you just need the tracks without pulling the full artist payload.
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 tracks to return. Between 1 and 50. Defaults to 10. |
Request
curl 'https://api.synkradio.co.uk/artist/top-tracks' \
-H 'User-Agent: [email protected]'Try it
GETTry it
Sends a real requesthttps://api.synkradio.co.uk/artist/top-tracks?artist=Daft%20PunkResponse
200 application/json
[
{
"id": 389034231,
"name": "Glue",
"album": "Glue",
"albumId": 45442201,
"durationMs": 269000,
"explicit": false,
"isrc": "GB5KW1700100",
"cover": "https://api.synkradio.co.uk/cover?artist=Bicep&title=Glue"
},
{
"id": 1080089202,
"name": "Apricots",
"album": "Apricots",
"albumId": 173244772,
"durationMs": 246000,
"explicit": false,
"isrc": null,
"cover": "https://api.synkradio.co.uk/cover?artist=Bicep&title=Apricots"
}
]