TORONTO -- Carlos Beltran hit a huge home run in the eighth inning, Andrew Miller escaped a big jam in the ninth and the New York Yankees stopped Toronto's 11-game winning streak, beating the Blue Jays 4-3 Friday night.

Miller struck out Ben Revere and Troy Tulowitzki with runners on second and third to close out the victory. The win moved the Yankees a half-game ahead of Toronto and back into first place in the AL East.

David Price took a 3-0 lead into the eighth before New York rallied. He left after Chase Headley's RBI double and Beltran then greeted reliever Aaron Sanchez (6-5) with a pinch-hit, three-run homer.

More from FoxSports

Ivan Nova (5-4) wound up with the win. Dellin Betances pitched the eighth and Miller finished for his 26th save, fanning Tulowitzki to end a 12-pitch sequence.

A one-out walk and single, plus a wild pitch by Miller with one out put the Blue Jays in position in the ninth.

Tulowitzki kept fouling off pitches during the tense at-bat, which included several mound meetings between Miller and catcher Brian McCann. Tulowitzki swung and missed at a full-count pitch, silencing a sellout crowd at Rogers Centre.

Toronto, which swept a three-game series in the Bronx last weekend while giving up a total of one run, had gone 33 innings without allowing a run to the Yankees broke through.

That shutout streak is the longest the Yankees have gone without scoring against a single opponent, eclipsing 31-inning streaks against Detroit in 1934 and the Washington Senators in 1913.

The Blue Jays failed to win a franchise-best 12th game for the fifth time in team history. Toronto has won 11 straight twice this season, also doing it in June.

Price won with seven shutout innings at Yankee Stadium last weekend. He was in control this time, too, in the opener of a three-game set before the Yankees scored four times.

Beltran's homer stopped a 25-inning scoreless streak by Toronto's bullpen. Blue Jays relievers hadn't allowed a run since the ninth inning of an Aug. 2 win over Kansas City.

All three Blue Jays runs came in the third. Tulowitzki hit an RBI grounder, Jose Bautista doubled home a run and Edwin Encarnacion hit a sacrifice fly.

TRAINER'S ROOM

Yankees: Manager Joe Girardi said DH Alex Rodriguez will likely sit out either Saturday or Sunday.

Blue Jays: Encarnacion returned at DH after missing the previous four games with a sore left middle finger.

UP NEXT

Yankees: RHP Masahiro Tanaka (8-5, 3.79 ERA) will have had five days of rest when he faces Toronto for the second straight start. Tanaka allowed solo home runs to Donaldson and Bautista in Sunday's 2-0 defeat.

Blue Jays: RHP Marco Estrada (10-6, 3.21 ERA) seeks to win his fourth straight start when he faces the Yankees on Saturday. Estrada blanked New York over 6 1-3 innings last Sunday as Toronto capped a three-game sweep in the Bronx. He has allowed only one home run in his past seven outings.