DETROIT (AP) — Max Scherzer escaped a bases-loaded jam in the fifth, Rajai Davis and J.D. Martinez homered, and the Detroit Tigers beat Kansas City 4-2 on Tuesday night to pull within percentage points of the Royals atop the AL Central.

Scherzer (16-5) allowed a run and seven hits in 6 2-3 innings. Kansas City was down 3-1 in the fifth when Alex Gordon's deep fly to right went just foul with two on. Gordon walked to load the bases with one out, but Salvador Perez lined out and Eric Hosmer struck out.

Joe Nathan earned his 30th save in 36 chances, allowing two infield singles to start the ninth before ending it with two strikeouts sandwiched around a picked-off runner.

Kansas City's Jason Vargas (11-8) allowed four runs and six hits in 5 1-3 innings. He struck out six and walked three.

Detroit will try to sweep the three-game series Wednesday night.

ANGELS 9, RANGERS 3

ARLINGTON, Texas (AP) — Kole Calhoun hit a leadoff homer, Collin Cowgill had a big eighth inning and Los Angeles stretched its winning streak to six by beating Texas.

Cowgill reached on an infield single to start a seven-run eighth. He scored on Mike Trout's triple and capped the outburst with a bases-loaded triple.

The Angels, with the best record in the majors at 89-55, matched their longest winning streak of the season. The AL West leaders have won 12 of 14 overall.

Hector Santiago (5-7) allowed only a solo homer in five innings.

Calhoun's third leadoff homer this season, and 15th long ball overall, came off Colby Lewis (9-13), who pitched into the eighth.

ATHLETICS 11, WHITE SOX 2

CHICAGO (AP) — Josh Donaldson had a career-high five hits while driving in four runs, helping Jon Lester and the Athletics to the road win.

Donaldson also scored two runs as Oakland got just its third win in 12 games. Lester (14-10) gave up two runs over eight innings, and the Athletics took advantage of a season-high five errors for Chicago.

Possibly the only negative for Oakland was Craig Gentry suffering a concussion in a collision at first base while beating out a bunt single in the fifth. He was replaced by pinch-runner Josh Reddick.

Chicago's John Danks (9-11) lasted six innings, allowing four runs — two earned — and seven hits.

ORIOLES 4, RED SOX 1

BOSTON (AP) — Alejandro De Aza hit two homers, Adam Jones added another and Baltimore beat Boston to win for the 10th time in 13 games.

Chris Tillman (12-5) gave up one run in five innings, the 18th straight start in which he allowed three earned runs or fewer. Zach Britton pitched the ninth for his 34th save in 38 opportunities.

The first-place Orioles maintained their 10-game lead in the AL East over Toronto.

Last-place Boston is a season-high 22 1/2 games out of first one year after winning the World Series.

The three homers increased Baltimore's major league-leading total to 191 and came off rookie Anthony Ranaudo (3-2). He left after allowing four runs and six hits in 3 1-3 innings.

Xander Bogaerts hit his 10th homer for the Red Sox.

RAYS 4, YANKEES 3

NEW YORK (AP) — Left fielder Matt Joyce threw out Stephen Drew in the fifth inning when catcher Ryan Hanigan blocked the sliding runner, and Tampa Bay held on to beat the fading Yankees.

Hours after Major League Baseball gave teams and umpires new guidelines on what catchers can do under this year's experimental rule designed to avoid collisions, the latest instructions were put to a test when Drew tried to score what would have been the tying run.

The out call was upheld after a replay review. Derek Jeter then lined into a double play, and the Rays preserved their 4-3 lead.

Chris Archer (9-8) allowed three runs and seven hits in 6 1-3 innings. Jake McGee got three outs for his 17th save in 19 chances.

New York began the night five games back for the second AL wild card with 21 remaining, and the loss dropped the Yankees to 3-4 on their next-to-last homestand. The game drew 31,188, the smallest crowd at new Yankee Stadium and New York's home low since Sept. 23, 2004, according to STATS.

