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. Replace SERVER-IP with the actual domain name or IP address of your SonarQube server.