KANSAS CITY, Mo. -

Alex Gordon drove home Chris Getz with a single in the ninth inning, and the Kansas City Royals beat the Toronto Blue Jays 3-2 on Sunday to avoid a series sweep.

The Royals played from behind nearly the entire way, but broke through when Getz doubled off Blue Jays reliever Darren Oliver (0-1) with one out in the ninth. Gordon swatted the first pitch he saw from Oliver into the outfield, and Getz slid home easily ahead of the tag.

Kelvin Herrera (1-0) pitched a perfect eighth inning for the Royals, who got eight strong innings from Ervin Santana to remain within striking distance.

Alcides Escobar and Lorenzo Cain also drove in runs for Kansas City.

Edwin Encarnacion homered and drove in both runs for the Blue Jays