mp3's (and added files) URL's

Given a WIX site named MySite.com with some mp3 files what is the proper URLs to mp3 files?

https://music.wixstatic.com/mp3 /FileName.mp3 ? (the link that is copied when right clicking on the audio player on the page).
https://static.wixstatic.com/mp3 /FileName.mp3 ? (the link that is copied when right clicking on the file name on the edidor page)

Since these names are in a different domain than MySite.com, they produce (in some browsers) a CORS (cross origin) error.
Is there a link to the mp3 files, which uses the same domain name (MySite.com e.g. https://MySite.com/ Filenamemp3 ) ?

1 Like

All media that is used by Wix is stored on their media platform services so I don’t think you can have them on the same domain actually. But just make sure they use https both on your site and the media then you should not get any errors when publishing your site.

Hi! For sure you won’t get straight links with file names. It will be something like https//music.wixstatic.com/preview/077ea4_e91295b9031dfgg334ds87405f7bc609b1fe-128.mp3
But, this hash never changes after file is uploaded

And yes, it’s stored in cloud media platform which has different domain than your basic site domain
So, not posiible to get liks with the same domains

But where can we find the URL? When you inspect the element or view page source it does not have a URL for any audio/video files on the site, only images.

Eminence Upc,

I don’t know if there’s an actual official way of retrieving an mp3 url, but this is what I do:
After placing a music element in the site editor, you’ll be taken to a file manager that will let you upload an mp3. Once one is uploaded, hovering over the file image there will reveal three little icons next to each other:

  1. [T] will let you change its name.
  2. the little garbage icon will let you delete it.
  3. the little down arrow icon will let you re-download the file.
    Simply clicking on the down arrow icon will trigger a download prompt. But if you right click it and select “copy link location”, you’ll have copied the url to the raw mp3 file. It will look something like
    < https:// static .wixstatic.com/mp3/ [random letters and numbers] .mp3?dn= [the file name] .mp3 >
    The only thing you’ll have to change in the url if you want to place it as a link on a button or something is to replace that first instance of " static " with " music ":
    < https:// music .wixstatic.com/mp3/ [random letters and numbers] .mp3?dn= [the file name] .mp3 >
    That way the auto-download won’t trigger when activated and it’ll simply take you to an otherwise empty page with the lone mp3 playing. And you don’t need to actually use that music element initially selected. It simply acted as a segway to your file manager, so you can delete if afterwards.

I still haven’t found a way to retrieve the mp3 url from the music player yet though. It doesn’t have that same download button in the music manager (yet?) unfortunately.

[EDIT] Figured it out:
On your published Wix site, go to your Wix Music Player.
Find the track you want to extract an url from. Hovering over the track will reveal a download button.
Click on the download button for that track (assuming you’ve made it free to download).
You will be taken to an informational download page for the track.
Right click “download in mp3” and select “copy file link location”.
When pasted, the link will look like the following: ​
<https://files.wix.com/secure-files/ [File Name] .mp3?secure_data= [followed by a bazillion random numbers and letters] >
Copy the File Name and insert it into the following format if you want to place it as a link on a button or something:
​<https://static.wixstatic.com/preview/ [File Name] -128.mp3>

If anyone has an easier way to access an mp3 file, chime right in!
But I hope that helps!

Thank you so much Alex SMASH! This worked perfectly! I wanted to create my own RSS feed using my Wix storage space (Soundcloud is super-easy but gives a horribly small amount of space for RSS feeds). Now I can create a much larger feed thanks to you!

All media that is used by Wix is stored on their media platform services so I don’t think you can have them on the same domain actually. But just make sure they use https both on your site and the media then you should not get any errors when publishing your site.

Nice article. Thanks for sharing such useful information.

great efforts. Good information