Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

An isomorphic TypeScript wrapper for Spotify's Web API
https://github.com/adamgrieger/spotify-web-api-ts

api isomorphic spotify typescript web wrapper

Last synced: 2 days ago
JSON representation

An isomorphic TypeScript wrapper for Spotify's Web API

Awesome Lists containing this project

README

        




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

```sh
yarn add spotify-web-api
```

### npm

```sh
npm install spotify-web-api
```

## Basic Example

```typescript
import { SpotifyWebApi } from "spotify-web-api";

const spotify = new SpotifyWebApi({ accessToken: "" });

const { artists } = await spotify.albums.getAlbum("1uzfGk9vxMXfaZ2avqwxod");

console.log(artists.map((artist) => artist.name));
// Array [ "Against All Logic" ]
```

### Contributors

- @inferrinizzard
- @adamgrieger