Apple is to host two MHI Vestas turbines at an onshore site near the Danish town of Esbjerg.
Apple has signed a PPA with European Energy for the power supplied by the 8.4MW turbines for its data centre in Viborg, with all surplus energy going into the Danish grid.
The turbines are due to start operating before the end of 2020, said a source at European Energy.
The 200 metre-tall turbines are expected to produce 62 gigawatt-hours of electricity each year and will act as a test site for the offshore wind turbines.
Apple environment, policy and social initiatives vice president Lisa Jackson said: “Combatting climate change demands urgent action and global partnership — and the Viborg data centre is powerful proof that we can rise to this generational challenge.
“Investments in clean energy deliver breakthrough innovations that bring clean energy and good jobs to businesses and local communities. This is an area where we have to lead — for the sake of our planet and future generations.”
Last month, Apple announced its plans to become carbon neutral across its entire business, manufacturing supply chain, and product lifecycle by 2030.