An apparatus for hot upsetting forming of a fastener, wherein the apparatus comprises: a heating assembly, the heating assembly comprising a frame, and a first manipulator, a second manipulator, a vibratory inline feeder and a heating device that are fixed to the frame, a hot upsetting assembly, and a workbin, wherein the vibratory inline feeder is provided with a magazine, the heating device is provided with a heating station for heating a workpiece, and the hot upsetting assembly is provided with a hot upsetting station, the first manipulator is configured to transfer the workpiece from the magazine to the heating station of the heating device, and the second manipulator is configured to transfer the workpiece from the heating station of the heating device to the hot upsetting station of the hot upsetting assembly; and the hot upsetting assembly comprises a hot upsetting machine, and a die for fixing the workpiece, wherein the die is connected to the hot upsetting machine, characterized in that the hot upsetting assembly further comprises a third manipulator and a fourth manipulator that are fixed to the hot upsetting machine, the third manipulator being configured to spray a lubricant into the die, and the fourth manipulator being configured to transfer the workpiece from the die to the workbin, and in that the heating assembly further comprises: a first measurement device, a second measurement device, a third measurement device, and a fourth measurement device, wherein the first measurement device is arranged above the magazine, and is configured to measure the number and placement positions of workpieces; and the second measurement device is configured to measure the size and orientation of a workpiece, the third measurement device is configured to measure the temperature of the workpiece when a product is in the heating device, and the fourth measurement device is arranged on a side of the hot upsetting assembly, and is configured to detect whether the second manipulator properly places the workpiece into the die of the hot upsetting machine. a heating assembly, the heating assembly comprising a frame, and a first manipulator, a second manipulator, a vibratory inline feeder and a heating device that are fixed to the frame, a hot upsetting assembly, and a workbin, wherein the vibratory inline feeder is provided with a magazine, the heating device is provided with a heating station for heating a workpiece, and the hot upsetting assembly is provided with a hot upsetting station, the first manipulator is configured to transfer the workpiece from the magazine to the heating station of the heating device, and the second manipulator is configured to transfer the workpiece from the heating station of the heating device to the hot upsetting station of the hot upsetting assembly; and the hot upsetting assembly comprises a hot upsetting machine, and a die for fixing the workpiece, wherein the die is connected to the hot upsetting machine, characterized in that the hot upsetting assembly further comprises a third manipulator and a fourth manipulator that are fixed to the hot upsetting machine, the third manipulator being configured to spray a lubricant into the die, and the fourth manipulator being configured to transfer the workpiece from the die to the workbin, and in that the heating assembly further comprises: a first measurement device, a second measurement device, a third measurement device, and a fourth measurement device, wherein the first measurement device is arranged above the magazine, and is configured to measure the number and placement positions of workpieces; and the second measurement device is configured to measure the size and orientation of a workpiece, the third measurement device is configured to measure the temperature of the workpiece when a product is in the heating device, and the fourth measurement device is arranged on a side of the hot upsetting assembly, and is configured to detect whether the second manipulator properly places the workpiece into the die of the hot upsetting machine.