Spotify Top Tracks
A WordPress Playground powered demo of Remote Data Blocks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/automattic/spotify-demo/archive/refs/heads/trunk.zipRemote Data Blocks Demo
This repo uses WordPress Playground to provide interactive examples of using Remote Data Blocks with Spotify.
Note: WordPress Playground sometimes retains state from previous sessions. Opening a new incognito window may be necessary to get a fresh start.
Remote Data Blocks is a WordPress plugin that makes it easy to combine content and remote data in the block editor. Easily register blocks that load data from Airtable, Google Sheets, Shopify, GitHub, or any other API. Read more about well-supported use cases.
A simple plugin is included to demonstrate the use of remote data blocks with Spotify. Before using it, replace the placeholder credentials in spotify.php with your own Spotify API credentials:
YOUR_SPOTIFY_CLIENT_ID— Your Spotify app's Client IDYOUR_SPOTIFY_CLIENT_SECRET— Your Spotify app's Client SecretYOUR_SPOTIFY_ARTIST_ID— The Spotify Artist ID you want to display top tracks for
You can obtain a Client ID and Client Secret by creating an app in the Spotify Developer Dashboard.
Without this plugin, significant custom development would be necessary to retrieve, cache, and output this third-party information.