Is there a way to retrieve ratings(A,B,C,D,E) displayed in sonarqube dashboard through web api?

(Manoj 13) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

(G Ann Campbell) #2


What have you tried?


(Neil Padgen) #3

I’m looking for the exact same information.

I’ve found the internal /api/components/search_projects endpoint; the facets part of the response seems to give the data underlying the A,B,C,D,E ratings, but surely there must be a way to get the actual value for a given project?

(G Ann Campbell) #4

Hi @npadgen,

Take a look at api/measures/component.


(Neil Padgen) #5

Thanks Ann, that’s exactly the one I was after!