import {fetch} from 'wix-fetch'; // ... fetch("https://exchangeratesapi.io/api/latest", {method: "get"}) .then( (httpResponse) => { let url = httpResponse.url; let statusCode = httpResponse.status; let statusText = httpResponse.statusText; let headers = httpResponse.headers; let bodyUsed = httpResponse.bodyUsed; if (httpResponse.ok) { return httpResponse.json(); } else { return Promise.reject("Fetch did not succeed"); } } ) .then( (json) => { console.log(json.rates["USD"]); } ) .catch( (err) => { console.log(err); } );