Core APIs
...
Parameters
Customer Feedback

Questions

4min
questions parameters get get /request questions and answers are retrieved from the "looking for specific info?" section f or a single product on amazon to retrieve answers to questions, user must provide a search term, and either the asin and amazon domain parameters or the url parameter (where the url contains a link to an amazon product page) + search term all parameters should be appended as query string parameters to the get request update user must include search term to retrieve matching questions & answers, as amazon requires input for searches on product pages the api will return up to 20 matching q\&a results based on the provided search term http https //api rainforestapi com/request?api key=demo\&type=questions\&page=1\&amazon domain=amazon com\&asin=b073jyc4xm\&search term=gbcurl l get https //api rainforestapi com/request \\ d api key="demo" \\ d type="questions" \\ d page="1" \\ d amazon domain="amazon com" \\ d asin="b073jyc4xm" \\ d sort by="most helpful"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "questions", page "1", amazon domain "amazon com", asin "b073jyc4xm", sort by "most helpful" } // 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' 'questions', 'page' '1', 'amazon domain' 'amazon com', 'asin' 'b073jyc4xm', 'sort by' 'most helpful' } \# 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' => 'questions', 'page' => '1', 'amazon domain' => 'amazon com', 'asin' => 'b073jyc4xm', 'sort by' => 'most helpful' ]); \# 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; ?> questions parameters the following parameters are available for all requests made when type=questions parameter required description search term required provide a search term to retrieve matching questions & answers, as amazon requires input for searches on product pages amazon domain optional the amazon domain to retrieve questions & answers 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 asin optional the amazon asin (product id) to retrieve questions & answers for used in combination with the amazon domain parameter note if the asin and amazon domain parameters are supplied then the url parameter is ignored url optional the amazon product page url to retrieve questions & answers from note if the url parameter is supplied, then the amazon domain and asin parameters are ignored next steps questions results https //docs trajectdata com/rainforestapi/product data api/results/questions