GraphQL schema for Spotify Web API — TypeScript / Node.js (v6)
Try with the interactive console !
See spotify-graphql-examples for more examples
import SpotifyGraphQLClient from '../src/spotify-graphql';
import config from './config';
SpotifyGraphQLClient(config).query(`
{
track(id: "3W2ZcrRsInZbjWylOi6KhZ") {
name
artists {
name
}
}
}
`).then(result => {
console.log(JSON.stringify(result));
});
// Print :
// {
// "data": {
// "track": {
// "name": "You & Me - Flume Remix",
// "artists": [
// {
// "name": "Disclosure"
// },
// {
// "name": "Eliza Doolittle"
// },
// {
// "name": "Flume"
// }
// ]
// }
// }
// }
- Get an Album ✅
- Get Several Albums ✅
- Get an Album's Tracks ✅
- Get an Artist ✅
- Get Several Artists ✅
- Get an Artist's Albums ✅
- Get an Artist's Top Tracks ✅
- Get an Artist's Related Artists ✅
- Get a Track ✅
- Get Several Tracks ✅
- Get Audio Features for a Track ✅
- Get Audio Features for Several Tracks ✅
- Get Audio Analysis for a Track ❌
- Search for an Item ✅
- Get a List of a User's Playlists ✅
- Get a List of Current User's Playlists ✅
- Get a Playlist ✅
- Get a Playlist's Tracks ✅
- Add Tracks to a Playlist ❌
- Remove Tracks from a Playlist ❌
- Reorder or replace a Playlist's Tracks ❌
- Change a Playlist's Details ❌