SAN FRANCISCO — From the iPod to the iPhone to the iPad, Apple created more than a decade’s worth of new gadgets to fuel its historic growth.

But the technology company’s dazzling 13-year run of quarterly revenue growth ended on Tuesday — a casualty of Apple’s already immense size, weakness in key global markets like China and the lack of another hot product to pry open the wallets of customers.

Apple, the Silicon Valley giant that has spent much of the last five years as the world’s most valuable company, said on Tuesday that revenue for its second fiscal quarter, which ended in March, declined 13 percent to $50.6 billion as sales of its flagship product, the iPhone, fell, with little else to take its place.

Nearly half of the smartphones sold in the United States are iPhones, and Apple may be reaching the saturation point among potential customers in other developed countries. Rival smartphone makers using Google’s Android operating system continue to challenge the company with powerful, less expensive devices.