Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jedidiah/gatsby-source-soundcloud

Gatsby source to fetch data from the SoundCloud API
https://github.com/jedidiah/gatsby-source-soundcloud

gatsby-source gatsbyjs soundcloud

Last synced: 3 months ago
JSON representation

Gatsby source to fetch data from the SoundCloud API

Awesome Lists containing this project

README

        

# gatsby-source-soundcloud

A [gatsby](https://www.gatsbyjs.org/) 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

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

## Examples of how to query:

Get all the playlists:

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

Get the title and description of all tracks:

```graphql
{
allSoundcloudtrack {
edges {
node {
title
description
}
}
}
}
```