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://SERVER-IP/web_api. (SERVER-IP is a placeholder. Please, replace it with the actual domain of your SonarQube server).