Getting public file url for R2 stored file

I have a public R2 bucket with a mapped custom domain.

Does the R2 S3 Api anywhere return the public URL with the custom domain?