Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-source-trakttv

Source plugin for pulling data into Traktv account to Wacthed History endpoint.

Install

yarn install gatsby-source-trakttv

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-trakttv`,
    options: {
      api_key: 'INSERT_APIKEY',
      username: 'INSERT_USERNAME'      
    },
  },
];

Example Queries

query {
    TrakttvWatchedMovies{
        id,
        movie {
            title
        }
    }
}
query {
    TrakttvWatchedShows{
        id,
        show {
            title
        }
    }
}
© 2023 Gatsby, Inc.