← Examples

Reconstruct one day from its scrobbles

Timestamps divide one day of scrobbles into five listening sessions and two tracks that sit on their own.

Last.fm lastfm.get_recent_tracks

Captured May 2026

Timestamps and gaps

A scrobble is a track with a timestamp. Ordering the tracks and measuring the gaps separates the day’s longer sessions from isolated plays.

The prompt

According to my Last.fm data, show me what I was listening to a year ago today. I'd love to see the shape of the day.

The response

According to my Last.fm data, show me what I was listening to a year ago today. I’d love to see the shape of the day.

Executing lastfm.get_recent_tracks

Here’s how that day played out — five sessions spread across nearly nineteen hours, plus two lone strays:

Last.fm day shape
Five sessions across one scrobble day
toolforest.io
Total scrobbles
39
Unique artists
29
Top artist
Coldplay
Active window
~19h
After midnight
eclectic — Kate Bush, Radiohead, Daft Punk
11 tracks · 12:04–1:30 AM
3 AM stray
one lone Coldplay track
1 track · 3:04 AM
Midday mix
poppy — Daft Punk, Metric, Future Islands
10 tracks · 11:09 AM–12:07 PM
Afternoon long set
wide-ranging — Travis to Metallica
16 tracks · 4:01–5:02 PM
Evening sign-off
a single live Bowie cut
1 track · 7:27 PM
12 AM
4 AM
8 AM
12 PM
4 PM
8 PM
12 AM
Bar position = when it played · width = how long the session ran · thin marks = single tracks.
The two strays
A lone 3 AM Coldplay track and a single live Bowie cut at 7:27 PM — bookends with nothing around them.
The long afternoon
16 tracks across 13 artists in one 4 PM hour — the densest, widest-ranging stretch of the day.

The day has a sprawling shape. It opens just after midnight with an eclectic late-night run — Kate Bush, PJ Harvey with Thom Yorke, Radiohead, Daft Punk, closing on Jeff Buckley’s “Grace” at 1:30 AM. Then a single Coldplay track at 3 AM, alone in the dark.

Midday brings a tighter, poppier ten-track stretch (Daft Punk, Metric, Future Islands), and the real centre of gravity is a dense 4 PM hour — sixteen tracks across thirteen artists, wandering from Travis to Rammstein to Patti Smith to Metallica. It’s the widest-ranging stretch of the day by far.

Two things stand out: the lone 3 AM Coldplay track sits by itself with nothing around it, and the day signs off with a single live David Bowie cut at 7:27 PM — two quiet bookends framing the busier sessions in between.

The five sessions

Last.fm does not label sessions. They are inferred from the gaps between tracks, while two isolated plays remain ungrouped.