Endoscopy can be performed on various parts of the body, including the digestive tract, respiratory system, urinary tract, and reproductive system.