• Stars
    star
    266
  • Rank 154,103 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GraphQL schema for Spotify WebAPI — TypeScript / Node.js (v6)

Spotify GraphQL npm version https://david-dm.org/wittydeveloper/spotify-graphql TypeScript

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

Queries

Albums

  • Get an Album
  • Get Several Albums
  • Get an Album's Tracks

Artists

  • Get an Artist
  • Get Several Artists
  • Get an Artist's Albums
  • Get an Artist's Top Tracks
  • Get an Artist's Related Artists

Tracks

  • 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

  • Search for an Item

Playlists

  • Get a List of a User's Playlists
  • Get a List of Current User's Playlists
  • Get a Playlist
  • Get a Playlist's Tracks

Create a Playlist

  • Add Tracks to a Playlist
  • Remove Tracks from a Playlist
  • Reorder or replace a Playlist's Tracks
  • Change a Playlist's Details

User Profiles

  • Get a User's Profile
  • Get Current User's Profile

User Library

  • Get Current User's Saved Tracks
  • Check Current User's Saved Tracks
  • Save Tracks for Current User
  • Remove Tracks for Current User
  • Get Current User's Saved Albums
  • Check Current User's Saved Albums
  • Save Albums for Current User
  • Remove Albums for Current User

Personalization

  • Get User's Top Artists and Tracks

Browse

  • Get a List of New Releases
  • Get a List of Featured Playlists
  • Get a List of Browse Categories
  • Get a Single Browse Category
  • Get a Category's playlists
  • Get Recommendations Based on Seeds
  • Get Available Genre Seeds

Follow

  • Get Followed Artists
  • Check if Current User Follows Artists or Users
  • Follow Artists or Users
  • Unfollow Artists or Users
  • Check if Users Follow a Playlist
  • Follow a Playlist
  • Unfollow a Playlist

Player

  • Get the Current User's Recently Played Tracks
  • Get Information About The User's Current Playback
  • Transfer a User's Playback
  • Get a User's Available Devices
  • Get the User's Currently Playing Track
  • Start/Resume a User's Playback
  • Pause a User's Playback
  • Skip User's Playback To Next Track
  • Skip User's Playback To Previous Track
  • Seek To Position In Currently Playing Track
  • Set Repeat Mode On User's Playback
  • Set Volume For User's Playback
  • Toggle Shuffle For User's Playback

More Repositories

1

graphql-to-json-schema

GraphQL Schema to JSON Schema
TypeScript
196
star
2

react-apollo-form

Build React forms based on GraphQL APIs.
TypeScript
193
star
3

attr_bitwise

Bitwise attribute for ruby class and Rails model
Ruby
68
star
4

spotify-api-graphql-console

Spotify Web API GraphQL console.
TypeScript
30
star
5

spotify-graphql-examples

Examples in TypeScript and Node.js (v6) for spotify-graphql NPM package
27
star
6

graphql-mesh-docs-first-gateway

Example API services for https://www.graphql-mesh.com/docs
TypeScript
21
star
7

typescript-npm-module-bootstrap

TypeScript NPM module bootstrap
JavaScript
17
star
8

functional-json-schema

Build a JSON Schema with functions
TypeScript
11
star
9

spotify-fetch-my-playlists

Allow you to get a JSON dump of your Spotify playlists
TypeScript
7
star
10

algolia-graphql-schema

Generate a GraphQL Schema from an Algolia index
JavaScript
6
star
11

loopback-talk-chat-app

Demo of this talk https://slides.com/charlypoly-1/loopback
JavaScript
4
star
12

generator-yui3

YUI3 project scaffolder
JavaScript
4
star
13

cosmiconfig-typescript-swc-loader

Fast TypeScript config file handler for cosmiconfig using SWC
TypeScript
3
star
14

debugging-decorators

TypeScript useful debugging decorators
TypeScript
2
star
15

generic-graphql

Generic GraphQL Wrapper for Rest API
2
star
16

mood

Mood tracker, vision clearer
Ruby
2
star
17

redux-hydrate

Hydrate framework for Redux
2
star
18

til.engineering

💡 today i learned - web software engineering
JavaScript
2
star
19

spotify-oauth-workflow

Spotify Web API Express Server (with scopes selection step)
HTML
2
star
20

checkboxtable

1
star
21

insults_filter_service

Insults filter service
Ruby
1
star
22

Lucien

Your music theory trainer
TypeScript
1
star
23

spotify-backup

1
star