Hi,
the view use filter criteria like host= . The filter “host” expect a list of hosts. If empty, all host selected, this is the way not only API works also the normal views.
The best way is to check if filter is empty on your own application.
Cheers,
Christian