fetch('https://api.printful.com/store/products', { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }) .then(response => response.json()) .then(data => { document.getElementById('product-container').innerHTML = `

${data.result[0].name}

${data.result[0].name}

Price: $${data.result[0].retail_price}

`; }) .catch(error => console.error('Error:', error));