U.S. oil rose Friday as the dollar softened, but ended lower for the week, snapping a four-week winning streak.
Also on Friday, Baker Hughes reported the number of oil rigs operating in U.S. oilfields fell by 4 to a total of 328 in the previous week. At this time last year, drillers had 668 online.
A wildfire that has shrunk Canadian oil sands crude production by a third and reports of a militant attack on a Chevron platform in Nigeria's oil-rich Niger Delta region also supported prices, analysts said.
"The global surplus still exists and there is still a possibility that oil prices could retrace further," Dominick Chirichella, senior partner at the Energy Management Institute, said.
"However, the market is trading more and more in sync with the forward-looking or perception view, with the current bearish fundamentals mostly priced into the market."