Core APIs
...
Parameters
Common
4 min
common parameters get get /request the following parameters are used to configure your request to the product data api they should be appended as querystring parameters to a get http request to the /request endpoint for example, to request critical customer reviews, without a manufacturer reply, for the asin b073jyc4xm on amazon com the request would be http https //api rainforestapi com/request?api key=demo\&type=reviews\&amazon domain=amazon com\&asin=b073jyc4xm\&review stars=all criticalcurl l get https //api rainforestapi com/request \\ d api key="demo" \\ d type="reviews" \\ d amazon domain="amazon com" \\ d asin="b073jyc4xm" \\ d review stars="all critical"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "reviews", amazon domain "amazon com", asin "b073jyc4xm", review stars "all critical" } // 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' 'reviews', 'amazon domain' 'amazon com', 'asin' 'b073jyc4xm', 'review stars' 'all critical' } \# 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' => 'reviews', 'amazon domain' => 'amazon com', 'asin' => 'b073jyc4xm', 'review stars' => 'all critical' ]); \# 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; ?> request specific parameters additional parameters are available depending on the type of request being made (as determined by the type parameter) for example, if you make a request with type=offers then additional https //docs trajectdata com/rainforestapi/product data api/parameters/offers , specific to offers requests, are available common parameters the following common parameters are required for all requests to the product data api true 220,220,221left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type next steps https //docs trajectdata com/rainforestapi/product data api/parameters/offers https //docs trajectdata com/rainforestapi/product data api/parameters/stock estimation https //docs trajectdata com/rainforestapi/product data api/parameters/reviews https //docs trajectdata com/rainforestapi/product data api/parameters/product https //docs trajectdata com/rainforestapi/product data api/parameters/search https //docs trajectdata com/rainforestapi/product data api/parameters/bestsellers https //docs trajectdata com/rainforestapi/product data api/parameters/category https //docs trajectdata com/rainforestapi/product data api/parameters/also bought https //docs trajectdata com/rainforestapi/product data api/parameters/seller profile https //docs trajectdata com/rainforestapi/product data api/parameters/seller feedback https //docs trajectdata com/rainforestapi/product data api/parameters/seller products https //docs trajectdata com/rainforestapi/product data api/parameters/autocomplete https //docs trajectdata com/rainforestapi/product data api/parameters/author page