Spotify
Connect Spotify to MuPiBox – create a Web API app for catalogue and covers, set up the Soloist key for playback and add content.
On MuPiBox, Spotify consists of two separate parts: the catalogue (search, albums, playlists, covers via the Spotify Web API) and playback (Spotify Connect on the box). Both are set up under Content & Services → Providers & Services → Spotify.

1. Catalogue: create your own Web API app
- Log in to the Spotify Developer Dashboard with the account that should own the app and create an app with Web API.
- Enter exactly
https://app.mupibox.de/oauth/spotify/callback/as the Redirect URI and save. - Enter the Client ID in the admin interface, choose the country and click Connect. Spotify opens in a new window; after you allow access the confirmation returns automatically.
- Recommended: also enter the client secret (in the dashboard's app settings behind "View client secret") and click Save client secret.
Why the client secret: since July 2026 Spotify ends every account sign-in of such an app after 6 months – Spotify would then have to be connected again. With the client secret the box gets catalog, search, artists and shows without that sign-in, so nothing stops after 6 months. "Connect" is then only needed for private playlists. Without a client secret the admin interface shows until when the sign-in is valid and warns two weeks ahead. The secret stays on the box and is never shown again.
The account sign-in itself uses PKCE. app.mupibox.de only serves as the HTTPS return address; the tokens stay on your box. If the automatic return does not work, copy the complete callback address from the browser into the admin interface via Manual return.
To connect a Spotify account other than the app owner's, allow it in the dashboard under Users Management.
2. Playback
| Backend | Properties |
|---|---|
| Spotify Soloist (default) | Spotify's official playback engine. Needs a Soloist API key. The box then loads an artist's albums and podcast episodes through the Web API (requests). |
| go-librespot | Free alternative without a Soloist key. Also delivers artist albums and episodes without a Web API request once the box has been selected in the Spotify app or played since it started. Without a Soloist key the box uses go-librespot automatically. |
Both run through the box's central audio bus and also work with Bluetooth headphones and speakers. Changing the backend takes effect after a restart.
Soloist API key
- Open the official "Spotify Soloist API Key" page (link in the admin interface) and create a key.
- Enter the key in the admin interface. It is not the Web API client ID.
- Select the box once as the playback device in the Spotify app – afterwards it appears under its box name.
Treat the Soloist key like a password. The box watches its 90-day lifetime and downloads the current version of the engine from Spotify by itself 14 days before it expires.
Volume: the box decides
Spotify always uses the box volume – whether playback starts via touch, buttons, RFID, the Spotify app or Spotify Connect.
- On every start, resume (also after standby), device change and re-login, Spotify plays at exactly the box volume for the first 10 seconds. Values Spotify brings along (for example 100 % from the app) are replaced immediately.
- While Spotify is paused or reported louder than the box, its sound is briefly muted and released as soon as the box volume is applied (after 1 second at the latest). A loud spike is therefore not audible.
- Afterwards the volume in the Spotify app keeps working: lower is applied immediately, higher in steps of at most 10 percentage points and never above the configured maximum volume.
- Box volume changes also reach a paused Spotify, so it does not resume with an old value.
Requests, limit and preloading
Spotify allows your own Web API app in "development mode" only very few requests. Too many, and Spotify locks the app for up to 24 hours. So the box takes its Spotify data from other sources almost always and counts the rest itself.
Where the box gets its Spotify data
| What | From | Web API requests |
|---|---|---|
| Name and cover of artists, albums and playlists | Spotify's official oEmbed service | none |
| Tracks of an album or playlist | go-librespot, else Spotify's public embed pages | none – except with more than 100 tracks (see below) |
| An artist's albums | with go-librespot: go-librespot · with Soloist: Web API | with Soloist: on the first open 1 per 10 albums, then every 14 days usually 1 (the newest albums only) · with go-librespot: none, only the first tap on an album costs 1 |
| Shows/podcasts: name and episodes | Web API (episodes through go-librespot when it plays) | on the first open 1 per 50 episodes; afterwards only when opened and at most every 12 hours 1 (the newest page only) |
| Searching for content in the admin | Web API | 1 per search; the same search within 6 hours costs none |
The embed pages are the public pages Spotify uses to embed its player in other websites (open.spotify.com/embed/…). They need no sign-in and do not count towards the limit. They are not an officially documented interface, though, and can change at any time. Then – or while Spotify briefly throttles them – the box uses the Web API automatically.
What this means in practice
- Albums and playlists cost practically no request, neither when adding nor when opening. If you want many episodes of a series, you can add the single albums instead of the artist – fastest with "Add many links at once".
- Artists cost one request per 10 albums with Soloist. Example: an audio drama series with 40 episodes added as an artist needs about 4 requests on the first open, also with "Preload everything". After that the box checks only the newest albums every 14 days, usually with 1 request.
- Shows and podcasts: a show with 200 episodes costs 4 requests on the first open. After that the saved list applies; only when the show is opened more than 12 hours after the last check does the box ask for the newest page (usually 1 request) and add new episodes. Nothing is reloaded in the background. If the check fails, the box shows the saved list.
- More than 100 tracks: the embed pages show at most 100 tracks. The box fetches longer albums or playlists (for example audiobooks with many chapters) through the Web API (50 tracks per request). If that is not possible right now, it shows the first 100.
The box's own limit
- The box sends at most 10 requests in 30 seconds, 60 per hour and 300 per day – well before Spotify would lock it. After a real lock by Spotify it lowers these limits itself.
- Background work and "Preload everything" may use at most 60 % of them. 40 % always stay free for tapping new content on the display.
- Under Content & Services → Providers & Services → Spotify → Spotify requests you see the status, the requests of the last hour and the last 24 hours (split into taps, background and preload), whether the embed pages answer right now and the last lock by Spotify.
- When the limit is reached, everything already loaded keeps playing. The box loads new lists again from the time shown.
- Every request is listed with its cause in the logs (
spotify: web api GET … (tap),(background)or(preload)) – so you can see what used up the limit.
Preload everything
"Preload everything" slowly loads the album lists of all artists and the tracks of all albums and playlists in the background, so they are there instantly later. It is not required – without it the lists come on the first open. Progress is saved; starting again continues where it stopped. The result says separately how many lists came through go-librespot and through embed pages (both without a request) and how many real requests were needed. Large shows are deliberately not preloaded; their episodes come when opened.
Adding content
Search results are ranked by title accuracy. Exact album and artist titles come before fuzzy matches without additional Spotify API requests. An optional search type filter is available (album, artist, playlist, show).
Under Media & categories choose the source Spotify and search for artist, album, playlist, show/podcast or track. In the media wizard, you can alternatively paste a Spotify web link or URI. Recognized links are resolved and selected immediately, while text search shows matching results. Spotify content can also be linked to RFID cards.

Real capture of a MuPiBox NG 0.2.0-alpha.1 with a 5-inch display (800 × 480). Covers © their respective rights holders.
Hide an artist's albums and singles
After adding a Spotify artist, open their Spotify media entry in Content & Services → Content and select Select albums / singles.
You can search and filter the available releases by Albums, Singles and Unclassified, then enable or disable individual releases or the currently displayed group. Changes are saved immediately and only affect visibility on this MuPiBox. They survive updates, restarts and catalog refreshes, and also apply to the box display and local library search. Nothing is removed from Spotify.
Only already cached releases are displayed. Open the artist on the box or refresh the artist's catalog to load more. The picker does not start a mass Spotify API crawl. Releases without reliable type metadata appear under Unclassified.
Only use selected albums switches to a positive selection. Chosen albums remain visible even if Spotify adds hundreds of singles later; the player will not show Load more for those unselected releases. New albums must be enabled explicitly in Admin after refreshing the catalogue. This selection is included in portable content backups.
Long Spotify playlists (more than 100 tracks)
Spotify's public embed pages expose only about 100 tracks. MuPiBox NG immediately displays those tracks, but marks the list as potentially incomplete. It attempts to complete the list in the background through an available source. The Spotify Web API serves at most 50 entries per request; the NG respects configured request budgets and retrieves up to 1,000 playlist positions. Spotify may refuse other users' playlists (HTTP 403), or a rate limit or network failure may prevent completion. In that case the first 100 entries remain usable but must not be mistaken for the full playlist.
For other people's public playlists, Spotify may deny full API enumeration with 403 Forbidden despite the account being connected. MuPiBox distinguishes this from a temporary error, displays that Spotify restricts the track listing and retries at most every six hours to conserve the request budget.
Importantly: Tapping the playlist still starts its own Spotify URI via Spotify Connect. Even if MuPiBox can only show the first 100 titles, this is a catalogue preview, not the playback queue, and it does not limit the Spotify playback context.
An existing complete track list is never replaced by a shorter incomplete response. When available, Spotify's snapshot ID lets the NG avoid refetching unchanged playlists. Incomplete listings are retried less aggressively and without bypassing API limits.
Playback is not capped at 100 tracks: MuPiBox hands the playlist URI straight to Spotify Connect. Catalog browsing and playback are separate. Spotify's own Autoplay setting still controls what happens at the end.
Spotify starts unrelated tracks after the end
This is often caused by Spotify Autoplay. When a story, album or playlist ends, Spotify may start another audio drama or recommended track even when it was not added to MuPiBox.
Important during Spotify setup: Disable Autoplay in the Spotify app: Profile picture → Settings and privacy → Playback → Autoplay. If a separate option for other devices / Spotify Connect is shown, disable that as well. See Spotify's official guide.
MuPiBox cannot detect or change the Autoplay setting: Spotify does not expose it through the Web API. NG deliberately does not run its own automatic playback-stop workaround. Hardware tests showed that it could unintentionally jump to other audio dramas. Disable Autoplay in Spotify.
Also check Repeat and Smart Shuffle if unexpected tracks play.
Spotify playlist playback order
Each added playlist has a separate Playlist playback order option in Spotify content management: Spotify order, Newest added first, or Oldest added first. Date ordering affects actual playback and automatic next/previous transitions, not just the visible track list. The Sort setting of a media row still only sorts its tiles, not the tracks inside a playlist.
Date ordering requires Spotify Web API access to the playlist (currently owned or collaborative playlists) and track-level added timestamps. If metadata is unavailable, MuPiBox reports an error instead of silently playing the wrong order. Changes to an already-playing list apply on the next launch. The track listing is cached briefly.
Good to know
- Without internet or a valid Soloist login, saved Spotify covers remain visible on the home screen, grayed out without overlay text and not clickable. They unlock automatically when Spotify is ready.
- If someone starts Spotify on the box from a phone, the player takes over that playback; local playback pauses Spotify and vice versa.
- Parental control can block Spotify as a source.