I’m working on a project where I need to monitor when users interact with music streaming services like Spotify or Rdio. Specifically, I want to detect when someone adds a track to their playlist or marks a song as favorite (stars it). I also need to track the same activities for their friends.
Is it possible to access this type of user activity data through the Open Graph API? What endpoints or permissions would I need to implement this functionality? I’ve been looking through the documentation but I’m not sure if these specific actions are available or how to properly request access to this information.
Any guidance on the correct approach would be really helpful. Has anyone successfully implemented similar tracking features?
totally get it, it’s frustrating! last i checked, the open graph API for music ain’t operatin anymore – spotify really put a nail in it years ago. best way is to look at their individual APIs for what you need. playlishts on spotify are good, but friend activity is a hard no due to privacy.
The Open Graph API for music got deprecated years ago, so you’ll have to work with each platform’s API separately. For Spotify, their Web API lets you modify playlists through /v1/playlists/{playlist_id}/tracks - just make sure you have the right OAuth scopes like playlist-modify-public and playlist-read-private. Friends’ activity data is basically impossible to get now though. Spotify killed most social features around 2017 due to privacy concerns. Stick to individual user data and use webhooks when you can. I’ve built similar stuff before and real-time tracking means constantly polling user playlists, which sucks for rate limits. Ask yourself if you actually need real-time updates or if syncing every few minutes would work just as well.