YouTube Channel Analytics Tool

📊 YouTube Channel Analytics Tool

👁️ Views: ${Number(views).toLocaleString()}

🎬 Videos: ${videoCount}

📝 Description: ${description}

🆕 Recent Uploads:

`; videosData.items.forEach(video => { const vid = video.snippet.resourceId.videoId; html += `
▶️ ${video.snippet.title}

📅 ${new Date(video.snippet.publishedAt).toLocaleDateString()}

`; }); html += `
`; output.innerHTML = html; shareBtns.style.display = "block"; } catch (err) { output.innerHTML = "❌ API error. Please try again."; console.error(err); } } function copyLink() { navigator.clipboard.writeText(window.location.href); alert("🔗 Page link copied!"); } function downloadPDF() { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const content = document.getElementById("pdfContent").innerText; const lines = doc.splitTextToSize(content, 180); doc.text(lines, 10, 20); doc.save("YouTube_Channel_Analytics.pdf"); }
Scroll to Top