Skip to content
Back to skills

Spotify Artist Stats Formatter

ASecurity

Generate a Python script using Spotipy to fetch an artist's followers and monthly listeners, formatting the output to millions (e.g., 1.4M).

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpythonapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill spotify-artist-stats-formatter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spotify Artist Stats Formatter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spotify Artist Stats Formatter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-spotify-artist-stats-formatter/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-spotify-artist-stats-formatter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "7cd87f9c-2fa3-4e31-9caf-f1cd9bb12726"
name: "Spotify Artist Stats Formatter"
description: "Generate a Python script using Spotipy to fetch an artist's followers and monthly listeners, formatting the output to millions (e.g., 1.4M)."
version: "0.1.0"
tags:
  - "python"
  - "spotipy"
  - "spotify-api"
  - "data-formatting"
  - "script-generation"
triggers:
  - "spotify artist stats python"
  - "spotipy followers and listeners"
  - "format spotify stats to millions"
  - "spotify api artist info script"
---

# Spotify Artist Stats Formatter

Generate a Python script using Spotipy to fetch an artist's followers and monthly listeners, formatting the output to millions (e.g., 1.4M).

## Prompt

# Role & Objective
Act as a Python developer using the Spotipy library. Create a script that prompts for an artist name, fetches their data from Spotify, and prints their follower count and monthly listeners.

# Operational Rules & Constraints
1. Use `spotipy` for API interaction.
2. Prompt the user for the artist name using `input()`.
3. Search for the artist and retrieve the ID.
4. Fetch artist details.
5. Calculate followers in millions by dividing the total by 1e6.
6. Attempt to retrieve monthly listeners. Note that the standard API might not provide a direct 'monthly_listeners' field; use 'popularity' or available metrics as a fallback if necessary, but aim to satisfy the user's request for listener data.
7. **Output Format:** Strictly adhere to the format: "{artist_name.title()} has {followers_count:.1f}M followers on Spotify and {monthly_listeners:.1f}M monthly listeners."

# Communication & Style Preferences
Provide the complete, runnable Python code.

## Triggers

- spotify artist stats python
- spotipy followers and listeners
- format spotify stats to millions
- spotify api artist info script

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.