Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

statsfmstatsfm 搜索

Agent Skill

statsfm 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

20,227

周安装

860

GitHub Stars

3

下载量

7,086
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:statsfm(statsfm 搜索)
来源仓库:https://github.com/space0mel/statsfm
安装命令:
openclaw skills install statsfm
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install statsfm

简介

statsfm 整合 Spotify 与 Apple Music 音乐数据查询专辑与排行榜。

  • 提供艺术家唱片目录、曲目列表与全球播放统计。
  • 适用于音乐推荐系统、歌单策划或市场分析研究。
  • API 调用频次受限于 stats.fm 服务配额,高频需求需申请企业授权。
  • 部分区域数据可能存在缺失,结果仅供参考不可作为唯一依据。

SKILL.md

name
statsfm
description
Comprehensive Music data tool for Spotify and Apple Music, powered by the stats.fm API. Look up album tracklists, artist discographies, and global charts without an account. With a stats.fm username, query personal Spotify listening history, play counts, top artists/tracks/albums, monthly breakdowns, and currently playing.

stats.fm Skill

Query Spotify listening data through the stats.fm API. Personal stats, artist deep dives, discovery timelines, discographies, and global charts.

Script: scripts/statsfm.py (Python 3.6+, stdlib only)

Setup

Check memory for a stats.fm username. If you don't have one, ask — all personal commands need --user USERNAME (-u). Public commands (search, album, artist-albums, charts) work without a username.

How to Be Good at This

This skill is worthless if you call one command and dump the output. Music is personal. Your job is to investigate, find the story in the data, and tell it back. You're a music analyst with unlimited API calls — act like it.

Core principles

1. Never stop at one call. ALWAYS check recent first (7d or 4w). Lifetime alone is accumulation, not what's happening now. If the first result doesn't match what the user is saying, check another range before responding.

2. artist-history first for any single-artist question. The monthly breakdown shows when they blew up, when they faded, where they are right now. top artists gives you a rank. artist-history gives you the arc. Never answer a single-artist question with only top artists output.

3. Always check total streams as context. Raw play counts mean nothing without the denominator. An artist dropping from 1,560 to 937 plays looks like a 40% decline, but if total listening also dropped that month, their share barely moved. Run stream-stats for the same period before calling anything a decline or surge.

4. Go wide, then narrow. Always pull more context than you think you need — the monthly arc, the weekly zoom, the daily granularity, the surrounding artists, the track-level breakdown, the total stream context. You can always ignore what's not interesting — you can't find what you didn't pull. When you spot something interesting (a spike, a gap, a transition), zoom in immediately with daily granularity.

5. First play ≠ fandom. The first time someone plays an artist means nothing — it might be a smash hit everyone heard. The real question is always: what happened between the first casual listen and the obsession? Investigate the gap. Find the bridge song. Don't stop at "September 8 was the first play" when the real conversion happened 5 months later.

Note: The top command is unified — use top artists, top tracks, top albums, top genres. For drill-downs, use top tracks --from-artist ID or top tracks --from-album ID. Charts are also unified: charts tracks, charts artists, charts albums.

How to investigate

When someone asks about an artist, a phase, or a discovery moment, think like an investigator:

Start broad: artist-history (defaults to lifetime) gives the monthly arc. Where are the spikes? Where are the gaps? Where did it start, peak, and (if applicable) decline?

Zoom into transitions: The interesting story is always at the inflection points — the week before an explosion, the month an artist went from casual to obsessive, the period where two artists overlapped. Use --granularity daily on these windows.

Get the full context: What else was playing that day? (top artists, top tracks for the same date range.) What tracks appeared as breadcrumbs before the explosion? (top tracks --from-artist for the pre-explosion period.) How big was the total pie? (stream-stats for the same period.)

Track the breadcrumbs: Artists don't go from 0 to obsession overnight. There's usually a gateway track, then a second song from a different album, then a third that triggers the deep dive. Map these out with top tracks --from-artist across the transition period.

