const axios = require(“axios”);
const options = {
method: ‘GET’,
url: ‘https://apidojo-hm-hennes-mauritz-v1.p.rapidapi.com/products/list’,
params: {country: ‘asia2’, lang: ‘en’, currentpage: ‘0’, pagesize: ‘30’},
headers: {
‘X-RapidAPI-Key’: ‘f4a4c05eeamsh61047049e56804bp1886c4jsnb810b2cee6d5’,
‘X-RapidAPI-Host’: ‘apidojo-hm-hennes-mauritz-v1.p.rapidapi.com’
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
above code is giving 0 results, in fact all the categories are showing 0 results for products list
Join in the discussion - add comment below:
Hello,
H&M may stop their store in the country "asia2"
You may try again with this : …/products/list?categories=men_all&concepts=H%26M MAN&country=us&lang=en¤tpage=1&pagesize=30
Regards.