Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

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
      }
    }
  }
}
© 2023 Gatsby, Inc.