get_media api method