SonarSource favorites API

Manage user favorites

Operations 3

POST /api/favorites/add Add a project as favorite for the authenticated user. Only 100 components can be added as favorite. Requires authenti... #
POST /api/favorites/remove Remove a component (project, directory, file etc.) as favorite for the authenticated user. Requires authentication. #
GET /api/favorites/search Search for the authenticated user favorites. Requires authentication. #

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/sonarsource-favorites-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

sonarsource-favorites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SonarQube Cloud Web authentication Favorites API
  version: v1
  description: The SonarQube Cloud Web API, derived faithfully from the machine-readable service catalog the instance publishes at /api/webservices/list.
  x-derived-from: https://sonarcloud.io/api/webservices/list
  contact:
    name: SonarSource
    url: https://community.sonarsource.com/
servers:
- url: https://sonarcloud.io
security:
- bearerToken: []
- basicToken: []
tags:
- name: favorites
  description: Manage user favorites
paths:
  /api/favorites/add:
    post:
      operationId: favoritesAdd
      summary: Add a project as favorite for the authenticated user. Only 100 components can be added as favorite. Requires authenti...
      description: 'Add a project as favorite for the authenticated user. Only 100 components can be added as favorite. Requires authentication and the following permission: ''Browse'' on the project.'
      tags:
      - favorites
      parameters:
      - name: component
        in: query
        description: Component key. Only components with qualifier TRK are supported
        required: true
        schema:
          type: string
        example: my_project:/src/foo/Bar.php
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '401':
          description: Unauthorized - authentication required
        '403':
          description: Insufficient privileges
        '404':
          description: Not Found
  /api/favorites/remove:
    post:
      operationId: favoritesRemove
      summary: Remove a component (project, directory, file etc.) as favorite for the authenticated user. Requires authentication.
      description: Remove a component (project, directory, file etc.) as favorite for the authenticated user. Requires authentication.
      tags:
      - favorites
      parameters:
      - name: component
        in: query
        description: Component key
        required: true
        schema:
          type: string
        example: my_project
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '401':
          description: Unauthorized - authentication required
        '403':
          description: Insufficient privileges
        '404':
          description: Not Found
  /api/favorites/search:
    get:
      operationId: favoritesSearch
      summary: Search for the authenticated user favorites. Requires authentication.
      description: Search for the authenticated user favorites. Requires authentication.
      tags:
      - favorites
      parameters:
      - name: p
        in: query
        description: 1-based page number
        required: false
        schema:
          type: string
          default: '1'
        example: '42'
      - name: ps
        in: query
        description: Page size. Must be greater than 0 and less or equal than 500
        required: false
        schema:
          type: string
          default: '100'
        example: '20'
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '401':
          description: Unauthorized - authentication required
        '403':
          description: Insufficient privileges
        '404':
          description: Not Found
components:
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      description: User token as Bearer token.
    basicToken:
      type: http
      scheme: basic
      description: User token as HTTP Basic username with empty password.