The result leaves Barca six points behind leaders Real Madrid.
"We played a good game. I do not think that Getafe have been better, but they won and we congratulate the opponents. We knew they were a team that gets well behind the ball," said Guardiola.
"It's a tough league and so this can happen. We'll pick ourselves up and move forward."