Last.fm Music Stats & Discovery for Openclaw

A comprehensive tool for accessing personal listening history, global music charts, and artist metadata via the Last.fm API.

gumadeiras
v1.0.2
Jan 18, 2026
2
3.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install lastfm

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install lastfm using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Last.fm Music Stats & Discovery?

The Last.fm API Skill enables AI agents and developers to programmatically access a wealth of musical data. By leveraging this Openclaw Skills integration, you can query real-time now playing information, historical scrobbling counts, and deep-dive into artist or album metadata. Whether you are building a personal dashboard or a music recommendation engine, this skill provides the bridge to Last.fm's extensive database.

This integration allows for granular control over user data, including top artists, albums, and tracks over various time periods. It also exposes global trends and tag-based discovery, making it an essential tool for developers who want to incorporate music context into their applications.

Last.fm Music Stats & Discovery Use Cases

  • Monitoring real-time listening habits and now playing status for social integration.
  • Generating long-term listening reports and analytics across artists, albums, and tracks.
  • Discovering similar artists and tracks based on specific musical interests or current playback.
  • Searching the global Last.fm database for metadata, bios, and genre tags.
  • Automating music discovery workflows based on weekly charts or specific musical periods.

How Last.fm Music Stats & Discovery Works

  1. The skill initializes by retrieving the required environment variables: LASTFM_API_KEY and LASTFM_USER.
  2. Requests are constructed as GET calls to the Last.fm REST API endpoint at ws.audioscrobbler.com/2.0/.
  3. Specific parameters such as method, api_key, format=json, and user-specific queries are appended to the URL based on the user's intent.
  4. The API returns a structured JSON payload containing the requested music data.
  5. The output can be further processed or filtered for specific insights using JSON parsing tools.

Last.fm Music Stats & Discovery Setup

To get started with this Openclaw Skills component, you need a Last.fm API key. Follow these steps:

  1. Obtain your API key from the Last.fm API account page.
  2. Add the following environment variables to your shell profile or ~/.clawdbot/.env:
export LASTFM_API_KEY="your_api_key_here"
export LASTFM_USER="your_lastfm_username"

Last.fm Music Stats & Discovery Data Schema & Taxonomy

The skill interacts with several primary data entities returned in JSON format. The following table highlights the core data structures:

Entity Key Fields Description
Recent Tracks artist, track, album, date, nowplaying A live stream of scrobbled music
User Info playcount, artist_count, track_count Overall profile statistics and registration date
Top Stats playcount, name, rank, period Aggregated data for artists, albums, or tracks
Metadata bio, tags, similar, images Detailed info including artist bios and imagery
Global Charts rank, artist, playcount Trending data across the entire Last.fm community

Last.fm Music Stats & Discovery Advanced Features

  • Support for multi-period filtering (7day, 1month, 3month, 6month, 12month, overall) for comparative trend analysis.
  • Deep metadata retrieval including artist biographies and similar artist suggestions for enhanced discovery.
  • Tag-based discovery for exploring specific genres, moods, or global music trends.
  • Integration-ready JSON output designed for seamless compatibility with the wider Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*