const options = {method: 'GET', headers: {accept: 'application/json'}}; fetch('https://api.tomorrow.io/v4/weather/realtime?location=toronto&apikey=XXX', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
top of page
bottom of page