getIGStats({ type: 'post', post_url: 'https://www.instagram.com/p/CH1GcmnJ5Vt/?igshid=1mh7u1mhzlmly' }).then( res => { console.log(res); console.log(res.likes); console.log(res.pic_url); console.log(res.comments); document.getElementById("comments").innerHTML = res.comments; document.getElementById("likes").innerHTML = res.likes; document.getElementById("img").innerHTML = ''; });