Apple has bought Shazam, a London-based app that allows smartphone users to identify music, for a reported $400m (Â£300m).
The US company, which revolutionised music with the introduction of the the iPod and iPhone, said Shazam was a natural fit for its Apple Music streaming service.
âApple Music and Shazam are a natural fit, sharing a passion for music discovery and delivering great music experiences to our users,â said Apple.
Neither side would officially say how much Apple had paid, but a figure of about $400m has been reported, less than half the $1bn the app was last valued at when it tapped investors for cash in 2015.
A spokesman for Shazam, which was founded in 1999, said: â Shazam is one of the highest rated apps in the world and loved by hundreds of millions of users and we canât imagine a better home for Shazam to enable us to continue innovating and delivering magic for our users.â
The purchase is Appleâs biggest acquisition since it bought rapper Dr Dreâs headphones company Beats Electronics for $3bn in 2014.
Shazam is the latest in a string of British tech firms to be snapped up by overseas companies since the fall in the value of the pound after the Brexit vote. Microchip designer ARM Holdings was sold to Japanâs Softbank for Â£24bn last year. Hertfordshire-based Chipmaker Imagination Technologies was sold to China-backed private equity firm Canyon Bridge for Â£550m earlier this year.
Shazam, which creates âacoustic fingerprintsâ of music and returns song information and links for smartphone owners to buy or listen the tune, has been downloaded more than 1bn times. The app is already used by Appleâs assistant Siri, allowing users to ask: âWhat song is playing?â
Although Shazam is popular with smartphone users it has struggled to make much money, with revenues of $54m in 2016.
Shazam was formed in Hammersmith, west London, by a group of friends frustrated that they often had trouble identifying the names of songs they liked on the radio. Shazam started before smartphones and iTunes, so to use the service people had to call a number, put their phone up to the radio, then receive a text identifying the song.
Dhiraj Mukherjee, one of its co-founders, has complained in an interview with the Guardian that the invention was too ahead of its time. âPeople even now say, âOh, itâs a great idea.â In the end, that was not necessarily an advantage [for me]. Being ahead of the market has consequences as well.â
Mukherjee, who has left the company, said he could not cope with stress of working at a startup. âI used to work 16- to 18-hour days and I would honestly not have had the stamina over 15 or 16 years [to stay with Shazam]. I have a wife and three kids and they test my stamina in different ways.
âWhen youâve been an entrepreneur, you seek opportunity in a situation, whereas if youâre not you see obstacles or risk or challenges. The rule of thumb is: donât go bankrupt, live to fight one more day.â
Of the original team behind the app, Mukherjee, Chris Barton, Philip Inghelbrecht and Avery Wang, only Wang remains. It took 14 years before Shazam crossed over into profitability last year, largely thanks to advertising revenues.
The company had earlier planned to float on the stock market at a suggested valuation of $1bn.
â¢ Follow Guardian Business on Twitter at @BusinessDesk, or sign up to the daily Business Today email here.