• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

cleverSilverGerbil

Remix of charmaine/ListeningToLastFM
Public
Like
cleverSilverGerbil
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
2/10/2025
README.md

What I'm Listening To, via Last.fm / Spotify

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.

Quick start

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.

Connecting with Framer

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: Screenshot 2025-02-06 at 6.37.22 PM.png

Get started with a template:
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.