TORONTO (AP) — 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 on 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.

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.

PADRES 9, ROCKIES 5

DENVER (AP) — Matt Kemp hit a triple in the ninth for the first cycle in San Diego Padres history and they went on to beat Colorado.

Kemp also had a two-run homer in the first, single in the third and an RBI double in the seventh. His triple in the ninth went off the fence in center and he easily scampered into third.

The Padres retrieved the historic baseball. One streak down, one to go. They're the only team in the majors without a no-hitter.

Kemp ignited a four-run rally in the seventh with a two-out, RBI double and Jedd Gyorko later followed with a three-run homer.

Recently signed Bud Norris (1-0) pitched the sixth to pick up the win.

Reliever Ken Roberts (0-1), called up from Triple-A Albuquerque earlier in the day, took the loss.

DODGERS 5, REDS 3

LOS ANGELES (AP) — Adrian Gonzalez hit a three-run homer to highlight a four-run fifth inning and Los Angeles beat Cincinnati.

John Lamb (1-0) gave up four consecutive two-out hits, capped by Gonzalez's 23rd homer of the season into the lower right-field seats that put the Dodgers ahead 5-1.

Alex Wood (8-7) earned his first victory in three tries with the Dodgers, allowing three runs and five hits in 6 1/3 innings. The left-hander struck out three and walked three in his home debut since being acquired from Atlanta.

Kenley Jansen retired the side in the ninth for his 23rd save in 24 chances. He earned his 129th career save, tying Jeff Shaw for second all-time in franchise history.

Joey Votto drove in all three of Cincinnati's runs, including a two-run homer that left the Reds trailing 5-3 in the sixth.

PIRATES 3, METS 2, 10 INNINGS

NEW YORK (AP) — Gregory Polanco singled home the go-ahead run in the 10th inning and Pittsburgh ended New York's seven-game home winning streak.

The teams went into extra innings at 1-all. Polanco singled off Bobby Parnell (1-2) and Aramis Ramirez hit a sacrifice fly against Carlos Torres.

The NL East-leading Mets scored in the bottom half on Curtis Granderson's sacrifice fly before Mark Melancon finished for his 36th save.

Arquimedes Caminero (3-1) pitched a scoreless ninth for the win.

CARDINALS 3, MARLINS 1

ST. LOUIS (AP) — Jaime Garcia pitched shutout ball into the ninth inning and Matt Carpenter homered, leading St. Louis over Miami.

Garcia (5-4) came within two outs of throwing the first complete game of the season for the NL Central leaders. He gave up six singles, walked one and struck out six.

Trevor Rosenthal got his 36th save in 38 chances.

Carpenter's bunt single broke a scoreless tie in the fifth. He hit a solo home run in the eighth.

Tom Koehler (8-10) took the loss and Miami's three-game winning streak ended.

Ichiro Suzuki singled in the Miami fifth for his 2,913th hit in the major leagues. Combined with 1,278 hits in Japan, he equaled Ty Cobb's total of 4,191. Cobb held the big league mark that Pete Rose eventually passed on his way to a record 4,256 hits.

CUBS 6, WHITE SOX 5

CHICAGO (AP) — Chris Coghlan hit two home runs, Anthony Rizzo also went deep, and Chicago made it eight straight wins and 14 in 15 games.

The Cubs, coming off a 7-0 homestand, extended their longest win streak since a nine-game run during the 2008 NL Central championship season.

Coghlan hit a three-run homer in the top of the third, and then he and Rizzo added back-to-back solo drives off the struggling Jeff Samardzija (8-8) in the fifth to give the North Siders a 6-5 lead.

Four relievers combined to shut down the White Sox the rest of the way, with Clayton Richard (3-0) working two innings.

Hector Rondon pitched the ninth for his 20th save in 24 chances.

ROYALS 4, ANGELS 1

KANSAS CITY, Mo. (AP) — Eric Hosmer hit a go-ahead two-run homer, Danny Duffy settled down after a wild start and Kansas City rallied for a victory over Los Angeles.

Duffy (6-5) allowed five hits without a walk while matching a franchise record with three hit batters in just six innings. But the left-hander only allowed one run, wiggling out of a few jams by leaving six Angels on base — three in scoring position.

The Royals mustered just one hit off Jered Weaver (4-9) until the sixth, when Ben Zobrist led off with a double to right. He tied the game moments later when first baseman Albert Pujols let a sharply hit grounder by Lorenzo Cain through his legs for an error.

Hosmer followed with his 406-foot shot over the bullpen in right field.

Greg Holland got the last three outs for his 26th save.

GIANTS 8, NATIONALS 5

SAN FRANCISCO (AP) — Matt Duffy homered among his three hits and drove in three runs, Hunter Pence also had a homer and San Francisco beat Washington.

Gregor Blanco added three hits and drove in two runs for the Giants, who have won three of four since being swept in a four-game series by the Cubs in Chicago.

Bryce Harper homered and drove in four runs and Danny Espinosa also went deep for the Nationals, who lost their fourth straight and fifth in the last six.

Max Scherzer (11-9) gave up a season-high six runs on seven hits over three innings.

Giants starter Matt Cain failed to finish the fifth inning for a second straight start, allowing five runs on six hits in 4 2/3 innings.

Jeremy Affeldt (2-2) took over for Cain in the fifth and pitched an inning to get the win.

ASTROS 5, TIGERS 1

