Logic Post Query

Hi, can someone help me call the following question by POST in homey pro?

const res = await fetch("https://libretranslate.com/translate", {
	method: "POST",
	body: JSON.stringify({
		q: "test",
		source: "pl",
		target: "en",
		format: "text",
		api_key: ""
	}),
	headers: { "Content-Type": "application/json" }
});

console.log(await res.json());

and extract the “test” response from the API response

{
    "translatedText": "test"
}

Not sure if you want to use Homeyscript only, but with this flowcard below you can have the result returned:

Your post request should be something like this:
https://libretranslate.com/translate?q=Hello!&source=en&target=es&format=text&api_key=myapikey