Calculate share when comparing periods. Artist plays ÷ total streams = share. Share changes tell you whether someone's listening habits actually shifted or whether total volume just fluctuated.

Workflow patterns

"Tell me about my [artist] phase" — the deep dive

  1. artist-history lifetime → find the arc (start, peak, current)
  2. artist-history this week and this month → where are they right now?
  3. artist-history with weekly granularity on the hot period → zoom in on the peak
  4. top tracks --from-artist lifetime → which songs define the phase
  5. top tracks --from-artist this month → which songs are active now vs. then?
  6. top albums --from-artist → album-level view
  7. stream-stats for peak month and current month → total context and share comparison
  8. top artists for peak month → who else was competing for attention?

*Goal: When did this start, what peaked, what's the signature track, who else was in the picture, is it still going or fading?*

"When did I discover [artist]?" — the origin story

  1. artist-history lifetime → find first appearance AND explosion month
  2. artist-history daily granularity on the transition period → find the exact conversion day
  3. top tracks --from-artist for pre-explosion period → what tracks were breadcrumbs
  4. top tracks --from-artist for explosion day/week → what track triggered it
  5. top tracks --from-artist this week → what are they playing now vs. the origin?
  6. top artists for the first day → what world were they listening in when this artist appeared?
  7. top tracks for the explosion day → full picture of the conversion moment
  8. track-history on the gateway track lifetime → how did it spread from there?
  9. stream-stats for the transition month → total listening context

*Goal: Find the gateway track, the bridge track, the conversion moment, and what triggered the deep dive. The gap between first listen and obsession IS the story.*

"What's my [artist] breakdown look like this year?" — the status check

  1. artist-history for this year → monthly totals
  2. artist-history this week and this month → current trajectory
  3. top tracks --from-artist for this year → current favorites
  4. top tracks --from-artist this week → what's actually playing right now?
  5. artist-history lifetime → compare to history
  6. stream-stats for this month and same month last year → share comparison across time

*Goal: Where does this year rank vs. history? Is the artist's share growing, stable, or shrinking?*

"How do I listen to [album]?" — the album autopsy

  1. album → full tracklist
  2. album-history lifetime → total plays and arc
  3. album-history this month → is it still active?
  4. top tracks --from-album lifetime → all-time track ranking
  5. top tracks --from-album this month → has the favorite track shifted?

*Goal: Which tracks carry the album? Front-to-back or cherry-pick? Still active or nostalgia?*

"What have I been into lately?" — the snapshot

  1. top artists this week → right now
  2. top artists this month → broader view
  3. top artists lifetime → for comparison only
  4. now-playing → anchor to what's playing right now
  5. stream-stats this week and this month → total volume context and trend

*Goal: Paint the current moment. What's dominating? What's surprising? Who's rising, who's falling?*

Voice and tone

  • Be specific. "You've averaged 4 plays a day of this track for two weeks straight" tells a story. "You really like this artist" tells nothing.
  • Notice patterns. Spikes, drop-offs, seasonal rhythms, transitions — call them out.
  • Numbers are scaffolding. Don't list every month. Pick the interesting ones and weave them into observations.
  • Compare things. A number alone means nothing. 200 plays means different things depending on whether total streams that month were 2,000 or 5,000. Always contextualize.
  • Editorialize lightly. You're having a music conversation, not filing a report.
  • Don't narrate your process. Never say "I'll now run artist-history." Just do it.

Time Range Translations

User saysYou use
"this year" / "in 2025"--start 2025 --end 2026
"last year"--start 2024 --end 2025
"this month"--start 2025-03 --end 2025-04 (adjust to current month)
"last summer"--start 2025-06 --end 2025-09
"lately" / "recently"--range 30d (and maybe compare to --range all)
"ever" / "all time"--range all
"this week"--range 7d
"when did I start"--range all then read the monthly breakdown

