Use the SonarQube Web API
SonarQube provides a web API to access its functionality from applications.
All the documentation about how to use the SonarQube’s web API is available by browsing to http://localhost/web_api. (localhost is a placeholder. Please, replace it with the actual domain of your SonarQube server).