BOSTON -- Troy Tulowitzki singled in the go-ahead run with two outs in the eighth inning to help the Toronto Blue Jays clinch a postseason berth with a 2-1 win over the Boston Red Sox on Sunday at Fenway Park.

Toronto (89-73) claimed the top American League wild-card spot despite the Baltimore Orioles' 5-2 win over the New York Yankees earlier in the day.

By virtue of a better head-to-head record, the Blue Jays will host the Orioles in the AL wild card game on Tuesday.

AL East champion Boston (93-69) will open its ALDS series with the Indians on Thursday in Cleveland after its loss and the Indians' 3-2 win over the Kansas City Royals on Sunday.

Devon Travis launched a solo homer, his 11th home run of the year, and Blue Jays starter Aaron Sanchez threw 6 2/3 hitless innings before his no-hit bid was broken up.

Sanchez (15-2) gave up a run, two hits and two walks while striking out six.

Roberto Osuna, who failed to pick up a six-out save but still got the win in Saturday's 4-3 loss, converted his 36th save of the season with a scoreless ninth.

Hanley Ramirez slugged his 30th home run of the eyar, giving the Red Sox three players with at least 30 homers and 100 RBIs (also David Ortiz, Mookie Betts) in the same season for the first time in franchise history.

Ortiz, playing in the 2,408th and final regular-season game of his career, was 0-for-4 with two strikeouts.

Red Sox starter David Price was gone after five innings and 80 pitches, allowing just the one run on Travis' homer with four hits, three walks and four strikeouts.

Brad Ziegler (4-7) was on the hook after giving up a run, three hits and a walk in two-third of an inning in the eighth.

Ortiz's first stroll to the plate was accompanied by an ovation from Red Sox fans, and fans in the right field bleachers held up cards forming the message "Thanks Papi."

A homer wasn't in the cards for Ortiz, who unleashed a home run swing during his second-inning at-bat against Sanchez but missed and ultimately struck out swinging.

Sanchez also got Ortiz to strike out swinging in his second at-bat to end the fourth.

Tulowitzki nearly put the Blue Jays on the board in the second with his double to left-center field, but Jose Bautista was thrown out at home on a relay throw from Xander Bogaerts.

Travis made up for that wasted opportunity, driving a 0-1 cutter from Price into the second row of the Green Monster in left field with two outs in the fifth.

Ortiz put the barrel on the ball in his third at-bat in the seventh, but the drive was chased down by Kevin Pillar in center.

Ramirez broke up Sanchez's no-hitter one at-bat later with a towering homer on an 0-1 pitch that sailed over the foul pole on the Monster. A crew chief review confirmed the call.

Tulowitzki's decisive hit off Ziegler in the eighth came after Russell Martin's infield single put runners on the corners with two outs.

In Ortiz's final at-bat in the ninth, which was again proceeded by a standing ovation, he hit a dribbler to the catcher. Ortiz was given another ovation as he walked back to the dugout.

Ramirez then walked and Xander Bogaerts singled up the middle to put two runners on with two outs, but Jackie Bradley Jr. grounded out to end the game.

NOTES: Boston DH David Ortiz was honored in a pregame ceremony before his final regular-season game at Fenway Park. The Red Sox announced they will retire his jersey No. 34 next season, making him the first player who isn't in the Hall of Fame to have his number retired by the franchise. Boston presented him with various gifts and a $1 million donation to his foundation. "There may be no more important player ever in this organization," Red Sox manager John Farrell said of Ortiz. Massachusetts governor Charlie Baker and Boston mayor Martin Walsh named a nearby bridge and street after Ortiz. Teammates from the 2004, 2007 and 2013 Boston World Series teams joined Ortiz on the field. Mary J. Blige sang the national anthem and Dominican Republic president Danilo Medina threw a ceremonial first pitch. ... Farrell announced RHP Rick Porcello will start Game 1 of the ALDS and LHP David Price will start Game 2.
Final1st2nd3rd4th5th6th7th8th9thRHE
Toronto Blue JaysBlue Jays000010010290
Boston Red SoxRed Sox000000100141
WP:Aaron Sanchez (TOR)
LP:Brad Ziegler (BOS)
HR:(BOS): Hanley Ramirez
(TOR): Devon Travis
Season Series
BostonStatsToronto
9-10Vs10-9
.250Batting Average.237
5.1Runs / Game4.5
15Home Runs25
12Errors13