use media api for the url