West Ham s James Ward-Prowse, right, is challenged by Liverpool s Mohamed Salah during the English Premier League soccer match between Liverpool and West Ham at the Anfield stadium in Liverpool, England, Sunday, Sept. 24, 2023. AP
Jurgen Klopp's men showed more promising signs of getting back to their best.
The Reds sank to fifth last season, but have the firepower that could make them the biggest threat to City's throne as champions.
Mohamed Salah opened the scoring from the penalty spot after he was upended in the box by Nayef Aguerd.
West Ham's only previous defeat this season came at home to City last weekend and they bounced back to fully merit their equaliser before half-time when Jarrod Bowen's diving header found the far corner.
However, the Hammers were undone by a moment of magic when Alexis Mac Allister's inch-perfect chip picked out Darwin Nunez, who volleyed into the far corner.
Diogo Jota then came off the bench to make it 3-1 five minutes from time.
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO_Sports and on Facebook at AhramOnlineSports.)