Options
All
  • Public
  • Public/Protected
  • All
Menu

spotify-web-api-ts

spotify-web-api-ts

An isomorphic TypeScript wrapper for Spotify's Web API
View the docs ยป

npm minzipped size license

Master Workflow codecov semantic-release

Installation

yarn

yarn add spotify-web-api-ts

npm

npm install spotify-web-api-ts

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));
// Array [ "Against All Logic" ]

Generated using TypeDoc