NEW YORK -- Masahiro Tanaka struck out 15 over seven innings, his highest total since coming to the major leagues, and the playoff-bound New York Yankees beat the Toronto Blue Jays 4-0 Friday to remain on the edge of contention in the AL East.

Already assured no worse than hosting a wild-card game against Minnesota, New York began the day three games behind AL East-leading Boston with three games left, The Yankees could take the division only by beating the Blue Jays both Saturday and Sunday, having Boston lose three in a row to Houston and then defeating the Red Sox in a tiebreaker game Monday at Yankee Stadium.

Tanaka (13-12) retired his first 14 batters before Ezequiel Carerra reached on an infield single up the middle just past Tanaka's glove. Second baseman Starlin Castro made a backhand stop with a dive and threw off-balance from his knees, but Carerra easily beat a one-hop throw.

Pitching on six days' rest, Tanaka had a sharp slider and splitter, dominating a team that battered him for eight runs and three homers at Toronto on Sept. 22. He allowed three hits and walked none.