May 5, 2018, Longoria hit a double to mark his 1,500th career hit in an 11–2 victory over the Atlanta Braves. On June 14, Longoria was hit by a pitch on his left hand and left the game. Soon after, it was revealed that there was a fractured fifth metacarpal in his left hand. Two days into his injury, it was revealed that Longoria was facing surgery, which would likely keep him out for 6–8 weeks. Longoria experienced a disappointing 2018 season with the Giants as he hit a career-low 16 home runs (which led the Giants), had a career low in runs batted in with 54 and tied his career low with a .244 batting average. In 2019, he batted .254/.325/.437, with 20 home runs and 69 RBIs in 453 at bats. 2020-2022 On August 21, 2020 at Oracle Park, in a 6–2 win over the Arizona Diamondbacks, Longoria hit his 300th career home run off of Robbie Ray with one out in the bottom of the third inning. He became the 150th player in Major League history to reach the milestone. In 2020, he batted .254/.297/.425 with 7 home runs and 28 RBIs in 193 at bats. He was 2nd among NL third basemen with a .984 fielding percentage. On July 16, 2021, Longoria was placed on the 60-day injured list with a left shoulder sprain, and he missed half of the season. In the 2021 regular season, he batted .261/.351/.482 with 13 home runs and 46 RBIs in 253 at bats. On March 30, 2022, it was announced that Longoria would miss Opening Day and be out six weeks following surgery to repair a torn ligament in his finger. In 2022, in addition to a 24-at-bat stretch with AAA Sacramento in which he batted .333, with the Giants he batted .244/.315/.451 in 266 at bats with 14 home runs and 42 RBIs. He played 68 games at third base with the Giants, and 17 at DH. On November 10, 2022, the Giants declined their $13 million contract option on Longoria, making him a free agent for the first time in his career. Arizona Diamondbacks On January 5, 2023, Longoria signed a one-year, $4 million contract with the Arizona Diamondbacks. International career Longoria was selected for the United States national baseball team at the 2007 Baseball World Cup and 2009 World Baseball Classic. He was called upon on