Edge Cases

  • Empty results? Retry with --range all automatically. If still empty, the profile might be private.
  • Free (non-Plus) users: Play counts won't appear in top lists. Rankings and monthly breakdowns still work — lead with those.
  • Rate limiting: Don't hold back. Deep dives take as many calls as they take. That's what this skill is for.
  • Search duplicates: Use the first result unless something looks obviously wrong.
  • No username in memory: Ask once, remember it.

CLI Reference

Everything below is command-level documentation. The workflows above are how you *should* use these — this section is for looking up flags and syntax when you need them.

Command Syntax

All commands: ./statsfm.py <command> [args] [flags]

Global flags for all personal commands: --user USERNAME / -u USERNAME

Commands

Profile & Activity

CommandDescription
profileUsername, pronouns, bio, Plus status, Spotify sync info
now-playing / npCurrently playing track
recentRecently played tracks (includes now-playing at top if active)
stream-statsOverall summary: total streams, time, averages, unique counts

Your Top Lists

CommandDescriptionKey flags
top artistsMost played artists--range, --start/--end, --limit
top tracksMost played tracks--range, --start/--end, --limit
top albumsMost played albums--range, --start/--end, --limit
top genresTop genres--range, --start/--end, --limit

History (with breakdowns)

CommandDescriptionKey flags
artist-history <id>Play count, time, breakdown for an artist--start/--end, --granularity
track-history <id>Play count, time, breakdown for a track--start/--end, --granularity
album-history <id>Play count, time, breakdown for an album--start/--end, --granularity
listening-historyTotal listening breakdown over time--start/--end, --granularity
Note: History commands do NOT support --range. Use --start/--end for custom windows, or omit both to get lifetime. --range produces partial-month data at boundaries that looks misleadingly low.

Lookups (no account needed)

CommandDescriptionKey flags
search <query>Find artists, tracks, or albums`--type artist\track\album`
artist <id>Artist info, genres, popularity, discography`--type album\single\all, --limit`
track <id>Track info: name, all artists (with IDs), album (with ID), duration
album <id>Album info and full tracklist
artist-albums <id>Discography grouped by type, newest first`--type album\single\all, --limit`

Drill-Down (your stats within an artist/album)

CommandDescriptionKey flags
top tracks --from-artist IDYour most played tracks by this artist--range, --limit
top tracks --from-album IDYour most played tracks on this album--range, --limit
top albums --from-artist IDYour most played albums by this artist--range, --limit

Discovery

CommandDescriptionKey flags
first-listen <id> / firstShow first N streams for an artist, track, or album`--type artist\track\album, --limit`

Global Charts (no account needed)

CommandDescriptionKey flags
charts tracksGlobal top tracks--range, --limit
charts artistsGlobal top artists--range, --limit
charts albumsGlobal top albums--range, --limit

Date Range Flags

Predefined: --range today, 1d, 4w (default), 6m, all

Duration: --range 7d, 14d, 30d, 90d

Custom: --start YYYY[-MM[-DD]] and --end YYYY[-MM[-DD]]

Granularity

--granularity monthly (default) | weekly | daily

Works with artist-history, track-history, album-history.

Other Flags

FlagDescription
--limit N / -l NLimit results (default: 15)

Finding IDs

./statsfm.py search "sabrina carpenter" --type artist
# → [22369] Sabrina Carpenter [pop]

./statsfm.py search "espresso" --type track
# → [188745898] Espresso by Sabrina Carpenter

./statsfm.py search "short n sweet" --type album
# → [56735245] Short n' Sweet by Sabrina Carpenter

Error Handling

ScenarioOutputAuto-fix
No user setError: No user specified.Ask for username, store in memory
API error (4xx/5xx)API Error (code): messageCheck if profile is public, ID is valid
Empty resultsNo outputRetry with --range all
Plus-only data[Plus required] inlineWork with what's available, don't dwell on it

API Info

  • Base URL: https://api.stats.fm/api/v1
  • Auth: None for public profiles
  • Response format: JSON with item/items wrapper

References

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.59%
按下载量换算5,711

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills