Spotify "Now Playing"
Preview
Spotify Now Playing Widget – Setup Guide
Display your current Spotify track with real-time updates on your website. Shows song title, artist, album artwork, and play status - perfect for personal sites and portfolios.
What You Need
A free Spotify Developer account
A Glitch account (for hosting your API)
Your Framer site or project
Step 1: Create a Spotify Developer App
Log in and click "Create an App"
Name it anything (e.g.
Now Playing Widget
)Add the following Redirect URI:
Click Save
Step 2: Generate Your Refresh Token
Visit this tool:
Paste in your:
Click "Get Token" and authorize your account
Copy the
refresh_token
that appears
Keep this token private. It allows access to your playback status.
Step 3: Set Up a Free API with Glitch
Go to https://glitch.com/ and click "New Project" → "Hello Express"
Rename the default
index.js
file toserver.js
Open the
.env
file and paste:In the Glitch terminal, run:
Replace all contents of
server.js
with the code below:
Click "Show" → "In a New Window"
Copy the live URL (e.g.
https://your-project-name.glitch.me/now-playing
)
Step 4: Plug Into Framer
Drag the Spotify Widget into your Framer project
In the right-hand panel, paste your full API URL into the API Endpoint field:
Preview your site – it should now show:
Extra Features (Optional)
Add vinyl rotation when
playing === true
Add click-through to Spotify track link
Show last played song when nothing is currently playing
Let me know if you'd like these included in future versions!