Additing Conditions to API Results

I was wondering if there is any way to filter API results in Dev Tools to show conditions. For example, instead of this:

GET _cat/shards?v=true&h=index,shard,prirep,state,docs,store,node,segments.count,unassigned.details,unassigned.reason

...I'd like to show only the results where state=UNASSIGNED and segment.count>1

I did look at the cat shards API documentation, but while you can do v=true and h=index, I don't see how to set conditions for the columns in the results.

Not in the _cat API, no. The idea with it is you use something like grep, jq or similar to do this.

Can you use grep in Dev Tools? Or does this have to be done outside Kibana - in command prompt? (We're in an all-Windows environment.)

You can't no. It might be worth making a feature request to allow filtering against the API though, it makes sense.