Skip to main content
View plugin on GitHub
See starters using this

gatsby-source-soundcloud

A gatsby source plugin for fetching all the tracks and playlists (sets) for a SoundCloud user.

Learn more about Gatsby plugins and how to use them here: https://www.gatsbyjs.org/docs/plugins/

Install

npm install --save gatsby-source-soundcloud

gatsby-config.js

plugins: [
  {
    resolve: `gatsby-source-soundcloud`,
    options: {
      userID: '<<SoundCloud UserID eg. 6058227 >>',
      clientID: '<< Add your SoundCloud client_id here>>'
    },
  },
  ...
]

Examples of how to query:

Get all the playlists:

{
  allSoundcloudplaylist {
    edges {
      node {
        title
        description
        tracks
      }
    }
  }
}

Get the title and description of all tracks:

{
  allSoundcloudtrack {
    edges {
      node {
        title
        description
      }
    }
  }
}