Answers: <p>Ok no so obvious but at least one possible way is:</p>
  
  <ul>
  <li>Note the component ID in the TravisCI report </li>
  <li><p>Use the ID and <a href="https://docs.sonarqube.org/display/SONAR/Metric+Definitions" rel="nofollow noreferrer">this documentation</a> to get data:</p>
  
  <p><a href="https://sonarcloud.io/api/measures/component?componentId=" rel="nofollow noreferrer">https://sonarcloud.io/api/measures/component?componentId=</a>&amp;metricKeys=code_smells</p></li>
  </ul>
  
Answers: CC BY-SA 4.0
Answers: 2018-07-12T07:17:46.297Z
Answers: 2018-07-12T07:17:46.297Z
Answers: Ta Mu
Body: <p>Thanks to SonarCloud.io, you can perform static code analysis without own infrastructure.</p>
  
  <p>But, is there an API to access data shown in Sonar <a href="https://sonarcloud.io/dashboard?id=fiware.authzforce.server" rel="nofollow noreferrer">dashboard</a>?</p>
  
  <p>What I can find so far, is the "<a href="https://docs.sonarqube.org/display/DEV/Web+API" rel="nofollow noreferrer">Sonar Web API</a>" documentation but it looks very scarce. There are also docs for older version, but API documented there seems to be no more available.</p>
  
  <p>Is there more "hidden" API functionality? I can't see it mentioned in the Enterprise edition. </p>
  
Tags: <analysis><sonarqube>
Title: How to access report data from Sonarcloud.io aka SonarQube API, or functionality no more available?
UserDisplayName: Ta Mu
ThreadText: # How to access report data from Sonarcloud.io aka SonarQube API, or functionality no more available?
  
  (Asked by: username_0 on 2018-07-12)
  
  Thanks to SonarCloud.io, you can perform static code analysis without own infrastructure.
  
  But, is there an API to access data shown in Sonar [dashboard](https://sonarcloud.io/dashboard?id=fiware.authzforce.server)?
  
  What I can find so far, is the "[Sonar Web API](https://docs.sonarqube.org/display/DEV/Web+API)" documentation but it looks very scarce. There are also docs for older version, but API documented there seems to be no more available.
  
  Is there more "hidden" API functionality? I can't see it mentioned in the Enterprise edition.
  
  **Tags:** analysis, sonarqube
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-12. Score: 1
  
  Ok no so obvious but at least one possible way is:
  
  * Note the component ID in the TravisCI report
  * Use the ID and [this documentation](https://docs.sonarqube.org/display/SONAR/Metric+Definitions) to get data:
  
    <https://sonarcloud.io/api/measures/component?componentId=>&metricKeys=code\_smells
  
  
  ---
  
  