A temperature control apparatus for an endoscope includes: a heater a power circuit connected to a power source, the power circuit generating power to be supplied to the heater and supplying the generated power to the heater via a power line a temperature detection section that detects a temperature of an object to be heated, the object to be heated being heated by the heater a semiconductor switch provided on the power line, the semiconductor switch performing switching between supply and shut off of the power to the heater a control section that controls the semiconductor switch according to a temperature detection result from the temperature detection section to perform temperature control for the object to be heated, and performs heating stopping control to turn the semiconductor switch off based on the temperature detection result a mechanical switch provided on a line for power supply from the power source to the heater, the mechanical switch performing switching between continuity and shut off of the 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.