Answer
According to the 2020 Census, the population of Yogyakarta is 373,589. The city's metropolitan area, which includes the city of Magelang and 65 districts across Sleman, Klaten, Bantul, Kulon Progo, and Magelang Regency, is home to 4,010,436 inhabitants as of 2010.