Shaft is 5 mm diameter, 23 mm long. Shaft has a flat section along entire shaft. See picture for mounting information.  Body of motor is 38 mm from mounting surface to back.