Deezer icon

Deezer

Access public song data via the Deezer API

Overview

This node integrates with the Deezer API to retrieve user information. Specifically, for the User resource and Get operation, it allows you to either fetch details about the currently authenticated user or a specific user by their ID. This is useful in scenarios where you want to access user profile data, such as displaying user info in an app, personalizing content based on the logged-in user, or managing user-related workflows.

Practical examples:

  • Fetching your own Deezer user profile to display personalized music recommendations.
  • Retrieving another user's public profile information by their user ID for social or analytics purposes.

Properties

Name Meaning
Return My User Boolean option to choose whether to return the logged-in user's data (true) or a specific user (false).
User ID The unique identifier of the user to retrieve when "Return My User" is set to false.
Return All (Not applicable for this operation)
Offset (Not applicable for this operation)
Limit (Not applicable for this operation)

Note: For the User - Get operation, only "Return My User" and "User ID" are relevant input properties. The other pagination-related properties ("Return All", "Offset", "Limit") do not apply here.

Output

The node outputs JSON data representing the user object retrieved from Deezer. This typically includes user profile details such as user ID, name, link, picture URLs, country, and other public metadata available via the Deezer API.

The output is structured as an array of JSON objects, each corresponding to one user record (usually just one in this case). There is no binary data output for this operation.

Example output snippet (simplified):

{
  "id": 1234567,
  "name": "John Doe",
  "link": "https://www.deezer.com/profile/1234567",
  "picture": "https://cdns-images.dzcdn.net/images/user/abc123.jpg",
  "country": "US"
}

Dependencies

  • Requires an OAuth2 API credential for Deezer to authenticate requests.
  • The node uses the Deezer API endpoint https://api.deezer.com.
  • Proper configuration of the OAuth2 credentials in n8n is necessary to obtain a valid access token.

Troubleshooting

  • Invalid or expired OAuth token: If authentication fails, ensure that the OAuth2 credentials are correctly configured and refreshed.
  • User ID not found: When specifying a user ID, if the user does not exist or is private, the API may return an error or empty response.
  • Network issues: Connectivity problems can cause request failures; verify network access to Deezer API endpoints.
  • Permission errors: Some user data might be restricted depending on the authenticated user's permissions.

Common error messages:

  • "error": "Invalid access token" — Check OAuth2 credentials and refresh tokens.
  • "error": "User not found" — Verify the user ID is correct and accessible.

Links and References

Discussion