How to Get a Taglist IDs and Names with (Curl)

I’m looking for a way to get the Tags( Names und Ids) using curl.

I have the possibility to read out the users via OCS for the BSP
[ curl -u username:password -X GET ‘’ -H “OCS-APIRequest: true” ]

Is there a method call to read a keyword list with names and ids.

The Nexcloud is hosted by Ionos.