The invention discloses a safety baby crib based on the Internet of Things, which comprises a crib frame and a cradle, supporting legs are fixedly mounted at the bottom of the crib frame, a protectiveplate is fixedly mounted at the bottom of the front part of the crib frame, a control screen is fixedly mounted at the top of one side of the crib frame, and a shaking mechanism is arranged between the crib frame and the cradle. The shaking mechanism comprises a motor box, a rotating disc, a connecting rod, a fixing rod and a rotating shaft, a supporting column is fixedly installed on the upper portion of the motor box, and a camera is fixedly installed at the top end of the supporting column. According to the safety baby crib based on the Internet of Things, the cradle can be conveniently detached and independently used, meanwhile, the height of the cradle can be conveniently adjusted, the cradle can be conveniently spliced with an adult bed, a guardian can conveniently monitor a child and an infant, and in addition, when the child and the infant are about to use the baby crib, the cradle can be conveniently detached. And the baby crib is preheated, so that the baby crib is more convenient to use.