API access problem

I want to display data from the API for example here
The basis is the solution using curl.

-H 'x-api-key: YOUR_API_KEY'
-X GET 'http://localhost:3000/api/permissions/group'

the version for php looks like this

$apiKey = 'YOUR_API_KEY';
$url = 'http://localhost:3000/api/permissions/group'';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'x-api-key: ' . $apiKey
$data = json_decode($response, true);

/* Result */

curl installed on hosting Json page – woocommerce.tesovii.space

How to write the API URL correctly
instead of 'http://localhost:3000/api/permissions/group'

sorry I don't get what you're looking for. If you want to display data from Metabase somewhere, I would suggest you use embedding