adamgrieger / spotify-web-api-ts

An isomorphic TypeScript wrapper for Spotify's Web API

Home Page:https://adamgrieger.github.io/spotify-web-api-ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-web-api

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

npm

npm install spotify-web-api

Basic Example

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" ]

Contributors

  • @inferrinizzard
  • @adamgrieger

About

An isomorphic TypeScript wrapper for Spotify's Web API

https://adamgrieger.github.io/spotify-web-api-ts/

License:MIT License


Languages

Language:TypeScript 99.9%Language:Shell 0.1%Language:JavaScript 0.0%