API to retrieve global metrics about SonarQube

I am using the latest version of SonarQube (9). I would like to know if there are any API to export the number of total projects Passed and Failed. Example:


And also if it’s possibile to retrieve the total rating of all projects divided by the categories (A,B,C,etc) for reliability… Example:


Basically the information displayed on the left in the “projects” tab:

Thanks !


Welcome to the community!

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls it made to accomplish the action. As you say, all this data is on the Projects page, so you should be able to find what you need with one render. :smiley:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.