artist_affinity
Calculates how deeply an artist features in a user's listening history by combining lifetime stream share with recency-weighted half-life. Returns intensity and recency metrics for public profiles without authentication.
Instructions
How deep does an artist run? Lifetime intensity (share of top-artist streams) plus a recency half-life fitted to recent stream ages. Read-only, no auth. (Legacy alias of statsfm_artist_affinity — prefer the canonical name.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artist | Yes | Artist name (substring match) or stats.fm artist ID | |
| statsfm_user | Yes | stats.fm user ID (or username) — public profile, no auth needed | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |