DENVER — The Los Angeles Dodgers secured home-field advantage throughout the playoffs Saturday by beating Colorado 5-3 on a night when the Rockies clinched their first postseason appearance since 2009.

It was the Dodgers’ 103rd win of the season, the most since the team moved to Los Angeles. At 103-58, they’re assured of the best record in baseball.

Healing from a sore knee, Chris Taylor drove in the go-ahead run with a groundout in the seventh after Tyler Chatwood (8-15) hit both Yasiel Puig and Chase Utley to start the inning. Puig finished 2 for 2 with a homer, walk and four runs.

Carlos Gonzalez hit a solo homer off Clayton Kershaw for the Rockies, who officially wrapped up the second NL wild card spot when St. Louis rallied to beat Milwaukee earlier in the day.

Brandon Morrow (6-0) picked up the win, and Kenley Jansen earned his 41st save on his 30th birthday.

RED SOX 6, ASTROS 3

BOSTON — David Price came on in relief of Drew Pomeranz and squelched a dangerous seventh-inning rally, helping Boston clinch the first back-to-back AL East titles in franchise history.

The Red Sox avoided the possibility of a one-game tiebreaker with the rival Yankees, and instead left New York with a wild-card spot. Boston also set up an immediate rematch with the Astros in the playoffs.

Mookie Betts homered and scored three times, and Pomeranz (17-6) was charged with one run in six-plus innings.

Lance McCullers (7-4), who was pitching for a spot in Houston’s postseason rotation, allowed five runs and six hits in 4 1/3 innings.

CARDINALS 7, BREWERS 6

ST. LOUIS — Milwaukee was eliminated from playoff contention when it squandered a six-run lead in a loss to St. Louis, handing baseball’s final postseason spot to Colorado.

Brewers reliever Anthony Swarzak (6-4) gave up a tying, two-run single to Stephen Piscotty in the eighth inning and a go-ahead single to Harrison Bader. Milwaukee tried to rally in the ninth, but Brett Phillips struck out with a runner on second to end it.

Milwaukee’s loss clinched the second NL wild card for Colorado, which plays at division rival Arizona in the wild-card game Wednesday. The winner advances to a best-of-five Division Series against the NL West champion Los Angeles Dodgers.

Ryan Sherriff (2-1) pitched a scoreless inning for the win, and Juan Nicasio worked the ninth for his sixth save.

PIRATES 4, NATIONALS 1

WASHINGTON — Nationals ace Max Scherzer was pulled with a hamstring cramp while tuning up for the playoffs.

The Nationals said Scherzer was sent for a precautionary MRI on his right hamstring. Manager Dusty Baker downplayed the severity of the injury.

The Pirates rallied with four runs in the ninth inning off Brandon Kintzler (2-1). Sean Rodriguez singled home the tying run with Pittsburgh down to its final strike. Max Moroff added a bases-loaded triple.

George Kontos (1-6) got the win and Felipe Rivero had his 21st save.

TIGERS 3, TWINS 2

MINNEAPOLIS — Andrew Romine became the fifth player in baseball history to play all nine positions in one game, helping the Tigers to the win.

Romine, a 31-year-old utilityman, played catcher for the first time in his career and got one out on the mound. He was the first player to accomplish the feat since Shane Halter for Detroit against Minnesota on Oct. 1, 2000.

Buck Farmer (5-5) pitched five strong innings for the win and Shane Greene recorded his ninth save. Aaron Slegers (0-1) took the loss for the Twins, allowing three runs in 4 1/3 innings.

YANKEES 2, BLUE JAYS 1

NEW YORK — Aaron Judge hit his 52nd homer, powering the Yankees to the win.

The Yankees will host Minnesota in the wild-card game Tuesday after the Red Sox clinched the AL East title with a 6-3 victory against Houston.

Replacement starter CC Sabathia (14-5) won his fifth straight decision. With New York still in contention for the division title to begin the day, manager Joe Girardi opted for Sabathia to pitch on his regular four days’ rest in place of the originally scheduled Jaime Garcia.

Aroldis Chapman pitched a perfect ninth for his 22nd save in 26 chances.

Toronto right-hander Marcus Stroman (13-9) allowed two runs and six hits in four innings. The Blue Jays scored in the eighth on Josh Donaldson’s sacrifice fly.

PADRES 3, GIANTS 2

SAN FRANCISCO — Matt Cain pitched five shutout innings for San Francisco, then raised his arms and waved his cap, fighting off tears amid a standing ovation as he walked off the mound for final time.

Cain’s decorated 13-year career came to an end and the home crowd at AT&T Park saluted the right-hander, a cornerstone of the Giants’ championship era who pitched the only perfect game in franchise history.

Cain made his last start a day ahead of his 33rd birthday and at the close of a $127.5 million, six-year contract. Beset by injuries in recent years, Cain has said he couldn’t imagine pitching for another team.

