add api get media by type