Can 'external sites' get informations from Nextcloud?

Is there a way with the app “external sites” that the included page gets information from Nextcloud?
The name and groups of the registered user would be very practical.

If not, is there a way for the included page to know that it is accessed through the Nextcloud app?
My first idea with $ _SERVER [" HTTP_REFERER "] does not work.