Getting Started
Installation
Learn how to get started with the deezer-public-api package.
Requirements
- Node.js: version 18.0.0 or higher is required because it uses the native Fetch API.
- TypeScript: version 4.5+ is recommended if you want to leverage full type safety.
Using NPM
Run the following command in your terminal:
Terminal
npm install deezer-public-api
Using PNPM
Terminal
pnpm add deezer-public-api
Using Bun
Terminal
bun add deezer-public-api
Quick Start
Import the library and start searching for your favorite music:
import { DeezerPublicApi } from 'deezer-public-api';
const deezer = new DeezerPublicApi();
const artist = await deezer.artist(27); // Daft Punk
console.log(artist.name); // "Daft Punk"