Atletico Madrid reclaimed the lead at the top of LaLiga after battling to a 2-0 win over relegation-threatened Huesca.
Diego Simeone's side had seen city rivals Real clamber above them into first place by virtue of their head-to-head record after their Wednesday win at Cadiz.
Lionel Messi gave Barca an early lead and despite a Clement Lenglet own goal pulling Getafe level, a Sofian Chakla own goal and a second from Messi looked to have sealed the points for the hosts.
Real Sociedad ended a run of five league games without a win with a 2-1 success over Celta Vigo, while Granada beat bottom club Eibar 4-1.
Ten-man Atalanta extended their unbeaten run to six matches but missed the chance to move into second place in Serie A after being held to a 1-1 draw at Roma.
Ruslan Malinovskyi gave the visitors an early lead but Atlanta full-back Robin Gosens was sent off for a second yellow card and former Atlanta midfielder Bryan Cristante struck a long-range equaliser.
Lorenzo Insigne's seventh-minute penalty paved the way for Napoli's 5-2 win over Lazio, with further goals from Matteo Politano, Insigne again and Dries Mertens easing the hosts into a 4-0 lead just after the hour mark.
Goals from Ciro Immobile and Sergej Milinkovic-Savic briefly roused the hosts but an 80th-minute effort from Victor Osimhen sealed Napoli's win.