An isomorphic TypeScript wrapper for Spotify's Web API
View the docs »
yarn add spotify-web-api
npm install spotify-web-api
import { SpotifyWebApi } from "spotify-web-api";
const spotify = new SpotifyWebApi({ accessToken: "<YOUR_ACCESS_TOKEN_HERE>" });
const { artists } = await spotify.albums.getAlbum("1uzfGk9vxMXfaZ2avqwxod");
console.log(artists.map((artist) => artist.name));
// Array [ "Against All Logic" ]
- @inferrinizzard
- @adamgrieger