Spotify Lab|Interactive Music Workspacev1.0.0

Your Music Workspace, Code, and API Playground

Explore Spotify playlists, experiment with the API, and write HTML code with an instant preview.

Quick Links:
34+Curated TracksVerified audio streams
100%API VerifiedOAuth protected requests
6 ToolsDev WorkspaceCode, test, and preview
DEVELOPER SANDBOXv1.0.4

Spotify API Playground

Learn how websites communicate with Spotify. Inspect authenticated endpoint requests, header structures, and error payloads.

GEThttps://api.spotify.com/v1/me
01
02
03
04
05
06
07
08
09
10
11
12
13
14
async function getSpotifyProfile(accessToken) {
const response = await fetch(
"https://api.spotify.com/v1/me",
{
headers: {
Authorization: `Bearer ${accessToken}`
}
}
);
if (!response.ok) {
throw new Error("Spotify request failed");
}
return await response.json();
}
Inspector Info
Scopeuser-read-private
Auth TypeBearer Token
Rate LimitStandard
Responseapplication/json

Real Spotify account features require a Spotify developer application and supported OAuth authorization.

DEVELOPER SANDBOX

Code Lab

Write HTML and preview your website instantly. Test layouts, embeds, and scripts right inside your music workspace.

Sandbox v1.0Instant Render
HTML Editor
UTF-8 • Tab Size 2
Live Preview
Viewport Active
READY•Press “Run Code” to execute modifications in real time