Endoscopy of the upper digestive system take 10-15 minutes. Other endoscopies, like the colonoscopy, may take longer, upto half an hour.