HOUSTON (AP) — Dallas Keuchel struck out eight in seven solid innings and Jed Lowrie powered the offense with a two-RBI double to lead Houston to a win over Detroit.

The Astros trailed entering the fifth inning before scoring three runs, capped by the double by Lowrie to take a 3-1 lead.

It was the opener of a 10-game homestand for Houston, which remains in first place in the American League-West despite going 2-7 on a recent road trip.

Keuchel (14-6) yielded six hits and one run to improve to 11-0 at home this season. His 14 wins overall are tied for most in the AL.

Alfredo Simon (10-7) allowed six hits and four runs in five-plus innings for the loss.

Detroit slugger Miguel Cabrera returned from a six-week stint on the disabled list.

RANGERS 5, RAYS 3

ARLINGTON, Texas (AP) — Josh Hamilton homered and delivered the tiebreaking sacrifice fly for Texas in a victory that snapped Tampa Bay's four-game winning streak.

Hamilton's sixth homer of the season was a 437-foot blast to right-center field in the second inning for a 2-1 lead. His sac fly to deep center in the eighth broke a 3-3 tie.

Delino DeShields hit his first career homer for Texas.

Adrian Beltre's one-out single in the eight started the go-ahead rally off Jake McGee (1-2). Beltre went to third on a single by Mitch Moreland, who moved to second on the throw. Hamilton followed that before Elvis Andrus had an RBI single.

Sam Dyson (1-1) worked two scoreless innings in relief of starter Martin Perez. Shawn Tolleson worked the ninth for his 22nd save in 23 chances.

ORIOLES 8, ATHLETICS 6, 13 INNINGS

BALTIMORE (AP) — Manny Machado hit a two-run homer in the 13th inning, and Baltimore also got home runs from Adam Jones and Chris Davis in a victory over Oakland.

Caleb Joseph doubled with one out in the 13th against Drew Pomeranz (4-5), who left after being visited on the mound by the team trainer. Aaron Brooks entered, and Machado sent the right-hander's second pitch into the seats in left field.

That enabled the Orioles to avoid a third straight defeat, which would have dropped them to .500 for the first time since July 27. The defending AL East champions are in third place in the division and 1 1/2 games off the pace in the wild-card hunt.

Rookie Jason Garcia (1-0) got three straight outs in the 13th to earn his first major league win.

BRAVES 3, DIAMONDBACKS 2

ATLANTA (AP) — Julio Teheran pitched six strong innings, Cameron Maybin drove in two runs and Atlanta beat Arizona.

Atlanta got a solid outing from Teheran after their starters had gone 2-8 with a 6.02 ERA in the last 15 games.

The victory improved the Braves to 31-23 at home. They've won 12 of 19 at Turner Field. But they are last in the majors with 40 road losses.

Teheran (8-6) allowed three hits, one run and two walks with seven strikeouts.

Diamondbacks starter Robbie Ray (3-8) allowed six hits, three runs and four walks in 4 1/3 innings.

Arodys Vizcaino earned his third save in three chances with a perfect ninth.

INDIANS 6, TWINS 1

MINNEAPOLIS (AP) — Corey Kluber flirted with a no-hitter for the second consecutive outing against Minnesota before finishing with a one-hitter in his second straight complete game as Cleveland cruised to a win.

Kluber (8-12) gave up just a solo home run to Joe Mauer and struck out seven in his fourth complete game of the season.

Giovanny Urshela had two hits, including a two-run homer for Cleveland. Francisco Lindor, Lonnie Chisenhall and Mike Aviles each had three hits to help the Indians win for the fift time in six games.

Trevor May (8-8) gave up two runs on five hits in three innings in his first start for Minnesota since moving to the bullpen in early June.

Kluber took a no-hitter into the seventh inning in his last start, also against Minnesota, before Mauer singled with two outs. This time, the only blemish on Kluber's line before Mauer's home run with two outs in the fourth was a walk to rookie Miguel Sano in the second inning.

BREWERS 3, PHILLIES 1

MILWAUKEE (AP) — Wily Peralta pitched seven scoreless innings and Jean Segura dashed home on a rare two-base sacrifice fly to lift Milwaukee to a victory over Philadelphia.

Segura's scramble came after center fielder Odubel Herrera and right fielder Domonic Brown collided in the third inning. According to STATS, it was the first time a player had scored from second this season on a sacrifice fly.

Peralta (3-7) had his best start this year, and Francisco Rodriguez picked up his 27th save in 27 tries this season despite Chase Utley's RBI single.

Utley had four hits for the Phillies, who squandered a solid start by Adam Morgan (3-4) by stranding 10 runners.

Khris Davis added a solo home run for the Brewers in the second.

RED SOX 15, MARINERS 1

BOSTON (AP) — Travis Shaw hit two home runs and Rusney Castillo hit one to carry Boston to a 15-1 win over Seattle, just hours after Red Sox manager John Farrell announced he's taking a medical leave to treat lymphoma.

Fighting back tears, the 53-year-old Farrell said that he had a "highly curable" form of cancer and has taken leave for the rest of the season.

Shaw had a two-run and solo shot, and Castillo's was a two-run homer in Boston's highest run total of the season. The Red Sox finished with a season-high 21 hits and scored in six of the eight innings they batted.

Joe Kelly (5-6) limited the Mariners to one run and four in six innings. He struck out six and walked two.

Mike Montgomery (4-5) gave up nine runs on 10 hits in just 2 1/3 innings.