// JavaScript Example - replace YOURTOKEN with the token from https://labcom.cloud/settings fetch("https://labcom.cloud/graphql", { body: "{ \"query\": \"{ CloudAccount { email last_change_time Accounts { forename surname Measurements { value parameter unit timestamp } } } }\" }", headers: { Authorization: "YOURTOKEN", "Content-Type": "application/json" }, method: "POST" }) .then(response => response.json()) .then(function(response){ console.log(response['data']['CloudAccount']['email']) });