Sunday’s American League results

Rays 7, Blue Jays 6 — Evan Longoria and Tampa Bay assured themselves of at least a tie for an AL wild-card berth, scoring six runs in the first inning and then holding off host Toronto. The Rays began the final day of the regular season tied with Texas for the second wild-card slot.

Orioles 7, Red Sox 6 — Ryan Flaherty had two hits subbing for Chris Davis after baseball’s home run champ left with a sprained wrist, and host Baltimore wrapped up its season with a victory over playoff-bound Boston.

Yankees 5, Astros 1 — Mark Reynolds hit a tie-breaking homer in a four-run 14th inning, and New York went into an offseason of uncertainty with a victory over host Houston, whose 15-game losing streak was the longest at the end of the season in more than a century.

Royals 4, White Sox 1 — Bruce Chen pitched four-hit ball into the seventh inning and Kansas City beat host Chicago in the finale of the Royals’ best season in 24 years. Kansas City won three of four in Chicago and went 17-10 in September for its most successful month of the season.

Rangers 6, Angels 2 — Host Texas forced a one-game tiebreaker for the second AL wild-card spot, winning its seventh in a row when Geovany Soto hit a tie-breaking RBI double and later homered to beat Los Angeles. The Rangers (91-71) added game No. 163 to the regular season, and will host Tampa Bay tonight.

Sunday’s National League results

Mets 3, Brewers 2 — Eric Young Jr. won the National League stolen base crown and helped host New York rally past Milwaukee when the Brewers botched two bunts in the eighth inning. Young swiped two bases in the first, scored on a shallow sacrifice fly and later threw out a runner at the plate from left field.

Pirates 4, Reds 2 — Jordy Mercer had a triple and an inside-the-park homer, and the Pirates completed a three-game sweep of host Cincinnati with a victory that was mostly an afterthought for teams looking ahead to a rematch in Pittsburgh.

Braves 12, Phillies 5 — Evan Gattis had a two-run homer among his three hits, Elliot Johnson drove in five runs and NL East champion Atlanta beat visiting Philadelphia to cap its best regular season in nine years. The Braves won their first division title since 2005.

Cardinals 4, Cubs 0 — Matt Carpenter and host St. Louis clinched home-field advantage throughout the National League playoffs when they beat Chicago for their sixth consecutive win. With the top seed, the NL Central champions will host the wild-card winner in Game 1 of a NL division series on Thursday.

Giants 7, Padres 6 — Hunter Pence singled in the winning run with no outs in the ninth inning to give host San Francisco a victory over San Diego. Francisco Peguero hit his first career home run leading off the ninth to tie it as Huston Street (2-5) blew his second save in 35 chances.

Athletics 9, Mariners 0 — Sonny Gray threw five shutout innings in his final start before the playoffs, Oakland had a pair of four-run innings and the Athletics closed out the regular season with a win over host Seattle in Eric Wedge’s final game as Mariners manager.

Diamondbacks 3, Nationals 2 — A.J. Pollock beat out a run-scoring infield single in the eighth inning and host Arizona sent Washington manager Davey Johnson into retirement on a losing note with a win over the Nationals.

Rockies 2, Dodgers 1 — Jeff Francis came out of the bullpen to win his first start in more than three months, Michael Cuddyer won his first batting title, and Todd Helton singled in the final game of his career to help Colorado beat host Los Angeles.

Sunday’s interleague results

Marlins 1, Tigers 0 — Henderson Alvarez pitched one of baseball’s most bizarre no-hitters, celebrating in the on-deck circle when host Miami scored on a two-out wild pitch in the bottom of the ninth inning to beat AL Central champion Detroit. After Alvarez finished off the ninth with the game scoreless, he had to wait to see if it would become an official no-hitter. A Major League Baseball ruling in 1991 said only complete games of nine or more innings with no hits would count.

— Associated Press