Skip to content

πŸŽ™ Source plugin for getting a podcast show and its episodes from Spreaker API

Notifications You must be signed in to change notification settings

daniel-seoane/gatsby-source-spreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

gatsby-source-spreaker

πŸŽ™ Source plugin for getting a podcast show and its episodes from the Spreaker API

Usage

Install the plugin

npm install --save gatsby-source-spreaker

or

yarn add gatsby-source-spreaker

Add the plugin to your gatsby-config.js

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-spreaker",
      options: {
        // See options section for more information
        showId: 1433865,
      },
    },
  ],
};

Options

Key Description
showId (required) Id of the podcast show. You can get it from the url (www.spreaker.com/show/1433865)

Example of query

query ShowWithEpisodes {
   spreakerShow {
      title
      description
      image {
        childImageSharp {
          fixed(width: 300, height: 300) {
            ...GatsbyImageSharpFixed
          }
        }
      }
      episodes {
        title
        episode_id
        published_at(formatString: "MMMM DD YYYY")
        duration
      }
    }
}

About

πŸŽ™ Source plugin for getting a podcast show and its episodes from Spreaker API

Resources

Stars

Watchers

Forks

Packages