How to get sonar metrics based on commit id or date of commit

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


Is there anyway i can get metrics based on commit or date of commit or for a particular historical period (between dates)…this is required for through web api.

Thanks in advance

Hey there.

Historical data is rarely available for a specific analysis, as Housekeeping kicks in and consolidates the data.

And, the historical information available on the Activity tab is available to you. This guide might help you: