A temperature control apparatus for an endoscope includes: a temperature detection section that detects a temperature of an object to be heated, the object to be heated being heated by a heater a semiconductor switch that performs switching between supply and shut off of the power to the heater a control section that controls the semiconductor switch to perform temperature control for the object to be heated, and performs heating stopping control to turn the semiconductor switch off a mechanical switch that performs switching between continuity and shut off of a power line and a heating stopping circuit that if an abnormality occurs in temperature control for the heater, performs heating stopping control to turn the mechanical switch off.