deezer-public-api

This is Nodejs wrapper for the Deezer Public API that return promises.

View the Project on GitHub zaosoula/deezer-public-api

Deezer Public API (v2)

Coverage

A modern, modular, and type-safe Node.js wrapper for the Deezer Public API.

Features

Installation

npm install deezer-public-api

Usage

ESM (Modern)

import { DeezerPublicApi } from 'deezer-public-api';
const deezer = new DeezerPublicApi();

// Using the Fluent Search Builder
const query = deezer.search.builder('Daft Punk')
  .album('Discovery')
  .build();

const results = await deezer.search.artist(query);

// Easy Pagination
if (results.next) {
  const nextBatch = await results.next();
}

CommonJS (Legacy)

const { DeezerPublicApi } = require('deezer-public-api');
const deezer = new DeezerPublicApi();
// ...

Available methods

Album
Artist
Chart
Comment
Editorial
Episode
Genre
Infos
Options
Playlist
Podcast
Radio
Track
User