BOSTON — David Ortiz hit a tiebreaking two-run homer in the seventh inning, and the Boston Red Sox beat the Toronto Blue Jays 5-3 on Friday night.
The AL East champion Red Sox snapped a three-game losing streak and stayed a half-game ahead of Cleveland in the race for home-field advantage when their playoff series begins next week.
The Blue Jays fell one game behind Baltimore in the wild-card race and are now within range of Detroit and Seattle in the fight for the AL’s final postseason berth.
With his image mowed into the grass in center for the final regular-season series of his career, Ortiz hit his 38th homer of the year — and No. 541 of his career — to help Boston rally from a 3-1 deficit with four runs in the seventh.
Dustin Pedroia had three hits for Boston, and Brad Ziegler (2-3) picked up the win with one inning of scoreless relief. Craig Kimbrel pitched the ninth for his 31st save.
Devon Travis had three hits, including a pair of doubles, and Jose Bautista homered for Toronto. Joe Biagini (4-3) got the loss.
RANGERS 3, RAYS 1
ARLINGTON, Texas — Yu Darvish looked playoff-ready with a season-high 12 strikeouts in six innings, and Texas clinched home-field advantage throughout the postseason.
The Rangers have the tiebreakers over fellow contenders Boston and Cleveland. The AL owns home-field advantage in the World Series thanks to its win in the All-Star Game.
Darvish (7-5) allowed one run and three hits.
Shin-Soo Choo returned to Texas’ lineup after missing 39 games with a fractured left forearm. Choo pulled a single to right in his first plate appearance since Aug. 15 and went 1 for 4.
Matt Andriese (8-8) gave up three runs and seven hits, including solo home runs to Carlos Beltran and Rougned Odor.
ORIOLES 8, YANKEES 1
NEW YORK — Baltimore’s Mark Trumbo hit his major league-leading 47th home run, and Jonathan Schoop and Adam Jones also went deep in a six-run fifth inning.
The Orioles opened a one-game lead over the Blue Jays and remain 1 1/2 games in front of Detroit for the AL’s two wild cards. Two games are left, and the Orioles’ magic number for a postseason berth is two.
Trumbo and Jones homered off Michael Pineda (6-12), who started with 3 2/3 hitless innings and suddenly became ineffective.
Schoop tied his career high with five RBIs. Yovani Gallardo (6-8) won for just the second time in nine starts since Aug. 5, allowing two hits, three walks and Mark Teixeira’s sacrifice fly in six innings.
Eliminated on Thursday, New York rested two regulars and pulled four others by the sixth inning.
METS 5, PHILLIES 1
PHILADELPHIA — Jay Bruce homered for the third straight game and drove in three runs, Robert Gsellman threw six sharp innings and the Mets moved closer to securing a wild-card berth.
The defending NL champions reduced their magic number to one. The Mets began the night atop the wild-card race, with San Francisco one game back and St. Louis two behind.
Gsellman (4-2) scattered seven hits and struck out seven.
Philadelphia starter Alec Asher (2-1) allowed three runs and five hits in six-plus innings.
CARDINALS 7, PIRATES 0
ST. LOUIS — Carlos Martinez pitched seven sharp innings, Matt Holliday hit an emotional home run and St. Louis stayed in the middle of the NL wild-card race.
The Cardinals began the day trailing San Francisco by one game for the second wild card. The Giants hosted the Los Angeles Dodgers later Thursday night.
Martinez (16-9) gave up five singles, walked one and struck out nine.
Holliday, who broke his left thumb when he was hit by a pitch Aug. 11, asked the club to activate him Friday to make what could be his farewell appearance in a Cardinals uniform. The Cardinals are not planning to pick up their $17 million option on his contract for 2017.
Holliday received a standing ovation before he pinch-hit in the seventh and responded with his 20th homer, and then came out for a curtain call.
Pittsburgh’s Tyler Glasnow (0-2) pitched five innings of one-run ball.
TIGERS 6, BRAVES 2
ATLANTA — Miguel Cabrera hit two home runs, Ian Kinsler and Justin Upton also connected and Detroit moved up in the playoff race.
The Tigers won their third straight and pulled within a half-game of Toronto for the second AL wild card.
The regular season is scheduled to end Sunday, but the Tigers might need to play beyond that. They were rained out against Cleveland this week and would have to make up that game if it impacts their playoff chances.
Detroit’s Daniel Norris (4-2) gave up one run and struck out eight in 6 2/3 innings.
The Braves, playing their final series at Turner Field before moving north to the suburbs next year, had won 10 of 11. Matt Wisler (7-13) got the loss.
MARLINS 7, NATIONALS 4
WASHINGTON — Christian Yelich homered for Miami, and Dee Gordon’s infield single in the sixth inning scored the go-ahead run.
The game began following a 1 hour, 43 minute rain delay. The series opener came a day after a memorial service in Florida for Jose Fernandez. The Marlins ace died in a boating accident Sunday.
Mike Dunn (6-1) got the win and A.J. Ramos pitched the ninth for his 40th save.
Anthony Rendon and Stephen Drew hit back-to-back home runs for Washington in a four-run fourth. Sammy Solis (2-4) got the loss.
Bryce Harper went 0 for 4 with four strikeouts in his return to the Nationals lineup after sitting out the previous four days with a left thumb injury.
CUBS 7, REDS 3
CINCINNATI — Ben Zobrist homered twice and drove in three runs, helping the Cubs to the win.
Jake Buchanan (1-0) pitched five shutout innings as Chicago improved to 14-3 against Cincinnati this season with two games to play. The right-hander allowed two hits in his first start since 2014 with Houston.
Anthony Rizzo also drove in two runs for the NL Central champions, who were coming off a rare tie in Pittsburgh due to rain.
Joey Votto hit a two-run homer in the ninth for last-place Cincinnati, which announced before the game that manager Bryan Price would return next season. Josh Smith (3-3) was charged with two runs and three hits in five-plus innings.
WHITE SOX 7, TWINS 3
CHICAGO — Carlos Rodon tied an AL record by striking out the first seven batters and Tim Anderson had three hits to help the White Sox hand the Twins their 103rd loss — the most since the franchise moved to Minnesota.
Rodon (9-10) finished with 10 strikeouts in six innings and was charged with three runs and three hits. Anderson also drove in two runs in Chicago’s sixth win in seven games.
Tyler Duffey (9-12) gave up five runs in two-plus innings to ensure Minnesota won’t have a 10-game winner while reaching the most losses since the Washington Senators went 50-104 in 1949. The 57-103 Twins have two games left.
INDIANS 7, ROYALS 2
KANSAS CITY, Mo. — Ryan Merritt retired his final 13 batters while pitching five strong innings in his first big league start and Francisco Lindor hit a three-run homer for Cleveland.
Merritt (1-0) gave up a run on three hits in the first, but nothing after that. Merritt, who had made three relief appearances after being promoted Sept. 11 from Triple-A Columbus, threw 62 pitches, striking out four and walking none.
Lindor, who snapped an 0-for-29 drought with a double in a four-run third, homered off the left-field foul pole in the seventh.
Kansas City’s Yordano Ventura (11-12) gave up four runs and six hits in six innings.
ROCKIES 4, BREWERS 1
DENVER — Nolan Arenado hit his NL-leading 41st homer for Colorado, and Chad Bettis pitched effectively into the seventh inning.
Bettis (14-8) allowed one run and eight hits in 6 2/3 innings while extending a career high in wins this season. He struck out five in the Rockies’ first win in four games against Milwaukee this season.
Carlos Estevez got four outs before Adam Ottavino worked the ninth for his seventh save.
Chris Carter connected in the fourth inning, becoming the sixth player in Brewers history to reach 40 home runs in a season. Brent Suter (2-2) got the loss.
GIANTS 9, DODGERS 3
SAN FRANCISCO — Madison Bumgarner lined a key two-run double in the sixth and emphatically pumped his arms while yelling in celebration at second base, and San Francisco maintained its slim lead for the second NL wild card.
Brandon Belt added a three-run homer in the seven-run inning and Bumgarner (15-9) beat the Dodgers for the first time in seven starts since May 21, 2015. It was win No. 100 of his career.
The Mets stayed one game ahead of the Giants for the top wild card, while San Francisco remained a game up on St. Louis for the second spot.
Angel Pagan might have made the play of the night — without his glove or bat. He body-slammed a male fan in the left field grass during the fourth inning after he ran onto the field.
Once Rich Hill left the game, San Francisco pounced against Brandon McCarthy (2-3).
ANGELS 7, ASTROS 1
ANAHEIM, Calif. — Jefry Marte homered and scored twice and Daniel Wright earned his first major league victory to help the Angels beat Houston.
In Wright’s ninth big league appearance, he limited the Astros to one run and six hits while striking out five. Wright (1-5), who was claimed off waivers from the Cincinnati Reds on Sept. 4, became the 24th pitcher to get a win for the Angels this season, setting an American League record. The Texas Rangers previously held the record with 23 winning pitchers in 2014.
Mike Trout set a club record with his 114th walk of the season, breaking Tony Phillips’ previous Angels record set in 1995. Trout stole two bases, bringing his season total to 29.
The Angels broke the game open with a four-run second inning. Brad Peacock (0-1) loaded the bases with no outs for Kaleb Cowart, who doubled to empty them. Kowart took third on the throw, allowing him to score while Ji-Man Choi was caught in a rundown two batters later.
MARINERS 5, ATHLETICS 1
SEATTLE — Robinson Cano hit two home runs, Taijuan Walker pitched six effective innings and Seattle moved within one game of the second AL wild-card spot.
Seattle, which has won seven of nine, is one game behind Toronto for the second spot. The Mariners also trail Detroit by a half-game.
Cano had a two-run homer in the first. He added his 38th home run in the third, a solo shot that gave him 100 RBIs for the season. Norichika Aoki and Nelson Cruz also homered off Raul Alcantara (1-3), who was tagged for five runs on seven hits in two-plus innings.
Walker (8-11) allowed one run on two hits in six innings, but walked five in a 113-pitch outing. The only run came on Ryon Healy’s 13th homer to open the sixth. Evan Scribner, Nick Vincent and Steve Cishek each pitched a scoreless inning of relief.
DIAMONDBACKS 5, PADRES 3
PHOENIX — Paul Goldschmidt and Chris Owings each hit a two-run home run and Arizona opened its final series of a disappointing season with a win.
Ryan Schimpf hit a two-run home run for San Diego.
Randall Delgado (5-2) pitched an inning of relief to get the victory. Patrick Corbin threw 2 2/3 innings of scoreless relief before Daniel Hudson came on to get Wil Myers to pop out to first for his fifth save.
Edwin Jackson (5-7) gave up five runs and seven hits in five innings to take the loss.
The crowd for the matchup between the bottom two teams in the NL West was announced at 42,651, the second-largest of the season at home for the Diamondbacks. Only the season opener drew more.