跳到正文
TakoAPI
返回技能列表

lastfm

由 gumadeiras 提供

Media & Streaming
2.2k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Access Last.fm listening history, music stats.

描述

该技能的功能

Connects to the Last.fm API to query listening history, music stats, and discovery data. Supports recent tracks, top artists/albums/tracks by time period, loved tracks, similar artist/track lookups, global charts, and tag-based browsing.

Exposes the full Last.fm API surface in one skill, covering both personal listening data and global discovery endpoints without needing separate integrations.

何时使用

  • Check what song is currently playing on your Last.fm account
  • Get your top artists or tracks for the past week or month
  • Find artists similar to one you already know
  • Browse top albums for a specific genre or tag
  • Pull your all-time scrobble stats and listening totals

示例工作流

输入

User asks: What are my top 5 artists this month?

智能体
  1. 1

    Read LASTFM_USER and LASTFM_API_KEY from environment

  2. 2

    Send GET request to user.gettopartists with period=1month and limit=5

  3. 3

    Parse the topartists.artist array from the JSON response

  4. 4

    Format each entry as artist name with play count

输出

A ranked list of the user's top 5 artists for the current month with play counts

前置要求

  • LASTFM_API_KEY environment variable (obtain at last.fm/api/account/create)
  • LASTFM_USER environment variable (your Last.fm username)

安装

clawhub install gumadeiras/lastfm

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接