spotify-web-api-ts-edge
An isomorphic TypeScript wrapper for Spotify's Web API that can run on the edge
View the docs »
Installation
pnpm
pnpm add spotify-web-api-ts-edge
yarn
yarn add spotify-web-api-ts-edge
npm
npm install spotify-web-api-ts-edge
Basic Example
import { SpotifyWebApi } from 'spotify-web-api-ts';
const spotify = new SpotifyWebApi({ accessToken: '<YOUR_ACCESS_TOKEN_HERE>' });
const { artists } = await spotify.albums.getAlbum('1uzfGk9vxMXfaZ2avqwxod');
console.log(artists.map(artist => artist.name));