Back to catalog
πŸ’»

SonarQube

OAuth

SonarQube REST APIs to detect bugs, code smells & security vulnerabilities

πŸ’»DevelopmentHTTPS

Project Analysis

com.acme:web-app

Project KeyCom.acme:web-app
Quality GatePassed
Bugs3
Vulnerabilities1
Code Smells47
Coverage Pct78.4
Duplications Pct2.1

Sample Response

response.json
1{
2 "project_key": "com.acme:web-app",
3 "quality_gate": "Passed",
4 "bugs": 3,
5 "vulnerabilities": 1,
6 "code_smells": 47,
7 "coverage_pct": 78.4,
8 "duplications_pct": 2.1
9}

Code Snippets

request.sh
1"color:#c084fc">curl -X "color:#fbbf24">GET "https://sonarcloud.io/web_api" \
2 "color:#60a5fa">-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
View Documentation

Similar APIs