Disclosed herein is an apparatus for moving a headrest. The apparatus includes a stay rod, a fixing cam which is fixed to the stay rod and provided with a locking protrusion, a rotating cam which is provided on the fixing cam and has an insert depression into which the locking protrusion is inserted, a support spring which biases the rotating cam to the fixing cam, and a return spring which has a first end fixed in place and a second end connected to the rotating cam. The fixing cam has a spring support supporting the support spring. The rotating cam has a through hole which has a diameter greater than a diameter of the stay rod so that the rotating cam can be provided around the stay rod after passing through one end of the stay rod and a bent portion of the stay rod.