The 5-year-old girl became stuck after falling through the guardrail on Friday.
She was home alone after her mother went out to buy food.
A group of firefighters were able to rescue the girl by descending from the top of the building using cables, while others broke into the locked apartment.