const fetch = require('node-fetch); fetch('https://weebs4life.ga/api/neko') .then(res => res.json()) .then(json => { let imageUrl = json.url console.log(imageUrl) })