let url = 'https://api.xxxx.xx/xxxxxxxxxxx/nigeriaElevation/nigeriaElevation'; fetch(url) .then((response) => response.json()) .then(json => { // Do something with the data console.log(json.nigeriaElevation); });