The Hammers took a 12th-minute lead through Lucas Paqueta’s spectacular strike, only for Cody Gakpo to equalise from long-range five minutes later.
Joel Matip’s 67th minute header moved sixth placed Liverpool within six points of fourth placed Manchester United, who have two games in hand.
© Agence France-Presse