I’m looking at making a fun project for generating media recommendations based on past viewing behavior and I’d like to know if the API exposes something like “previous N items that user X played”

Looking through the swagger docs on my server, i see an endpoint of /Users/{UserID}/Views but that only seems to return all of my libraries, not the individual media for that given user’s playback history. I’d like to get the last X (configurable) items that a given user Id has played, but no luck so far.

I’m using the python library here

  • Chaphasilor [he/him]@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    The PlaybackReporting plugin supports that. You can get the item IDs of every media item each user played, along with the timestamp and duration. You can also filter the results using a SQP query. Let me know if you need additional pointers!