Security Hotspots - Web API SonarCloud

Hello,

I was wondering if it is possible to get the data on Security Hotspots via API calls. I don’t see an endpoint for hotspots in the documentation, and the endpoints for issues dont support hotspots.

Any help is appreciated.

Thanks!

Hello @Sahil_Modak ,

Thank you for reaching out!
You can get all data for a specific project that you have by this API:

api/hotspots/search

you need to provide the Key of the project or application as projectKey parameter.
If you have a specific branch it may be better to add your branch key as branch parameter.

Kindly note that this is an internal API and we can change it at any time.

Hope that my answer is helpful.

Regards,
Nawar