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: