How does such a generic API query work?
Does Zabbix have a kind of standard what it expects as API endpoint?
As @andreas-doehler mentioned, an example is the Redfish REST API, which is standardized and can therefor be queried while knowing what to expect.