The catcher had a two-out single in the seventh off New York starter Hiroki Kuroda to help Detroit reach extra innings. After grounding out in the 10th, Avila drove a 1-0 fastball from Matt Daley (0-1) into the last row of the right-field grandstand just in front of the right-field bleachers.
After David Price allowed three runs and eight hits over 8 2/3 innings in his Detroit debut, Joba Chamberlain, Joakim Soria and Joe Nathan combined on 3 1/3 scoreless innings.
Chamberlain recorded the final out of the ninth and stranded Derek Jeter at first in the 10th after hitting the Yankee captain with a pitch. Soria (2-4) pitched a perfect 11th for the win and Nathan did the same in the 12th for his 23rd save in 28 opportunities.
Reds 9, Indians 2
CLEVELAND -- Johnny Cueto pitched his fourth complete game of the season, and Ramon Santiago and Jay Bruce homered to lead Cincinnati over Cleveland.
Cueto (13-6) gave up two runs on five hits with six strikeouts and two walks. Bruce, who finished 3-for-5 with two RBIs, hit a solo homer in the ninth inning. Santiago hit a three-run homer in the second inning.
The Indians saw their four-game winning streak end. The Reds won for the fourth time in six games.
Mets 6, Nationals 1
WASHINGTON -- Daniel Murphy had three hits and two RBIs, and Zack Wheeler pitched into the seventh inning as New York defeated Washington.
Murphy tripled and scored in the first inning, and added a two-run single in the seventh.
Wheeler (7-8) helped his own cause with an RBI single as the Mets defeated the Nationals for just the second time in their last 12 meetings. The right-hander went 6 2/3 innings, allowing a run on seven hits. It was Wheeler's seventh straight start of six or more innings and two or fewer runs. He is 4-0 during that stretch with a 1.59 ERA.
Marlins 6, Pirates 3
PITTSBURGH -- Miami scored five runs in the eighth inning with only one extra-base hit -- a double by Christian Yelich that drove in the final run -- to rally past Pittsburgh.
There were also three walks, two singles and an error in the eighth. It was the Marlins' biggest inning since also scoring five runs June 27 against Oakland.
Giancarlo Stanton started the inning by drawing a one-out walk from reliever Jared Hughes (6-3), and third baseman Josh Harrison booted a potential double play ball to keep the inning alive.
Orioles 9, Blue Jays 3
TORONTO -- Baltimore hit three home runs -- Caleb Joseph and Jonathan Schoop hit back-to-back shots in the fourth, while Chris Davis added a solo blast in the fifth -- in the opener of a key three-game set in the AL East.
The three homers upped Baltimore's total to 136 on the season, moving past Toronto for the most in baseball.
Right-hander Bud Norris (9-7) threw 5 1/3 innings of two-run ball and struck out six in the Orioles' 34th road win, the most in the AL. Norris' only blemish was a two-run homer served up to Colby Rasmus in the fourth inning.
Twins 3, Padres 1
MINNEAPOLIS -- Kennys Vargas hit his first major league home run, a three-run blast in the sixth inning, to lead Minnesota over San Diego.
The Twins struggled to get any offense going against Padres right-hander Jesse Hahn, who held Minnesota to two hits through five innings. But Minnesota broke through in the sixth, getting a double from Brian Dozier and a walk from Trevor Plouffe before Vargas homered with two outs.
The blast made a winner of righty Phil Hughes, who tossed six innings of one-run ball for his 11th victory of the season. Closer Glen Perkins allowed a pair of singles in the ninth, but worked out of the jam for his 28th save.
Rangers 16, White Sox 0
CHICAGO -- Texas hit a season-high five home runs and cruised to the largest margin of victory in a shutout in franchise history.
Robinson Chirinos hit two home runs in a game for the first time in his career, and the Rangers also got long balls from Adrian Beltre, J.P. Arencibia and Shin-Soo Choo.
The Rangers stormed to a 7-0 lead in the first two innings and kept going against a battered White Sox pitching staff that took a 16-3 loss to the visiting Minnesota Twins on Sunday. Tuesday's game got so bad that White Sox designated hitter Adam Dunn pitched the ninth inning, allowing a run on two hits and a walk.
Brewers 4, Giants 3
MILWAUKEE -- Carlos Gomez drove in three runs, and Gerardo Parra hit his first home run for Milwaukee as the Brewers beat San Francisco.
Gomez hit a two-run home run in the third inning, then drove in a third run in the fifth inning with a bunt single. All three runs came against Giants starter Tim Lincecum, who struck out eight and walked one over six innings before giving way to a pinch-hitter.
San Francisco's bullpen had not allowed a run in 23 1/3 innings, and right-hander Jean Machi (6-1) stretched it to 24 by retiring his first two batters in the eighth. But Machi's first offering to Parra, a changeup, was right down the middle, and the left fielder drilled it to right-center to break a 3-3 tie.
Cardinals 3, Red Sox 2
ST. LOUIS -- Jon Jay looped a two-out RBI single to left-center in the bottom of the eighth to snap a tie and give St. Louis the win over Boston.
A.J. Pierzynski started the rally with a two-out single, and right fielder Oscar Taveras singled to right-center. Jay produced the game-winning hit on a 1-0 pitch from reliever Junichi Tazawa (1-3).
Reliever Pat Neshek (5-0) struck out the side in the eighth to earn the win, while closer Trevor Rosenthal worked around a leadoff single in the ninth to pick up his NL-leading 35th save in 39 opportunities.
Phillies 2, Astros 1 (15 innings)
PHILADELPHIA -- Ryan Howard, who homered in the second inning, singled home the decisive run in the bottom of the 15th inning, lifting Philadelphia over Houston.
Howard's game-winning hit came off Jake Buchanan, the last of six Houston pitchers.
Grady Sizemore led off the 15th by singling off Buchanan (1-2). Ben Revere sacrificed, then Jimmy Rollins flied to center. After Chase Utley was intentionally walked, Howard bounced a 1-2 pitch through the right side of the infield and Sizemore beat the throw to the plate by right fielder Robbie Grossman.