Lionel Messi's 90th-minute penalty saw off the challenge of gutsy Leganes and spared Barcelona from a second successive embarrassing result.
The champions underwhelmed again after Tuesday's 4-0 Champions League defeat at Paris St-Germain and had keeper Marc-Andre ter Stegen to thank for a string of great saves.
Messi gave Barca an early lead, before Unai Lopez fired in the equaliser.
The Barcelona forward then slammed in the late winner from the spot.
Victory sees the Catalan giants move two points above Sevilla into second place in La Liga. They have 51 points, one fewer than leaders Real Madrid who have two games in hand.
The top three teams qualify directly for the Champions League next season.
In other games round which was held last night, Villarreal win at Real Sociedad (1-0), and Valencia at home to Athletic Bilbao account (2-0), and Celta Vigo at home to Osasuna (3-0).
Source: QNA
GMT 09:10 2017 Sunday ,29 October
Rodrigo keeps Valencia rolling, Atletico heldGMT 06:59 2017 Thursday ,30 March
Bolivia beat Messi-less Argentina 2-0 in qualifierGMT 13:24 2017 Monday ,20 March
Luis Enrique, Pique marvel at prolific MessiGMT 13:58 2017 Monday ,06 March
Guardiola sees huge potential in in-form SaneGMT 10:57 2017 Sunday ,05 March
Barcelona beats Celta de Vigo 5-0 during Spanish first division soccer matchMaintained and developed by Arabs Today Group SAL.
All rights reserved to Arab Today Media Group 2023 ©
Maintained and developed by Arabs Today Group SAL.
All rights reserved to Arab Today Media Group 2023 ©