This is a simple Express Typescript API which consumes deezer public API
You need the following installed:
node: >14
- Clone this repository
- In your shell/terminal, navigate to
deezer-proxy-api
directory.cd /path/to/deezer-proxy-api
- Install dependencies
npm install
- Create
.env
in root dictory and add the followingPORT:<portnumber> // 8080 default DEEZER_URL=https://api.deezer.com
- Start the server
npm run dev
Here is the hosted version https://deezer-proxy-api.herokuapp.com/api/v1
. The following endpoints are available
enpoint | descriptions | examples |
---|---|---|
/tracks?q= |
Fetch Tracks based on the query params. Use q for general search and (track, artist, label and album) for specific search |
/api/v1/tracks?q=eminem , /api/v1/tracks?track=i need a dollar , /api/v1/tracks?artist=eminem , /api/v1/tracks?artist=eminem&track=track name&album |
/artists/:id |
Fetch an Artist by id |
/api/v1/artists/1 |