Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

spotify-history

Skill by sundial-org

Fetches a user's Spotify listening history, top artists and top tracks, and music recommendations through the Spotify Web API. Built for an AI assistant that answers questions about a user's music taste after a one-time OAuth setup.

  • Score 53
  • 676 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install spotify-history

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills /tmp/awesome-openclaw-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-openclaw-skills/skills/spotify-history ~/.claude/skills/spotify-history

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install spotify-history in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The spotify-history skill lets an AI assistant read a user's Spotify listening data through the Spotify Web API. It can fetch recent plays, top artists and top tracks over short, medium or long time ranges. It can also generate recommendations based on top artists, and make raw calls to any Spotify endpoint.

Setup requires a Spotify Developer App, a stored Client ID and Client Secret, and a one-time OAuth authorization. Tokens are saved locally with 0600 permissions and refresh automatically when expired. The skill suits people who want their assistant to analyze music taste or suggest artists that are not already in their library.

Written from the project's SKILL.md and checked against it.

What it can do

  • recentFetches the user's recent listening history.
  • top-artistsLists top artists for a chosen time range.
  • top-tracksLists top tracks for a chosen time range.
  • recommendGenerates recommendations based on the user's top artists.
  • jsonMakes a raw API call to any Spotify endpoint, such as /me.

What you need

  • Spotify account
  • Spotify Developer App with Client ID and Client Secret
  • Python 3
  • Bash for the setup wizard
  • Browser, or the headless authorization flow

Try asking

  • What have I been listening to recently?
  • Who are my top artists over the last 6 months?
  • Recommend new music based on my top artists.

Good to know

  • Requires a one-time OAuth setup before use.
  • All listed scopes are read scopes for listening history, top items and playback state.
  • Time ranges are approximate: short_term is about 4 weeks and medium_term about 6 months.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/spotify-history/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to spotify-history

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

spotify-history: common questions

Where are Spotify tokens stored?

Tokens are saved to ~/.config/spotify-clawd/token.json with 0600 permissions. They refresh automatically when expired.

What time ranges can I query?

short_term covers about the last 4 weeks, medium_term about the last 6 months (the default), and long_term all time.

Can I authorize Spotify without a browser?

Yes. The --headless flag lets you open the auth URL on any device and paste the callback URL back when prompted.

How do I install spotify-history?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is spotify-history free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is spotify-history safe to use?

It scores 53 of 100. Grades: maintenance D, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to spotify-history?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

spotify-history Install

Add to stack

Loading.