SonarQube
用于检测缺陷、代码坏味道和安全漏洞的 SonarQube REST API
- 认证方式
- OAuth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 开发
- 文档 / URL
- https://sonarcloud.io/web_api
简介
SonarQube 提供代码质量 API——基于 token(SonarCloud;伪造组织返回 404,已实测)。
快速开始
组件(替换为你的组织):
curl "https://sonarcloud.io/api/components/search?organization=YOUR_ORG" \
-H "Authorization: Bearer YOUR_TOKEN"
{ "errors": [ { "msg": "No organizationDto with key 'INVALID'" } ] }
认证方式
- SonarCloud/SonarQube → 用户 token。
- 通过
Authorization: Bearer发送(伪造组织 → 404,已实测)。
速率限制与注意事项
- SonarCloud 免费层(看文档)。
- 缺陷、坏味道、漏洞。
常见问题
SonarQube 免费吗? SonarCloud 免费层;更多需要付费。
为什么 404? 伪造组织返回 404(已实测)——请使用你的真实组织。
认证风格是什么?
Authorization: Bearer token。
开发 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 24 Pull Requests Project to promote open source collaboration during December | No auth | Yes | Yes | ↗ |
| Agify.io Estimates the age from a first name | No auth | Yes | Yes | ↗ |
| Amazonscraperapi Amazon product, search & batch scraping API with residential proxies (1000 free) | API Key | Yes | No | ↗ |
| AmberOne Turn any website into a build-ready Android, iOS, PWA or Electron app project | API Key | Yes | No | ↗ |
| API Grátis Multiples services and public APIs | No auth | Yes | Unknown | ↗ |