curl --request POST \
  --url https://api-partner.dathuis.nl/v1/valuation \
  --header 'content-type: application/json' \
  --header 'x-api-key: <insert API key here>' \
  --data '{ "type": 0, "postcode": "2594BD", "houseNumber": 10 }'
var unirest = require("unirest");

var req = unirest("POST", "https://api-partner.dathuis.nl/v1/valuation");

req.headers({
  "content-type": "application/json",
  "x-api-key": "<insert API key here>"
});

req.type("json");
req.send({
  "type": 0,
  "postcode": "2594BD",
  "houseNumber": 10
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
var data = JSON.stringify({
  "type": 0,
  "postcode": "2594BD",
  "houseNumber": 10
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api-partner.dathuis.nl/v1/valuation");
xhr.setRequestHeader("x-api-key", "<insert API key here>");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
import requests

url = "https://api-partner.dathuis.nl/v1/valuation"

payload = "{ \"type\": 0, \"postcode\": \"2594BD\", \"houseNumber\": 10 }"
headers = {
    'x-api-key': "<insert API key here>",
    'content-type': "application/json"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api-partner.dathuis.nl/v1/valuation")
  .header("x-api-key", "<insert API key here>")
  .header("content-type", "application/json")
  .body("{ \"type\": 0, \"postcode\": \"2594BD\", \"houseNumber\": 10 }")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api-partner.dathuis.nl/v1/valuation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<insert API key here>'
request["content-type"] = 'application/json'
request.body = "{ \"type\": 0, \"postcode\": \"2594BD\", \"houseNumber\": 10 }"

response = http.request(request)
puts response.read_body
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api-partner.dathuis.nl/v1/valuation"

	payload := strings.NewReader("{ \"type\": 0, \"postcode\": \"2594BD\", \"houseNumber\": 10 }")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<insert API key here>")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}