CODE COMPONENT
Spotify "Now Playing"
Free
Preview
Spotify Now Playing Widget – Setup Guide
This guide will walk you through setting up the Spotify Now Playing widget you purchased, so it connects to your personal Spotify account and shows your current track on your Framer site.
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!
People also like…
$0.00