James Loney's solo homer in the second off Hiroki Kuroda (10-9) put the Rays ahead.

NATIONALS 6, BRAVES 4

WASHINGTON (AP) — Adam LaRoche had two hits and two RBIs, and Washington essentially put to rest any thought that there is still a serious race for the NL East title with a win over Atlanta.

Washington's second victory in two nights over the Braves, gave the Nationals a nine-game lead over their second-place rivals with 19 to play. The Nationals have won five of the last seven meetings with the Braves.

Jordan Zimmermann (11-5) allowed four runs (two earned) with seven strikeouts and no walks in six innings. He hasn't lost a decision since July 11 and is 5-0 — and the Nationals are 8-0 — in his last eight starts.

LaRoche singled in a run off Ervin Santana (14-8) in the Nationals' four-run first inning and added another RBI single in the second. LaRoche is 9-for-19 with four home runs and 12 RBIs in his last six games.

REDS 9, CARDINALS 5

CINCINNATI (AP) — Devin Mesoraco homered and drove in three runs, and Mike Leake pitched into the seventh inning and doubled home a run, as Cincinnati snapped a six-game losing streak against St. Louis.

The NL Central-leading Cardinals lost for only the second time in 11 games and maintained their 4½-game lead over Pittsburgh.

The Reds won for the third time in 11 games. They are 17-33 since the All-Star break, a slide that has dropped them out of contention.

Leake (11-11) was coming off his worst start of the season. Against the Cardinals, Leake allowed three runs and eight hits.

He also doubled home a run in the fourth off Michael Wacha (5-6) for a 3-1 lead. His fifth double of the season was his 68th career hit, the most by any pitcher in the majors since his debut in 2010.

Aroldis Chapman relieved with two on and two outs in the ninth and fanned Mark Ellis on a 101 mph fastball to end it, getting his 31st save in 33 chances.

PHILLIES 4, PIRATES 3

PHILADELPHIA (AP) — Maikel Franco hit a tiebreaking single in the seventh inning to lift Philadelphia over Pittsburgh.

Freddy Galvis homered, doubled and scored the go-ahead run after an infield single and a stolen base. Justin De Fratus (3-1) pitched a scoreless inning for the win. Jonathan Papelbon finished for his 36th save in 39 chances.

The Pirates entered the night with a 1 1/2-game lead over Atlanta and Milwaukee for the second NL wild card. The last-place Phillies have won 10 of 15.

Galvis led off the seventh with a grounder to deep shortstop for a single off Justin Wilson (3-4). After a pair of strikeouts, Galvis stole second. He scored on Franco's hit to right.

Galvis hit a drive way out to right to tie it at 3 in the fifth.

ASTROS 2, MARINERS 1

SEATTLE (AP) — Jonathan Villar hit a tiebreaking single in the ninth inning to lift Collin McHugh and the Houston Astros over Seattle.

Logan Morrison homered off McHugh in the eighth to tie it, but the Mariners fell a half-game out in the race for the second AL wild card.

With two outs in the ninth, Yoervis Medina (4-3) walked Jon Singleton and he advanced to second on a wild pitch. Singleton moved to third on Matt Dominguez's single to deep shortstop before Villar came through.

McHugh (9-9) permitted only two hits in eight innings — an infield single in the fourth and Morrison's long homer. The right-hander struck out four and walked none.

Josh Fields worked the ninth for his fourth save.

PADRES 6, DODGERS 3

LOS ANGELES (AP) — Andrew Cashner pitched seven strong innings to win for the first time since mid-April, Jedd Gyorko hit a two-run homer and San Diego ended a six-game skid by beating Los Angeles.

The Dodgers had their four-game winning streak snapped, and their NL West lead was cut to 2½ games over San Francisco.

The Padres totaled 12 runs during their losing streak, but they built a 5-0 lead for Cashner by the third inning, helping him beat the Dodgers for the first time.

Cashner (3-7) allowed two runs and nine hits after going winless in 11 outings. His last victory was against Colorado on April 16.

