How to get firing alert count in grafana using httpAPI to show in panel

Is there any HTTPAPI in Grafana alerting to get firing alert count to show it in stat panel with some backgroung color. current grafana version is 9.4.7 I can get this count using alert list panel but not able to add background color to it.

@nagendra969 Take a look at the Grafana HTTP API Data Source. You can get the firing alert count using Alert Annotations with firing next state.

How do you able to get the count for fired alerts for each alert rule.