The Tigers trailed 3-0 before scoring twice in the sixth and taking the lead in their last at-bat. With runners on first and third, Peralta hit a line drive just fair down the left-field line off Garrett Richards (3-3). Alex Avila added an RBI single.
Octavio Dotel (4-2) threw two scoreless innings for the win. Jose Valverde pitched a perfect ninth for his 26th save in 30 chances.
Vernon Wells homered for the Angels, who had won four straight. Dan Haren allowed two runs in 5 2-3 innings.
Rookie pitcher Drew Smyly yielded one earned run over six innings for the Tigers in his return from a strained muscle in his right side.
Albert Pujols missed a third straight game for the Angels with a right calf injury.
ORIOLES 8, BLUE JAYS 2
BALTIMORE (AP) — J.J. Hardy homered and scored three runs, rookie Steve Johnson allowed four hits over six innings and Baltimore beat Toronto to equal its win total of last season.
Hardy, Adam Jones and Matt Wieters each had two RBIs for the Orioles, who have won 14 of 20 since Aug. 3. Baltimore (69-57) is in the thick of the AL wild-card chase and only four games out of first place in the AL East after going 69-93 in 2011.
Johnson (2-0) gave up two runs and struck out seven in his second big league start.
Toronto lost its seventh straight, and the bad news didn't stop there. Right fielder Jose Bautista left in the third inning with discomfort in his left wrist, one night after being activated from the disabled list. Bautista was sidelined for 5 1/2 weeks with inflammation in that same wrist.
The Blue Jays fell 14 games under .500 (56-70) for the first time since Sept. 25, 2009. They have lost six straight series.
Edwin Encarnacion hit his 34th home run in Toronto's season-high eighth straight defeat on the road.
Pitching in the majors for the first time since June 11 following a stint on the disabled list with an oblique strain, starter Brandon Morrow (7-5) allowed four runs, two earned, and six hits in 4 2-3 innings.
INDIANS 3, YANKEES 1
CLEVELAND (AP) — Justin Masterson handled New York's power-packed lineup for 6 2-3 innings and Michael Brantley hit a three-run homer as Cleveland beat the Yankees to snap a nine-game skid.
It's the second time this month that Masterson (10-11) has busted a long losing streak for the Indians. On Aug. 8, he beat Minnesota and stopped Cleveland's 11-game slide, one loss shy of the club record.
Brantley homered in the first inning off Hiroki Kuroda (12-9), and the Indians, who were in playoff contention in late July, held on to win for just the fifth time in 27 games. Cleveland is 5-18 in August.
Chris Perez pitched a perfect ninth for his 33rd save.
Despite the loss, the AL East-leading Yankees remained 3 1/2 games ahead of Tampa Bay.
ROYALS 10, RED SOX 9, 12 INNINGS
BOSTON (AP) — Tony Abreu singled home the go-ahead run in the 12th inning, and Kansas City completed its comeback from a six-run deficit by beating Boston.
Just a few hours after Boston traded scheduled starter Josh Beckett to the Dodgers along with Adrian Gonzalez, Carl Crawford and Nick Punto, the Royals scored three runs before substitute starter Aaron Cook got a single out. The Red Sox took a 9-3 lead after four innings lead thanks to four hits from Gonzalez's replacement, Mauro Gomez, including his first major league homer.
The Royals made it 9-all with six runs in the seventh — all of them with two outs, including a game-tying, two-run triple by Mike Moustakas that was his first hit in 19 at-bats.
Francisley Bueno (1-0) earned his first major league win after coming in with runners on first and third and one out in the 10th and pitching out of trouble. Greg Holland pitched the 12th for his seventh save.
Junichi Tazawa (0-1) took the loss.
Alex Gordon drove in four runs and Billy Butler had three hits for the Royals, who had lost three of their previous four games.
Mike Aviles hit a three-run homer for Boston, which had a season-high 20 hits
ATHLETICS 4, RAYS 2
ST. PETERSBURG, Fla. (AP) — Brandon McCarthy pitched seven solid innings to lead Oakland over Tampa Bay.
McCarthy (7-5) allowed two runs and four hits while improving to 9-0, including three wins this season, against AL East teams over 14 starts since 2009.
Chris Carter and Seth Smith homered off Jeremy Hellickson (8-9) for the Athletics, who took two of three from the Rays and moved within a half-game of the AL wild-card leaders. Oakland has won eight of 10 to go a season-high 12 games over .500.
Sean Doolittle worked a perfect eighth and Grant Balfour got three outs for his 14th save.
Desmond Jennings homered for the Rays.
RANGERS 9, TWINS 3
ARLINGTON, Texas (AP) — Ian Kinsler hit a leadoff homer and Mitch Moreland launched a 463-foot shot, sending Ryan Dempster and the Texas Rangers past Minnesota for their fourth straight win.
Kinsler homered in the first inning and hit a bases-loaded triple in the third that made it 9-0. He also singled.
Dempster allowed two runs in six innings and improved to 3-1 since he was acquired from the Cubs on July 31. He was 5-5 with Chicago.
Moreland's three-run homer was the third-longest shot at the Rangers' stadium. The AL West leaders have won eight of nine against the Twins this season.
Justin Morneau went 4 for 4 with a home run for Minnesota, which has lost five in a row and 14 of 16. Brian Duensing (3-9) gave up a career-worst nine runs in 2 1-3 innings.
WHITE SOX 5, MARINERS 4
CHICAGO (AP) — Tyler Flowers hit a tying homer and Dewayne Wise delivered a go-ahead single in the sixth inning to help Chicago beat Seattle for its fifth straight win.
The Mariners took a first-inning lead on Kyle Seager's three-run homer before the White Sox rallied to preserve their 2 1/2-game lead over second-place Detroit in the AL Central. Seager also connected in the ninth against closer Addison Reed to pull Seattle within a run.
Flowers, who entered in the third when catcher A.J. Pierzynski and manager Robin Ventura were ejected, led off the sixth with his fifth homer on the first pitch of the inning by Blake Beavan (8-8).
With two down and Alexei Ramirez on third, Wise singled to centre against off Charlie Furbush.
Nate Jones (6-0) got the final out of the sixth. Reed gave up Seager's 15th homer and then a single to Justin Smoak before earning his 24th save in 28 chances.
Reed blew a save Friday night when Seattle scored six times in the ninth only to get the win when Chicago rallied in the bottom half.Suggest a correction