Back to APIs list

Spotify API examples & templates

Use these vals as a playground to view and fork Spotify API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
stevekrouse avatar
spotifyOAuthCallback
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
dthyresson avatar
processTrackBlobsJob
@dthyresson
Cron
processTracksBlobsJob Periodically fetch all Spotify tracks from Blob storage and update the tracks database with a subset of display information. Keys take the format: spotify_track_id:4tVhBXOhSlqYCL2IjyoUNu .
stevekrouse avatar
spotifyRefreshToken
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
stevekrouse avatar
spotifyGetToken
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
stevekrouse avatar
stockPrice
@stevekrouse
HTTP
Current Stock Price This val was designed to be used in Google Sheets, particularly because Google Finance stopped supporting Spotify inexplicably. Usage Copy and paste this into Google Sheets: =IMPORTDATA(CONCATENATE("https://stevekrouse-stockprice.web.val.run/?simple=1&symbol=","SPOT")) Replace "SPOT" with the symbol you want API This val currently uses Alpha Vantage's free plan (5 requests per minute & 500 per day). You can sign up for your own API Key here: https://www.alphavantage.co/support/#api-key
dthyresson avatar
tracksAPI
@dthyresson
HTTP (preview)
Forked from dthyresson/graphQLYoga
stevekrouse avatar
spotifyScopes
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
dthyresson avatar
resetFavoriteSongSearches
@dthyresson
Cron
Reset Favorite Song Searches Cron to clear and reset favoritre Spotify song searches periodically.
aleaf avatar
arctangent2024
@aleaf
HTTP
@jsxImportSource https://esm.sh/react
cingozilyas avatar
BuyukInsan
@cingozilyas
HTTP
@jsxImportSource npm:react
rodrigotello avatar
valTownInspoList
@rodrigotello
Script
Val Town inspiration & use cases list List [as object] used in Val Town's use cases and inspiration. Check it out at in /examples/use-cases and /docs/tutorial/4
vladimyr avatar
podcastBadge
@vladimyr
HTTP
Console DevTools devtools.fm
iamseeley avatar
LandingPage
@iamseeley
Script
@jsxImportSource https://esm.sh/hono@latest/jsx
iamseeley avatar
EditProfilePage
@iamseeley
Script
@jsxImportSource https://esm.sh/hono@latest/jsx
dthyresson avatar
me
@dthyresson
HTTP
me Welcome to my Val town! I'm DT , a GP at Preston-Werner Ventures where I invest in early stage startups. I also work on RedwoodJS . I enjoy ☕️ and collecting 🖍 street art, 🧷 punk/new wave/rock poster art and ephemera (Madchester, The Haçienda, and Factory Records), vintage 🥁 🤖 drum machines & 🎹 synths. Have a look at my Vals: GraphQL Spotify Misc
fossforlife avatar
lastFmNowPlaying
@fossforlife
Script
An interactive, runnable TypeScript val by fossforlife