require('dotenv').config({ path: './.env' }); async function main() { const url = `http://${process.env.DB_HOST || 'localhost'}:3000/api/assets/master`; try { const res = await fetch(url); const data = await res.json(); // find asset with id "9pvkqyi" const serverList = data.server || []; const target = serverList.find(s => s.id === '9pvkqyi'); console.log('Server list asset:', JSON.stringify(target, null, 2)); } catch (err) { console.error(err); } } main();