Core APIs
...
Parameters
Specialist Pages
Formats & Editions
4min
formats & editions parameters get get /request the formats & editions parameters are applicable when making a request with the type parameter https //docs trajectdata com/rainforestapi/product data api/parameters/formats editions set to type=formats editions rainforest api will return data from the formats & editions popup (typically shown on books and collectables product pages to list all of the asins of different formats of the current asin) for the product specified in either the asin and amazon domain parameters or the url parameter the parameters should be appended as querystring parameters to the product data api get http request formats & editions data is retrieved from the formats & editions popup https //www amazon com/dp/b00b1gbs9o?th=1\&psc=1 for a single product on amazon paginating results amazon returns 10 formats & editions per page to request more formats & editions issue additional requests incrementing the page parameter note you should inspect the pagination has next page property to determine if another page is available for example, to request all page=1 of formats & editions listings for the asin b00b1gbs9o on amazon com the request would be http https //api rainforestapi com/request?api key=demo\&type=formats editions\&page=1\&amazon domain=amazon com\&asin=b00b1gbs9ocurl l get https //api rainforestapi com/request \\ d api key="demo" \\ d type="formats editions" \\ d page="1" \\ d amazon domain="amazon com" \\ d asin="b00b1gbs9o"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "formats editions", page "1", amazon domain "amazon com", asin "b00b1gbs9o" } // 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' 'formats editions', 'page' '1', 'amazon domain' 'amazon com', 'asin' 'b00b1gbs9o' } \# 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' => 'formats editions', 'page' => '1', 'amazon domain' => 'amazon com', 'asin' => 'b00b1gbs9o' ]); \# 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; ?> formats & editions parameters the following parameters are available for all requests made when type=formats editions parameter required description amazon domain optional the amazon domain to retrieve formats & editions 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 formats & editions 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 formats & editions from note if the url parameter is supplied then the amazon domain and asin parameters are ignored page optional the current page of formats & editions to retrieve inspect the pagination has next page property in the formats & editions results https //docs trajectdata com/rainforestapi/product data api/results/formats editions to see whether a next page of results is available 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 formats & editions results https //docs trajectdata com/rainforestapi/product data api/results/formats editions