Subscribe Us

Header Ads

Tag generate

 

const axios = require('axios'); // Replace with your actual API key const apiKey = 'YOUR_API_KEY'; const videoUrl = 'https: const videoId = videoUrl.split('//www.youtube.com/watch?v=VIDEO_ID'; // Extract video ID from URL const videoId = videoUrl.split('v=')[1]; const getVideoTags = async () => { try { const response = await axios.get(`https: params: { part: '//www.googleapis.com/youtube/v3/videos`, { params: { part: 'snippet', id: videoId, key: apiKey, }, }); if (response.data.items && response.data.items.length > 0) { const tags = response.data.items[0].snippet.tags; if (tags) { console.log(tags); } else {

एक टिप्पणी भेजें

0 टिप्पणियाँ