What was the UK's song of the summer? This massive data dump reveals all

Getty Images Ed Sheeran, Lil Nas X and Camila CabelloGetty Images
Ed Sheeran, Lil Nas X and Camila Cabello can all lay claim to the song of the summer

Summer isn't officially over until 23 September, but as the nights draw in and the temperature drops, it's time to consider who had the season's top song.

Depending on who you believe, the title could go one of three ways.

Spotify says Ed Sheeran and Justin Bieber's I Don't Care was the UK's most-played song this summer.

On YouTube, though, the duo were beaten by Lil Nas X's Old Town Road, while Shazam's chart was topped by Shawn Mendes and Camila Cabello's Señorita.

For a decisive verdict, we need the Official Charts Company - who combine sales and streaming figures to come up with a definitive placings for summer's biggest songs.

And the winner is...

Allow Google YouTube content?

This article contains content provided by Google YouTube. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read  and  before accepting. To view this content choose ‘accept and continue’.

...Justin and Ed's I Don't Care, which came out on top with the equivalent of 755,000 sales, made up of 90 million streams and 115,000 downloads.

Like the best summer songs, it doesn't take itself too seriously - the video sees the two A-listers dressing up as ice creams and bananas as they sing about escaping a boring party with their girlfriends.

Musically, the song is built around the Tresillo, or Dembow, rhythm - a syncopated beat that's become a mainstay of summer songs, from Luis Fonsi's Despacito to Sheeran's own Shape of You.

Originating in Africa, the boom-ti-boom-chk rhythm made its way to Cuba in the 19th Century, where it became the basis for Habenera music.

After ricocheting around the Caribbean, the beat was co-opted into reggaeton, which has, in turn, inspired dozens of pop hits, thanks to its ability to evoke end-of-term excitement and long, hazy days in the sun.

On Spotify's global chart, where Latin music has a major presence, Tresillo underpins six of the summer's most-streamed songs, including Bad Bunny's Callaita and Daddy Yankee's Con Calma.

But there's more to the holiday season than having fun...

Lewis Capaldi's Someone You Loved soundtracked enough break-ups to become the UK's third most popular song of July and August (the singer's equally sorrowful Hold Me While You Wait came eighth, which tells you something about the fate of summer romances).

Billie Eilish's Bad Guy, on the other hand, couldn't be more moody, but crept into the top five by the simple trick of sounding like nothing else on the radio.

Allow Google YouTube content?

This article contains content provided by Google YouTube. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read  and  before accepting. To view this content choose ‘accept and continue’.

The same could be said for Lil Nas X, whose attempt to pull off a country-rap crossover was more successful than anyone could have imagined.

His breakout track Old Town Road, which topped the US charts for a record-breaking 19 weeks, was the UK's second-biggest song of the summer, scoring 723,000 chart sales.

It was also the UK's most-streamed video, topping the YouTube chart thanks to a hilarious, self-aware mini-movie that amassed 41.5 million views over the last two months.

Allow Google YouTube content?

This article contains content provided by Google YouTube. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read  and  before accepting. To view this content choose ‘accept and continue’.

Shawn Mendes and Camila Cabello's steamy duet Señorita also fared well on YouTube - amassing 23 million views to become the summer's second most-watched music video.

That, combined with the song's popularity on Shazam (which allows users to tag songs on their phone and add them to their music library), suggests it could have become the overall song of the summer, had it been released earlier in the year.

Señorita first hit streaming services on 21 June, several weeks after its closest competitors.

For all the real chart nerds, here are the various top 10s, as supplied to the BBC, in full:

presentational grey line
Official Charts - Songs of the Summer
Presentational white space
Spotify (UK) - Songs of the Summer
Presentational white space
Spotify (Global) - Songs of the Summer
Presentational white space
YouTube (UK) songs of the summer
Presentational white space
Amazon Music (UK) - Songs of the Summer
Presentational white space
Shazam (UK) - Songs of the Summer
Presentational white space
Shazam (Global) - Songs of the Summer
presentational grey line

Follow us on Facebook, or on Twitter @BBCNewsEnts. If you have a story suggestion email [email protected].