Receiving CRIT status of hosts in specific folder

CMK version: 2.2.0p24
OS version: Ubuntu 22.04.4 LTS

I’m trying to setup the API to receive CRIT status of monitored PING alarms on a specific folder.
I’ve found multiple threats, but for some reason my query filter is not working.

I’ve tried the method used here: Fetch a service status detail via CheckMk REST API | sgala.com . website
But It’ll not return any CRIT status, but in fact return everything, up or down.

However I feel like I’m approaching it wrong, as in the API REST GUIDE, on my version, the endpoint call is not even documented.

Does anyone have experience with this?
Even if not into a specific folder, any CRIT status would already help me to achieve my goal. As I can filter it on host.