Rendering labels outside of GitLab Markdown

Labels, such as ~Bug are rendered nicely in GitLab Markdown on the site. Is there a way to use the API or similar to generate HTML representations of labels, for example, to nicely render the docs of a project in GitLab Pages?

Thanks!

Sarah