SonarQube - How we can get set of project failure report using the sonar api

Hi Team,
I want to get the failure reports using the project key for set of projects, can anyone please help what is the api and how to use it.



Welcome to the community!

It’s not obvious to me what you mean by “failure reports”. Are you looking for failing Quality Gates? Open issues raised in a project? Something else?

For notification of a failing Quality Gate, you can rely on a webhook. Otherwise, you can probably find the information in the UI. And if you can find it in the UI, you can use the same API calls to pull the data you want.

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.