Get sonarqube projects metrics using api


  • Enterprise Edition
  • Version 8.9.10 (build 61524)

We are using Enterprise edition 20M version as company.

Which APIs should I use to access all project metrics seprately in sonarqube? We have almost 300 projects in sonarqube. And I couldnt find APIs which I can get all these project metrics in API doc list.(hosturl/web_api) Could you please give me API to me? It is urgent.

Kind regards,


Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.