Badges from latest Artifacts

I can use a badge svg file from an job artifact by referencing the download link of said image, but how do I get the latest Job result in that context? There does not seem to be a variable for that.
(I do not have pages available in the moment)

EDIT: Never mind, you “just” need the magic link:
yourGitlabHost%{project_path}/-/jobs/artifacts/%{default_branch}/raw/pathToBadge/badgeName.svg?job=NameOfTheJobProducingTheBadge