Apple sold fewer iPhones than expected in its most recent quarter but higher selling prices meant the tech giant still beat Wall Street forecasts.
The firm said it sold 41.3 million iPhones in the three months to the end of June, up just 1% from last year.
But the average iPhone selling price hit $724, well above the expected $694.
The firm said its $999 iPhone X - launched last year - remained its most popular iPhone model in the quarter and had driven the higher sales price.
Strong revenue growth of 31% from Apple's services business, which includes the App store, Apple Music and Apple Pay, also boosted its performance.
The services business is on track for more than $14bn in revenue in 2020, chief executive Tim Cook said.
"We couldn't be happier with how things are going," he said.
Overall the tech giant's revenue jumped 17% year-on-year to a quarterly record of $53.3bn (£40.6bn), with every region except Japan reporting double digit growth.
Profits rose to $11.5bn, up 32% compared to the same period in 2017.
Shares in the Californian tech giant jumped more than 3% in after hours trading in New York.
The gains brought Apple, already the world's most valuable company, one step closer to a market value of $1 trillion.
The strong demand for the firm's most expensive phones marked a contrast with the world's largest smartphone seller Samsung, which disappointed investorsby warning of lower than expected sales of its high-end Galaxy S9 .
But Apple faces increasing competition in the global smart phone market, which saw growth slip 0.3% last year, according to research firm International Data Corp.
Chinese tech company Huawei, which reported 15% revenue growth in the first half of this year, overtook Apple to become the world's second-biggest smartphone seller in the quarter, according to market research firm Canalys.
That left Apple in third place after Samsung and Huawei.
Executives said they are confident about Apple's position. The firm forecast revenue in the range of $60bn to $62bn in the July to September period, indicating a fifth consecutive quarter of double digit growth.
Chief executive Tim Cook also downplayed concerns about how trade tensions between the US and China might affect Apple's business.
He said the firm had not been affected directly by the tariffs in place so far. It is still reviewing the implications of threatened tariffs on a proposed $200bn in Chinese goods, he added.
"Our view on tariffs is that they show up as a tax on the consumer and wind up resulting in lower economic growth and sometimes can bring about significant risk of unintended consequences," he said.
However, he said he was optimistic that "this will get sorted out".
Have your say
More Technology Headlines
- Galaxy S10, S10 Plus, S10E, S10 5G: What's the difference?
- Huawei launches Y7 Prime 2019
- Israeli spacecraft poised to become first privately funded lander on moon
- Samsung Unpacked event: Here’s everything about Galaxy S10, S10+ and S10E
- 18000+ Android apps caught violating Google’s advertising ID policies
- Women whose boyfriends watch porn ‘more likely to develop eating disorders’
- Galaxy S10 to be released March 8
- Apple to investigate Saudi app that tracks women
- Huawei to start Africa data centre services from March
- Siemens partners WestPark to build industrial, business park in Africa
- Unraveling the journey of Vodafone 4G
- Google and Facebook 'need fake news regulator'
- Siemens launches FABRIC to turn urban data into dynamic visualisation of Jamestown
- Celltel, CEIEC, RAC sign MOU for $300m Smart Cities project
- Is the internet bad for us?