– Dallas Keuchel became the AL's first 20-game winner and the Houston Astros backed him with the highest-scoring game in team history, moving closer to a playoff berth by routing the Arizona Diamondbacks 21-5 Friday night.

The Astros have won five of six and held their one-game edge over the Los Angeles Angels for the second AL wild-card spot. Houston trails West leader Texas by two games with two to play.

Keuchel (20-8) gave up two runs on six hits in six innings, becoming the Astros' first 20-game winner since Roy Oswalt went 20-12 in 2005.

The AL wild-card game is scheduled for Tuesday, and the Yankees already have clinched a spot. If Keuchel pitches in that game, it would mark the first time he's worked on three days' rest.

Carlos Correa hit a solo homer and bases-loaded triple. George Springer, Colby Rasmus and Luis Valbuena homered as Houston surpassed its previous high of 19 runs set twice, most recently against Pittsburgh in 1999.

Diamondbacks starter Ruby De La Rosa (14-9) lasted only three innings.

Arizona committed a season-worst four errors that led to five unearned runs. The Diamondbacks set a club record for runs allowed, topping the 20 they gave up at Colorado in 2003.

Peter O'Brien, a top Arizona prospect and a September call-up, hit a 471-foot shot into the picnic area in left field off Keuchel for his first big league home run.

Errors by Arizona third baseman Aaron Hill and left fielder Yasmany Tomas cleared the way for five runs in the first two innings.

The Astros built a 10-2 lead through six innings, then entered club-record territory with a seven-run seventh and four-run eighth.

Springer's head-first slide just beat right fielder Socrates Brito's' throw at the plate for a run in the first. Twenty more followed.

Houston improved to 15-3 in interleague games, 7-1 on the road.

Notes

• In case of a play-in game for the wild-card berth, Houston would travel to Minnesota if it's the Twins; the Astros would be home if it's the Angels. Houston last made the postseason in 2005.

• Astros outfielder Carlos Gomez, the former Twin, sat out because of sore ribs.

• Diamondbacks outfielder Ender Inciarte was out of the lineup after hitting a ball off his shin Thursday night.

Teammate David Peralta injured his right wrist diving for a ball Thursday night. An MRI was negative, but he did not play.