Core APIs
...
Parameters
Utility Requests

ASIN to GTIN

3min
asin to gtin parameters get get /request when making a request with the type parameter set to type=asin to gtin rainforest api will attempt to look up gtin / ean / upc / isbn numbers for the asin and amazon domain specified in the asin and amazon domain parameters gtin / ean / upc / isbn values are retrieved from public domain sources (as they are not published by amazon themselves) for example, to request asin to gtin results for the asin b073jyc4xm on amazon com the request would be http https //api rainforestapi com/request?api key=demo\&type=asin to gtin\&asin=b073jyc4xm\&amazon domain=amazon comcurl l get https //api rainforestapi com/request \\ d api key="demo" \\ d type="asin to gtin" \\ d asin="b073jyc4xm" \\ d amazon domain="amazon com"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "asin to gtin", asin "b073jyc4xm", amazon domain "amazon com" } // 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' 'asin to gtin', 'asin' 'b073jyc4xm', 'amazon domain' 'amazon com', } \# 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' => 'asin to gtin', 'asin' => 'b073jyc4xm', 'amazon domain' => 'amazon com', ]); \# 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; ?> asin to gtin parameters the following parameters are available for all requests made when type=asin to gtin parameter required description asin required the amazon asin (product id) to retrieve gtin(s) for used in combination with the amazon domain parameter amazon domain required the amazon domain to retrieve asin to gtin details from for the asin specified in the asin parameter for a full list of supported amazon domains see supported amazon domains https //docs trajectdata com/rainforestapi/product data api/reference/amazon domains skip gtin cache optional if you suspect rainforest api's gtin / upc / ean / isbn results to be stale (by default results are cached by the api for up to 2 months) you can request a fresh public domain lookup of gtin / upc / ean / isbn values be performed by setting the skip gtin cache=true request parameter (note that using skip gtin cache=true decrements 2 credits from your balance, instead of 1) next steps asin to gtin results https //docs trajectdata com/rainforestapi/product data api/results/asin to gtin