(SCROLL DOWN FOR GERMANY VS. URUGUAY VIDEO HIGHLIGHTS & PHOTOS. PLUS, PAUL THE OCTOPUS CONTINUES HIS STREAK OF PERFECTION.)
(AP) PORT ELIZABETH, South Africa -- The ball crashed off the crossbar on the final kick of the match, and Germany escaped with third place at the World Cup.
Sami Khedira scored in the 82nd minute to give Germany a 3-2 victory over Uruguay and third place for the second straight World Cup. But the Germans had to survive a final-second free kick by Uruguay star striker Diego Forlan from just outside the penalty area. It ricocheted off the crossbar, and the whistle sounded.
Rain-soaked players shook hands and awaited a medals ceremony that was not nearly what they wanted. The Netherlands and Spain will play for the championship on Sunday in Johannesburg. [Article continues below.]
GERMANY's GAME-WINNING GOAL:
Germany Ties Game At 2-2 (55th minute):
Uruguay Takes Lead (50th minute):
Uruguay Ties Game (27th minute):
Germany Scores First (18th minute):
"We had hoped for more, and we did everything for it," Khedira said. "This was some kind of final and we did everything for it.
"We have a young team and set an exclamation mark here and can reach more."
Uruguay came from behind to lead 2-1 when Forlan brilliantly volleyed in Egidio Arevalo's 51st-minute cross for his fifth goal of the tournament.
Germany defender Marcell Jansen tied it five minutes later with a header after goalkeeper Fernando Muslera misjudged a cross.
In the dying moments, on a rain soaked pitch, Uruguay had one more opportunity. But Forlan, who has been especially dangerous on free kicks, hit the bar.
"Obviously it's something spectacular to be among the top four," said Forlan. "If someone would've asked us at the beginning, we would've liked it. It's something positive."
Thomas Mueller opened the scoring for Germany in the 18th minute, also his fifth goal at the World Cup. Edinson Cavani equalized for Uruguay in the 28th when he slid a shot past goalkeeper Hans Joerg Butt.
Miroslav Klose's aching back prevented him from playing for Germany and he finished the tournament with four goals and 14 for his career. He is one goal shy of Brazilian forward Ronaldo's World Cup record and, at 32, doesn't expect to play in 2014 in Brazil.
Germany coach Joachim Loew was forced to make five changes to his team. Defender Philipp Lahm and forward Lukas Podolski were out with the flu. Loew also has the flu but was on the bench. Backup striker Mario Gomez also has the flu.