JSM Requests count by Status

What’s the best JSM API/method I could consume in order to have the total amount of issues/requests per status ?

I’m creating a dashboard by myself and I need that information through API so I can “feed” my graphics.

It would be great if I had something like this in a one method call:
{
“completed”: 1000,
“waiting support”: 99,
“waiting costumer”: 11,
}