{"id":314713,"date":"2026-05-21T20:26:25","date_gmt":"2026-05-21T20:26:25","guid":{"rendered":"https:\/\/en-gb.wordpress.org\/plugins\/blocks-for-last-fm\/"},"modified":"2026-05-21T20:34:19","modified_gmt":"2026-05-21T20:34:19","slug":"groovelog-blocks-for-last-fm","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/groovelog-blocks-for-last-fm\/","author":12965513,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"6.7","requires_php":"7.2","requires_plugins":null,"header_name":"GrooveLog Blocks for Last.fm","header_author":"Sarah Norris","header_description":"A collection of blocks for displaying Last.fm listening data.","assets_banners_color":"285257","last_updated":"2026-05-21 20:34:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":33,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mikachan","date":"2026-05-21 20:34:19"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3542710,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3542710,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3542710,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3542726,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3542726,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"groovelog-blocks-for-last-fm\/recently-played-tracks":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"groovelog-blocks-for-last-fm\/recently-played-tracks","version":"1.0.0","title":"Recently Played Tracks","category":"groovelog-blocks-for-last-fm","icon":"playlist-audio","description":"Display your most recently played tracks scrobbled from Last.fm.","keywords":["music","sound"],"attributes":{"textAlign":{"type":"string"},"username":{"type":"string"},"numberOfTracks":{"type":"string","default":"1"},"showTrackArtwork":{"type":"boolean","default":false},"imageStyle":{"type":"string","default":"default"},"includeLinkToTrack":{"type":"boolean","default":true}},"supports":{"html":false,"align":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"shadow":true},"textdomain":"groovelog-blocks-for-last-fm","editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1220,18373,218,250492,39661],"plugin_category":[50,56],"plugin_contributors":[214560],"plugin_business_model":[],"class_list":["post-314713","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-lastfm","plugin_tags-music","plugin_tags-recently-played","plugin_tags-scrobble","plugin_category-media","plugin_category-social-and-sharing","plugin_contributors-mikachan","plugin_committers-mikachan"],"banners":{"banner":"https:\/\/ps.w.org\/groovelog-blocks-for-last-fm\/assets\/banner-772x250.png?rev=3542726","banner_2x":"https:\/\/ps.w.org\/groovelog-blocks-for-last-fm\/assets\/banner-1544x500.png?rev=3542726","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/groovelog-blocks-for-last-fm\/assets\/icon.svg?rev=3542710","icon":"https:\/\/ps.w.org\/groovelog-blocks-for-last-fm\/assets\/icon.svg?rev=3542710","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>GrooveLog Blocks for Last.fm adds block-based Last.fm listening data to your WordPress site.<\/p>\n\n<p>The plugin currently includes a Recently Played Tracks block that displays the latest tracks from a Last.fm user. Add a username, choose how many tracks to show, and optionally include artwork and links back to Last.fm.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Display 1 to 50 recently played tracks.<\/li>\n<li>Show track names and artist names.<\/li>\n<li>Link tracks to their Last.fm pages.<\/li>\n<li>Add optional artwork using default, vinyl, cassette, or CD styles.<\/li>\n<li>Configure your Last.fm API key once for all blocks.<\/li>\n<li>Cache Last.fm responses for five minutes to reduce repeat API requests.<\/li>\n<\/ul>\n\n<h4>Recently Played Tracks<\/h4>\n\n<p>Use this block to show a list of recently played tracks from a Last.fm profile.<\/p>\n\n<p>Block settings:<\/p>\n\n<ul>\n<li>Last.fm Username: the Last.fm username to fetch tracks for.<\/li>\n<li>Number of Tracks: the number of tracks to display. Defaults to 1.<\/li>\n<li>Include Album Art: whether to include artwork for each track. Disabled by default.<\/li>\n<li>Artwork Type: default, vinyl record, CD, or cassette tape.<\/li>\n<li>Include Link to Track: whether to link each track to Last.fm.<\/li>\n<\/ul>\n\n<p>Set the Last.fm API key once in Settings &gt; GrooveLog Blocks for Last.fm, then add your Last.fm username in the block sidebar.<\/p>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to the <a href=\"https:\/\/www.last.fm\/api\">Last.fm API<\/a> to fetch recently played track data. When a page containing the Recently Played Tracks block is rendered, the plugin sends the saved Last.fm API key, the configured Last.fm username, and the requested number of tracks to <code>https:\/\/ws.audioscrobbler.com\/2.0\/<\/code>.<\/p>\n\n<p>The response can include track names, artist names, Last.fm track URLs, and artwork URLs. When track artwork is enabled, visitors' browsers may request the returned artwork image URLs directly. Responses are cached in WordPress transients for five minutes. The plugin stores the Last.fm API key in the WordPress options table and stores the Last.fm username in block attributes.<\/p>\n\n<p>Last.fm service links:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.last.fm\/api\">Last.fm API documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.last.fm\/api\/tos\">Last.fm API Terms of Service<\/a><\/li>\n<li><a href=\"https:\/\/www.last.fm\/legal\/privacy\">Last.fm Privacy Policy<\/a><\/li>\n<\/ul>\n\n<h3>Source Code<\/h3>\n\n<p>The distributed plugin includes compiled block assets in the <code>build<\/code> directory. The human-readable source code and build tools are available on <a href=\"https:\/\/github.com\/mikachan\/groovelog-blocks-for-last-fm\">GitHub<\/a>.<\/p>\n\n<p>To build the plugin assets from source, run <code>npm install<\/code> and <code>npm run build<\/code>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from the WordPress plugin directory, or upload the plugin files to <code>\/wp-content\/plugins\/groovelog-blocks-for-last-fm<\/code>.<\/li>\n<li>Activate the plugin from the Plugins screen in WordPress.<\/li>\n<li>Add your Last.fm API key in Settings &gt; GrooveLog Blocks for Last.fm.<\/li>\n<li>Add your Last.fm username in the block settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20a%20last.fm%20api%20key%3F\"><h3>Do I need a Last.fm API key?<\/h3><\/dt>\n<dd><p>Yes. Create an API key from <a href=\"https:\/\/www.last.fm\/api\">Last.fm<\/a>, then save it in Settings &gt; GrooveLog Blocks for Last.fm.<\/p><\/dd>\n<dt id=\"where%20is%20the%20api%20key%20stored%3F\"><h3>Where is the API key stored?<\/h3><\/dt>\n<dd><p>The API key is stored in the WordPress options table. It is not stored in block attributes or post content.<\/p><\/dd>\n<dt id=\"does%20the%20block%20make%20an%20api%20request%20on%20every%20page%20load%3F\"><h3>Does the block make an API request on every page load?<\/h3><\/dt>\n<dd><p>No. Last.fm responses are cached in WordPress transients for five minutes.<\/p><\/dd>\n<dt id=\"can%20i%20show%20album%20artwork%3F\"><h3>Can I show album artwork?<\/h3><\/dt>\n<dd><p>Yes. Enable album artwork in the block settings and choose the default, vinyl, cassette, or CD style.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Display Last.fm listening activity in WordPress blocks, starting with recently played tracks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/314713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=314713"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mikachan"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=314713"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=314713"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=314713"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=314713"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=314713"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=314713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}