count from in the API

I am trying to see if there is some way to run the following from an api

ip hotspot active>> print where idle-time < 00:03:00

Whatever I try I get invalid sytax errors

thanks

How does your code look like?

(If you want to get the count, you can use the “count-only” argument, which would give you the result into an attribute called “ret”)