I have com.github.xxxxxx:xxxxxx Maven repository and I want add shields badge but I have a invalid badge:
https://img.shields.io/sonar/https/sonarqube.com/com.github.nor
I just found this question because i'm also trying to get badges from sonarqube (in my case sonarcloud).
There is an embedded API for badges. Here is the official documentation (I had some time to find it on google): https://next.sonarqube.com/sonarqube/web_api/api/badges
http://shields.io is unfortunately not working anymore with sonarqube.