With their 81st victory — and 13th in a row in extra innings — the Orioles are assured no worse than a .500 record for the first time since 1997. Baltimore (81-62) remained in a first-place tie with the New York Yankees.
In a 5-hour, 14-minute game, Chris Archer (0-3) walked Adam Jones with two outs in the 14th, Endy Chavez singled and Machado followed with a soft liner toward the line that Joyce trapped.
Randy Wolf (2-0) struck out Joyce with two on in the top of the 14th. Baltimore has won 14 of 19 overall and is 26-11 since Aug. 3.
BLUE JAYS 8, MARINERS 3
TORONTO (AP) — Edwin Encarnacion hit his 40th home run, Adam Lind also connected and Toronto sent Felix Hernandez to his third straight loss.
Encarnacion hit a three-run drive into the second deck in left in a five-run fourth as the Blue Jays avoided a three-game sweep. Lind hit a two-run shot in the first.
Hernandez (13-8) allowed a season-high seven runs and 10 hits in four innings. He has a 9.00 ERA in his last three outings, losing three consecutive starts for the first time since Sept. 12-24 last year.
Henderson Alvarez (9-12) allowed three runs in seven innings to beat his childhood idol. Both men were born in Valencia, Venezuela.
YANKEES 2, RAYS 0
BOSTON (AP) — Derek Jeter shook off an injury to tie Willie Mays for 10th place on the career hits list, backing Phil Hughes and helping the Yankees to maintain a share of the AL East lead. New York won consecutive games for the first time in a month.
Hughes (15-12) gave up five hits in 7 1-3 innings, struck out seven and walked one. Rafael Soriano pitched the ninth for his 38th save.
Jeter started at designated hitter after leaving Wednesday night's 5-4 win when he pulled up lame lunging for first base trying to avoid a double-play grounder in the eighth.
Andruw Jones hit a fourth-inning sacrifice fly off Felix Doubront (10-9).
ANGELS 6, ATHLETICS 0
ANAHEIM, Calif. (AP) — Jered Weaver (17-4) allowed two hits in seven innings and struck out nine in his first start since skipping a turn in the rotation because of biceps tendinitis.
Torii Hunter homered and added an RBI single in a six-run seventh as Los Angeles avoided a four-game sweep and remained 3 1/2 games back for the AL's second wild-card berth.
The loss snapped Oakland's 12-game road winning streak, two shy of the franchise record set by the Philadelphia Athletics in May 1931. The A's have been shut out a big league-high 16 times.
Brett Anderson (4-1) gave up five runs and nine hits in 6 2-3 innings. A's rookie Yoenis Cespedes left midway through the fifth because of a sprained right wrist.
INDIANS 5, RANGERS 4
ARLINGTON, Texas (AP) — Jason Kipnis hit a two-run homer in the ninth inning off Joe Nathan and the Indians snapped a five-game losing streak, beating the Rangers.
The Rangers remained three games ahead of Oakland in the AL West after the Athletics lost to the Los Angeles Angels.
Nathan (2-4) had converted a club-record 31 straight save chances before the Indians erased a 4-2 deficit in the ninth.
Ezequiel Carrera homered leading off the ninth. Pinch hitter Russ Canzler singled and Kipnis homered off to chase Nathan, who did not record an out.
Scott Maine (1-0) got the final two outs in the eighth in his third appearance with the Indians this season.
TWINS 4, ROYALS 3, 10 INNINGS
MINNEAPOLIS (AP) — Denard Span had a game-ending RBI double in the 10th inning and the Twins rallied for a victory over Kansas City.
Trailing 3-1, the Twins capitalized on a bases-loaded walk by Royals closer Greg Holland in the eighth and Trevor Plouffe's homer in the ninth to tie it.
Alexi Casilla led off 10th with a double to right-centre off Francisley Bueno (1-1). Span got his winning hit.
Closer Glen Perkins (3-1) pitched two scoreless innings for the win.
Josh Willingham also connected for Minnesota and Salvador Perez had two RBIs for the Royals.Suggest a correction