Loads items from an Amazon Wishlist into Gatsby.js
npm install gatsby-source-amazon-wishlist
Edit gatsby-config.js
to use the plugin:
{
...
plugins: [
...
{
resolve: 'gatsby-source-amazon-wishlist',
options: {
wishlistUrl: 'https://www.amazon.de/registry/wishlist/2WVYBLDQ5KDSG',
language: 'en-GB',
limit: 25,
},
},
]
}
wishlistUrl
: URL to your amazon wishlist, this must be public or shared.language
: The language to pass in theAccept-Language
header, I useen-GB
because I like the euro sign in front of my prices, defaults toen-US
.limit
: Whether to stop fetching at a specific limit, defaults tofalse
You can query the nodes created by the plugin as follows:
{
allAmazonWishlistItem {
edges {
node {
id
title
url
price
features
comment
priority
purchased
requested
image {
url
}
}
}
}
}