analyze_affinity
Identify shared songs between multiple Spotify users to create collaborative playlists and discover common music tastes. Compare listening histories to find tracks everyone knows or songs someone loves.
Instructions
Analyze listening overlap between multiple Your Spotify users.
Find songs that multiple users share in common - perfect for:
Creating collaborative playlists
Road trip music everyone enjoys
Party playlists where everyone knows the songs
Understanding shared music tastes with friends
Two analysis modes:
minima: Songs EVERYONE has listened to (highest overlap)
Good for: "Songs we ALL know"
Score based on lowest listener's play count
average: Songs that satisfy SOME people a lot
Good for: "Songs someone will love"
Score based on average play count
Example queries:
"What songs do my girlfriend and I both like?"
"Find music that everyone at the party knows"
"What's our shared music taste?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_ids | Yes | Array of Your Spotify user IDs to compare (2-5 users) | |
| mode | No | Analysis mode: "average" (songs someone loves) or "minima" (songs everyone knows) | minima |
| limit | No | Number of tracks to return (1-30) | |
| start_date | No | Optional start date filter (YYYY-MM-DD) | |
| end_date | No | Optional end date filter (YYYY-MM-DD) |