Ape is a town in the Vidzeme region of Latvia, located within Smiltene Municipality. It lies in the northern part of the country, near Latvia's border with Estonia.
The town's position close to the Estonian frontier places it in Latvia's northern border area, within the historical and cultural region of Vidzeme. Administratively, it falls under Smiltene Municipality, whose centre is the town of Smiltene to the south.