Feel free to investigate how to get Discourse added to the official shields.io listing:
No need for any API interaction; it should be static.