According to local media, the startling discovery was made on Saturday in Jinhua City, Zhejiang province.
Firefighters were called to an apartment complex where residents said they could hear the baby’s cries through the pipes.
Emergency crews who arrived on the scene could see the baby’s head far down inside the toilet duct, but were unable to reach down far enough into the 4-inch in diameter pipe to pull him out.
Rescuers had to walk down one floor below to cut the pipe free.
After removing the section of pipe containing the baby, firefighters took him to a nearby hospital where pliers and a saw were used to gently free him.
The child, whose name is unknown, was believed to be just two days old when he was discovered and initially suffered from a low heart rate and labored breathing. He had also suffered numerous bruises to his head, arms and legs.
Doctors at Pujiang People’s Hospital said by telephone that the baby’s prognosis was good. His heart rate was stabilizing and his breathing was much smoother, they added.
Staff also reported that the hospital was paying the boy’s medical bills while donations of clothes, baby formula and other gifts were coming in from the community.
Doctors declined to confirm whether the baby’s relatives have come forward.
Police in Jinhua City said that they “seemed” to have found the baby’s parents before refusing to speak further. Police there have also said that they were treating the investigation as an attempted murder.
On Chinese social media, users expressed their outrage over the incident and called for the parents to be punished.
“More and more young parents treat their own flesh and blood so viciously,” wrote one user on China’s Twitter-like service, Weibo. “Treating a life like this is no different than murder.”
Others though expressed a desire to adopt the young boy.
“I am 25 years old and single! Can I adopt him?” asked one user.