Source plugin for pulling data into Gatsby from Giphy trending API.
npm install --save gatsby-source-giphy-trending
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-source-giphy-trending',
options: {
api_key: '',
rating: 'G',
},
},
]
API key from Giphy Developer dashboard
Filters results by rating
- Y
- G
- PG
- PG-13
- R
{
allGiphyGif(limit: 10) {
edges {
node {
id
url
title
images {
original {
url
}
}
}
}
}
}