SonarQube Issues API

Code issue search and management

Operations 1

GET /issues/search Search Issues #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonarqube-issues-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonarqube-issues-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SonarQube Web Issues API
  description: The SonarQube Web API provides HTTP endpoints for programmatic interaction with SonarQube Server. It enables management of projects, quality gates, issues, rules, users, groups, permissions, and CI/CD integrations. The API uses token-based authentication and follows REST conventions. It powers the SonarQube web UI and is used for CI/CD integration, custom tooling, and third-party plugin development.
  version: 10.0.0
  contact:
    name: SonarSource
    url: https://community.sonarsource.com/
  license:
    name: GNU Lesser General Public License v3.0
    url: https://www.gnu.org/licenses/lgpl-3.0.html
servers:
- url: https://{sonarqubeHost}/api
  description: SonarQube Server
  variables:
    sonarqubeHost:
      default: sonarqube.example.com
      description: Hostname of your SonarQube instance
tags:
- name: Issues
  description: Code issue search and management
paths:
  /issues/search:
    get:
      operationId: searchIssues
      summary: Search Issues
      description: Search for code issues across projects. Supports filtering by severity, type, status, assignee, resolution, language, rule, tags, date ranges, and component scope.
      tags:
      - Issues
      parameters:
      - name: componentKeys
        in: query
        description: Comma-separated list of component keys to scope the search
        schema:
          type: string
      - name: severities
        in: query
        description: Comma-separated severities (INFO, MINOR, MAJOR, CRITICAL, BLOCKER)
        schema:
          type: string
      - name: types
        in: query
        description: Comma-separated issue types (CODE_SMELL, BUG, VULNERABILITY, SECURITY_HOTSPOT)
        schema:
          type: string
      - name: statuses
        in: query
        description: Comma-separated statuses (OPEN, CONFIRMED, REOPENED, RESOLVED, CLOSED)
        schema:
          type: string
      - name: resolved
        in: query
        description: Filter by resolution status
        schema:
          type: boolean
      - name: rules
        in: query
        description: Comma-separated rule keys
        schema:
          type: string
      - name: languages
        in: query
        description: Comma-separated language keys
        schema:
          type: string
      - name: p
        in: query
        description: Page number
        schema:
          type: integer
          default: 1
      - name: ps
        in: query
        description: Page size (max 500)
        schema:
          type: integer
          default: 100
      security:
      - basicAuth: []
      - bearerAuth: []
      responses:
        '200':
          description: Successfully retrieved issues
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssueSearchResponse'
        '401':
          description: Unauthorized
components:
  schemas:
    Paging:
      type: object
      properties:
        pageIndex:
          type: integer
          description: Current page number
        pageSize:
          type: integer
          description: Number of items per page
        total:
          type: integer
          description: Total number of items
    IssueSearchResponse:
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        issues:
          type: array
          items:
            $ref: '#/components/schemas/Issue'
        components:
          type: array
          items:
            type: object
        rules:
          type: array
          items:
            type: object
    Issue:
      type: object
      properties:
        key:
          type: string
          description: Unique issue key
        rule:
          type: string
          description: Rule key that triggered the issue
        severity:
          type: string
          enum:
          - INFO
          - MINOR
          - MAJOR
          - CRITICAL
          - BLOCKER
        component:
          type: string
          description: Component key where the issue was found
        project:
          type: string
          description: Project key
        line:
          type: integer
          description: Line number in the source file
        hash:
          type: string
          description: Issue hash for deduplication
        textRange:
          type: object
          properties:
            startLine:
              type: integer
            endLine:
              type: integer
            startOffset:
              type: integer
            endOffset:
              type: integer
        status:
          type: string
          enum:
          - OPEN
          - CONFIRMED
          - REOPENED
          - RESOLVED
          - CLOSED
        resolution:
          type: string
          enum:
          - FIXED
          - FALSE-POSITIVE
          - WONTFIX
          - REMOVED
        type:
          type: string
          enum:
          - CODE_SMELL
          - BUG
          - VULNERABILITY
          - SECURITY_HOTSPOT
        message:
          type: string
          description: Issue description message
        author:
          type: string
          description: SCM author of the issue
        assignee:
          type: string
          description: Assigned user login
        creationDate:
          type: string
          format: date-time
        updateDate:
          type: string
          format: date-time
        tags:
          type: array
          items:
            type: string
        effort:
          type: string
          description: Remediation effort estimate (e.g., 5min)
        debt:
          type: string
          description: Technical debt amount
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using a user token as the username and an empty password. Generate tokens in User > My Account > Security.
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication using a SonarQube user token.