// Nakano Code // WhatsApp Bot Plugin import fetch from 'node-fetch'; const API_URL = 'https://bff.listnr.tech/backend/user/getInfoYT'; async function getInfoYT(url) { const response = await fetch(API_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json, text/plain, */*', 'Origin': 'https://listnr.ai', 'Referer': 'https://listnr.ai/' }, body: JSON.stringify({ url, platform: 'googledrive', type: 'file' }) }); const data = await response.json(); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${JSON.stringify(data)}`); } return data; } const url = 'https://drive.google.com/file/d/1OajK0hWcAlqAIsTTXdF4NYXa9KDtsGr6/view?usp=sharing'; try { const result = await getInfoYT(url); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error(error.message); }