import  java.net.http.HttpRequest;
import  java.net.http.HttpResponse;
import  java.net.http.HttpClient;
import java.net.URI;

HttpRequest request = HttpRequest.newBuilder()
		.uri(URI.create("https://chuck-norris-jokes.p.rapidapi.com/de/jokes/random"))
		.header("X-RapidAPI-Key", "644e68648emsh4cd27460fc55318p1db393jsn3ea02f46215c")
		.header("X-RapidAPI-Host", "chuck-norris-jokes.p.rapidapi.com")
		.method("GET", HttpRequest.BodyPublishers.noBody())
		.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{"joke":"Beim Spazierengehen wurde neulich der Blitz von Chuck Norris getroffen"}