Core APIs
...
Parameters
Specialist Pages
Wishlist
4min
wishlist parameters get get /request the wishlist parameters are applicable when making a request with the type parameter https //docs trajectdata com/rainforestapi/product data api/parameters/wishlist set to type=wishlist rainforest api will return data from the wishlist page for the wishlist specified in either the wishlist id and amazon domain parameters or the url parameter the parameters should be appended as querystring parameters to the product data api get http request wishlist data is retrieved from the wishlist popup https //www amazon com/hz/wishlist/ls/38b3v3at7uh9b paginating results amazon returns 10 wishlist per page to request more wishlist results issue additional requests passing the next page token parameter from the previous request note due to the infinate scrolling behaviour of wishlist pages, you cannot reference a specific page directly pagination is achieved via the next page token request parameter for example, to request wishlist results for the wishlist id 38b3v3at7uh9b on amazon com the request would be http https //api rainforestapi com/request?api key=demo\&type=wishlist\&amazon domain=amazon com\&wishlist id=38b3v3at7uh9bcurl l get https //api rainforestapi com/request \\ d api key="demo" \\ d type="wishlist" \\ d amazon domain="amazon com" \\ d wishlist id="38b3v3at7uh9b"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "wishlist", amazon domain "amazon com", wishlist id "38b3v3at7uh9b" } // make the http get request to rainforest api axios get('https //api rainforestapi com/request', { params }) then(response => { // print the json response from rainforest api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'type' 'wishlist', 'amazon domain' 'amazon com', 'wishlist id' '38b3v3at7uh9b' } \# make the http get request to rainforest api api result = requests get('https //api rainforestapi com/request', params) \# print the json response from rainforest api print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'type' => 'wishlist', 'amazon domain' => 'amazon com', 'wishlist id' => '38b3v3at7uh9b' ]); \# make the http get request to rainforest api $ch = curl init(sprintf('%s?%s', 'https //api rainforestapi com/request', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response from rainforest api echo $api result; ?> wishlist parameters the following parameters are available for all requests made when type=wishlist parameter required description amazon domain optional the amazon domain to retrieve wishlist for the product specified in the asin parameter from for a full list of supported amazon domains see supported amazon domains https //docs trajectdata com/rainforestapi/product data api/reference/amazon domains note if the amazon domain and asin parameters are supplied then the url parameter is ignored wishlist id optional the amazon wishlist id to retrieve wishlist results for used in combination with the amazon domain parameter the wishlist id can be found in any amazon wishlist url after the /ls/ component of the wishlist url note if the wishlist id and amazon domain parameters are supplied then the url parameter is ignored url optional the amazon wishlist page url to retrieve wishlist results from note if the url parameter is supplied then the amazon domain and wishlist url parameters are ignored sort by optional determines the sort order of wishlist items to return omit the sort by parameter to return results in the default sort order valid values are price high to low returns highest priced wishlist items first price low to high returns lowest priced wishlist items first priority high to low returns highest priority wishlist items first next page token optional the current page of wishlist results to retrieve inspect the pagination next page token property in the wishlist results https //docs trajectdata com/rainforestapi/product data api/results/wishlist to retrieve the next page token of the subsequent page max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/rainforestapi/product data api/pagination docs for more information next steps wishlist results https //docs trajectdata com/rainforestapi/product data api/results/wishlist