js api call

JavaScript
$.getJSON(
    "http://weerlive.nl/api/json-data-10min.php?key=be23133eeb&locatie=Dreischor",
    function (data){
     console.log(data); // by printing to the console you can easely check all values in the console
      //every api related code here...
    }// Create a request variable and assign a new XMLHttpRequest object to it.
var request = new XMLHttpRequest()

// Open a new connection, using the GET request on the URL endpoint
request.open('GET', 'https://ghibliapi.herokuapp.com/films', true)

request.onload = function () {
  // Begin accessing JSON data here
}

// Send request
request.send()
Source

Also in JavaScript: