Have you checked the documentation on this topic yet? But in general, media file is a physical file. So, you just need to know the file name, file folder and media library directory and you can compose a direct link to the file system (depending on what is set in Settings too, "Media Libraries folder" setting). So, then you can compose the URL like: domain.com/mediaLibFolder/foolders/file.extension