Zgornja Kostrivnica is a place, that after the Treaty of Saint-Germain belonged to Yugoslavia and was situated in the administrative region Šmarje.
Zgornja Kostrivnica was formerly part of the German Empire. In the German Empire, the place was called Oberkönigsbrunn. The place is now called Zgornja Kostrivnica and belongs to Slovenia.