using media api