OAKLAND, Calif. -- Yoenis Cespedes crushed a two-run homer in the first inning, and Eric Sogard hit an RBI double in the seventh powering the Oakland A's to a 3-2 victory Friday night over the Cleveland Indians.
Cespedes hit his team-high 20th homer of the season and third in the past eight games.
Right fielder Drew Stubbs went 2-for-4 with two doubles for the Indians, who left 13 runners on base.
The A's pulled to within one-half game of first-place Texas in the A.L. West, while Cleveland remained 6 1/2 games behind Detroit in the American League Central. Oakland beat Cleveland for the first time this season after being swept by the Indians in a four-game series at Progressive Field in May.
Indians right-hander Justin Masterson (13-9) allowed just three runs on seven hits over 7 2/3 innings but took the loss. He struck out four and walked one.
A's right-hander A.J. Griffin allowed just one unearned run on four hits, but he lasted only five innings, exiting after throwing 104 pitches, just 57 for strikes. Griffin walked five, one off his career high, which he set in his previous start against Toronto, and received a no-decision.
Before his recent bout of wildness, Griffin had gone 14 straight starts with two or fewer walks.
A's right-hander Dan Otero pitched a perfect sixth inning, but Cleveland pulled even at 2-2 in the seventh with a run off left-hander Sean Doolittle, who got the win.
Stubbs led off with a double to left-center on a high fly ball that Cespedes got to but couldn't catch, as it fell at the base of the wall. Michael Bourn moved Stubbs to third with a sacrifice bunt, and former Athletic Nick Swisher lined an RBI single to right.
The A's answered with a run in the bottom of the seventh to regain the lead. Stephen Vogt lined a single to right with two outs. Sogard rifled an RBI double down the right-field line.
A's right-hander Ryan Cook pitched a scoreless eighth. He gave up a two-out double to Stubbs and walked Michael Bourn but got Swisher to ground out.
Grant Balfour pitched a scoreless ninth for his 31st save of the season, but it wasn't easy. With one out, Carlos Santana walked, and Michael Brantley sliced a single to left, moving pinch runner Mike Aviles to second.
Asdrubal Cabrera followed with a line drive, but third baseman Josh Donaldson gloved it then threw to second to double off Aviles, ending the game.
Cleveland cut Oakland's lead to 2-1 in the third with an unearned run off Griffin. Swisher lined a one-out single to right and scored when Carlos Santana singled to right and Reddick air-mailed a throw to third that sailed out of play.
The Indians loaded the bases with two outs in the fifth on a Jason Kipnis double and two walks, but Griffin retired Brantley on a line drive to Cespedes in center for the third out.
NOTES: Oakland CF Coco Crisp (strained left wrist) was out of the lineup for the fifth straight game. He had a cortisone injection on Tuesday, but A's manager Bob Melvin said Crisp's injured wrist was still "pretty stiff." ... A's C John Jaso (concussion), who has been on the disabled list since July 25, said he won't be able to return until the first week of September at the earliest and has no guarantee of playing again this season. Jaso was examined Tuesday in Pittsburgh by Dr. Michael Collins, a concussion specialist. Jaso said Collins told him he would eventually recover fully but didn't know whether he would recover in time to play again this season. Jaso said he suffered dizziness and nausea when he played catch in Oakland last week and again in Pittsburgh during physical testing. ... Indians RHP Carlos Carrasco returned to the bullpen after making a spot start on Wednesday against Minnesota. Carrasco made his first career relief appearance on Aug. 9 against the Angels, throwing five scoreless innings. He lasted just 4 1/3 innings against the Twins, allowing four runs and 10 hits.