Readme
This val returns the latest track you've listened to via Last.fm.
Last.fm's "scrobbler" keeps track of any song you're listening to on different platforms, you can connect it to Spotify, Tidal, SoundCloud etc.
Fork this val and change the following:
username
= your Last.fm username- Add your Last.fm API key to your environment variables, name it
LASTFM_API_KEY
- You can get your Last.fm API key through this form, it seems like it gets auto-approved.
This will return the most recent track you have been listening to, along with the artist and artwork.
You can easily plug this into your Framer website through Framer Fetch.
You can get the API url of your val by clicking Copy
> Copy HTTP Endpoint
on the right side bar.
For example, my HTTP endpoint is: https://charmaine-listeningtolastfm.web.val.run
Example inside Framer, with Fetch:
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
charmaine-listeningtolastfm.web.val.run
Updated: February 6, 2025