// Fetch the tip count using Replit API
fetch('https://replit.com/api/v0/tips/27237324')
.then(response => response.json())
.then(data => {
const tipCount = data.count;
document.getElementById('tipCount').textContent = `Total Tip Count: ${tipCount}`;
})
.catch(error => {
console.error('Error:', error);
document.getElementById('tipCount').textContent = 'Error retrieving tip count';
});
Why exactly am I getting an error code if that’s my Replit ID?