Roberto Hernandez (8-11) gave up five runs and three hits in three innings.

GIANTS 5, DIAMONDBACKS 1

SAN FRANCISCO (AP) — Yusmeiro Petit pitched a four-hitter for his second career complete game, leading San Francisco past Arizona.

Making his third start since replacing Tim Lincecum in the rotation, Petit (5-3) faced just two more batters than the minimum and matched his season high of nine strikeouts. The right-hander needed only 84 pitches to finish the gem, the fewest in a nine-inning complete game by any pitcher in the majors this season.

Petit, who threw 26 first-pitch strikes, came within one out of a perfect game against the Diamondbacks on Sept. 6, 2013.

Leadoff hitter Angel Pagan had four hits and scored twice. Joe Panik went 5 for 5 to help San Francisco win its seventh straight home game. Overall, the Giants have won 10 of 13.

Ender Inciarte homered leading off the fourth to end Arizona's seven-game homerless drought, but the Diamondbacks have lost four straight. Wade Miley (7-11) struggled with his control and lasted only two innings.

MARLINS 6, BREWERS 3

MILWAUKEE (AP) — Casey McGehee and Marcell Ozuna hit back-to-back home runs with two outs in the ninth inning, breaking open a tie game and leading Miami over fading Milwaukee.

McGehee connected for a two-run shot off Francisco Rodriguez (4-5). Ozuna, who reached base five times, followed with another drive off of Rodriguez, who has given up a career-high 14 home runs this season.

Christian Yelich added a pair of singles and extended his hitting streak to 12 games.

The Brewers lost for the 13th time in 14 games.

Bryan Morris (8-1) pitched out of a no-out, bases-loaded jam in the eighth to earn the win. Steve Cishek earned his 34th save in 38 chances.

METS 2, ROCKIES 0

NEW YORK (AP) — Jacob deGrom burnished his rookie of the year credentials by pitching three-hit ball for eight dominant innings, and the New York Mets held on to beat Colorado for their sixth win in seven games.

Jeurys Familia, the Mets' third pitcher in the ninth inning, got Wilin Rosario to ground out with the bases loaded for his fifth save.

The win came after the Mets learned captain David Wright would be shut down for the rest of the season because of inflammation in his left shoulder.

Juan Lagares had an RBI single to help the Mets move to five games of .500 (70-75). Curtis Granderson added an RBI double off Christian Bergman (2-3).

In his 20th career start, deGrom (8-6) didn't allow a baserunner after Nolan Arenado's one-out double in the fourth — retiring his final 14 batters. He struck out nine and walked none.

Over his last 10 starts, deGrom is 7-1 with a 1.60 ERA.

TWINS 4, INDIANS 3

CLEVELAND (AP) — Oswaldo Arcia's two-run homer capped Minnesota's four-run fourth inning against Trevor Bauer, and the Twins dented Cleveland's playoff hopes.

The last-place Twins won for just the fourth time in 16 games.

Minnesota rookie Trevor May (2-4), who entered with a 9.38 ERA, limited the Indians to just two runs in five innings.

Arcia's homer off Bauer (5-8) made it 4-2, and the Twins hung on despite doing nothing else against the right-hander. Bauer gave up just four hits over eight innings.

Minnesota's bullpen combined for four innings of one-run ball, with Jared Burton working the ninth for his second save.

BLUE JAYS 9, CUBS 2

TORONTO (AP) — Jose Bautista hit a go-ahead, three-run double in the seventh inning, and Toronto rallied for the win.

Mark Buehrle (12-9) allowed two runs and 10 hits in seven innings to stop a six-start winless streak, helping the Blue Jays improve to 6-2 in September.

Aaron Sanchez pitched eighth and Daniel Norris finished for Toronto, which came in five games out in the AL wild-card race.

The Cubs lost their fifth straight game and dropped to 64-81, putting them one defeat away from a fifth consecutive losing season.

Neil Ramirez (2-2) took the loss.