Actions43
- Album Actions
- Artist Actions
- Chart Actions
- Playlist Actions
- Podcast Actions
- Track Actions
- User Actions
Overview
This node integrates with the Deezer API to retrieve public music data. Specifically, for the Artist resource and the Get Top Tracks operation, it fetches the top tracks of a specified artist by their ID. This is useful when you want to display or process an artist's most popular songs, such as in music recommendation systems, playlist generation, or analytics dashboards.
Practical examples:
- Fetching the top tracks of a favorite artist to create a personalized playlist.
- Displaying trending songs from a specific artist on a music blog or app.
- Analyzing which tracks are most popular for an artist for marketing insights.
Properties
| Name | Meaning |
|---|---|
| Resource ID | The unique identifier of the artist whose top tracks you want to retrieve (string). |
| Return All | Whether to return all available top tracks or limit the number of results (boolean). |
| Offset | The starting position in the list of top tracks from which to begin returning results (number, minimum 0). Only used if Return All is false. |
| Limit | The maximum number of top tracks to return (number, minimum 1). Only used if Return All is false. |
Output
The node outputs a JSON array where each item represents a track object containing details about one of the artist’s top tracks. Each track object typically includes metadata such as track title, duration, album info, and popularity metrics as provided by the Deezer API.
If binary data were involved (e.g., audio files), it would be summarized here, but this node only returns JSON metadata about tracks.
Dependencies
- Requires an OAuth2 API credential for Deezer to authenticate requests.
- Uses the Deezer public API endpoint
https://api.deezer.com. - Requires n8n environment configured with the appropriate Deezer OAuth2 credentials.
Troubleshooting
Common issues:
- Invalid or missing artist ID will cause the API request to fail.
- Expired or invalid OAuth2 token may result in authentication errors.
- Requesting too many items without setting "Return All" properly might lead to incomplete data.
Error messages:
- Errors returned from the Deezer API (e.g., "Invalid access token", "Resource not found") will be surfaced.
- Network or connectivity issues may cause request failures.
Resolutions:
- Verify the artist ID is correct and exists on Deezer.
- Ensure the OAuth2 credentials are valid and refreshed.
- Use the "Return All" option carefully to avoid pagination issues.