Help me to read the metric values specific to project version

Hi Team,

I am using SonarQube version 6.7.6. i am able to read the various metric values with the help of api but those are only latest.
http://<sonar_host_url>/api/measures/component?componentKey=<project_key>&metricKeys=ncloc,blocker_violations

I want get the same for older project versions. Is there any way to retrieve it with the help of api or from database (we are using mySQL). Please sort out my issue.

Can you please help me on this?

Hi,

You can use api/measures/search_history to get past measures.

Regards,
Julien Lancelot

Thank you.