Wil Myers hit his 30th homer off Giants reliever Reyes Moronta in the sixth. San Diego jumped in front in the ninth on Austin Hedges’ two-out, two-run double off Sam Dyson (3-4).

Buddy Baumann (2-1) pitched a scoreless eighth and Brad Hand worked the ninth for his 21st save.

MARLINS 10, BRAVES 2

MIAMI — Miami slugger Giancarlo Stanton remained at 59 home runs, but Derek Dietrich connected for the Marlins.

Stanton went 1 for 5 and drove in a run. He has one more game to become the first player to hit 60 home runs in a season since 2001 when Barry Bonds hit 73 and Sammy Sosa hit 64.

Dietrich drove in three runs, and Odrisamer Despaigne (2-3) pitched seven innings of two-run ball.

Atlanta right-hander Lucas Sims (3-6) allowed six runs in two innings.

WHITE SOX 2, INDIANS 1

CLEVELAND — Carson Fulmer pitched five strong innings and Kevan Smith drove in two runs, leading the White Sox to the road win.

Cleveland clinched the best record in the AL earlier in the day when Houston lost to Boston. The AL Central champions will play the winner of the wild-card game between the Yankees and Twins in the AL Division Series.

Michael Brantley had a pinch-hit single in the fifth for Cleveland, marking his first game action since spraining his right ankle on Aug. 8. He worked Fulmer (3-1) for a 10-pitch at-bat before sharply singling to right.

Smith doubled off Mike Clevinger (12-6) in the sixth, scoring Avisail Garcia for a 2-1 lead. His RBI single in the fourth off Corey Kluber scored Jose Abreu.

Juan Minaya tossed a perfect ninth for his ninth save.

ROYALS 4, DIAMONDBACKS 3

KANSAS CITY, Mo. — Jorge Bonifacio hit a three-run homer with two outs in the sixth inning to help Kansas City to the victory.

Bonifacio’s homer, his 17th, came against Archie Bradley (3-3) with Paulo Orlando and Ramon Torres aboard.

Kansas City’s Jake Junis (9-3) allowed two runs and five hits in six innings. Mike Minor worked around a leadoff double in the ninth to collect his sixth save in eight chances.

Diamondbacks first baseman Paul Goldschmidt went 0 for 3 and finished September with a .175 batting average (14 for 80).

CUBS 9, REDS 0

CHICAGO — Jon Lester struck out seven over five innings, Kyle Schwarber hit his 30th home run and the NL Central champion Cubs earned their 15th win in 18 games.

Lester (13-8) allowed four hits and walked none in a possible tuneup for Game 1 of the NL Division Series against Washington.

Schwarber finished with four RBIs. He hit a two-run drive in the second and a two-run single in the third against rookie Jackson Stephens (2-1).

The last-place Reds lost for the 10th time in 11 games.

MARINERS 6, ANGELS 4

ANAHEIM, Calif. — Mitch Haniger had five hits and Kyle Seager launched a three-run homer to highlight a five-run eighth inning that rallied Seattle to the victory.

The Mariners also got home runs from Yonder Alonso and rookie Jacob Hannemann. Casey Lawrence (2-3) earned the victory in relief, and Edwin Diaz got four outs for his 34th save.

Seattle scored all five runs in the eighth off Cam Bedrosian (6-5), who allowed five consecutive hits without retiring a batter.

RANGERS 8, ATHLETICS 4

ARLINGTON, Texas — Joey Gallo hit his 40th and 41st home runs, Andrew Cashner pitched six solid innings and the Rangers beat the Athletics.

Gallo belted a two-run drive in the second inning and a solo shot in the third, becoming the sixth Ranger to hit 40 homers in a season and the first since Josh Hamilton had 43 in 2010.

Cashner (11-11) limited Oakland two runs in six innings.

Oakland’s Daniel Gossett (4-11) was charged with four runs in 1 2/3 innings.

RAYS 4, ORIOLES 3

ST. PETERSBURG, Fla. — Chris Archer won for the first time since Aug. 22, and Brad Miller hit a three-run homer for the Rays.

Archer (10-12) pitched five shutout innings. Alex Colome worked the ninth for his major league-leading 47th save.

Miller connected against Miguel Castro (3-3) in the fourth for his ninth homer. Kevin Kiermaier scored on Wilson Ramos’ sacrifice fly in the seventh.

METS 7, PHILLIES 4, 11 INNINGS

PHILADELPHIA — Asdrubal Cabrera hit a three-run homer with two outs in the 11th inning, sending the Mets to the road win.

Cabrera finished with four hits and four RBIs. Jacob Rhame (1-1) pitched two shutout innings for his first major league win, and Jeurys Familia tossed a scoreless 11th for his sixth save.

Cabrera extended a Mets record with the club’s 224th homer of the season, sending his drive to left-center off Adam Morgan (3-3).


More AP baseball: https://apnews.com/tag/MLBbaseball