Watched episodes from the API?

I would like to run a script on watched TV episodes after recording them. I would need to know the series name, episode title, season #, and episode #, as well as the path to the file.

Is this possible? I don't see anything in the API docs that does anything like this.

The DVR API is undocumented and subject to change, but you can get what you want from http://DVR:8089/dvr/files

Wow...that was fast! Thanks!

Not a huge deal, but is there any filtering available like:

http://DVR:8089/dvr/files?watched=true&SeasonNumber=1

or similar?

There isn't, but you can use jq:

curl -s http://dvr:8089/dvr/files | jq '.[] | select(.Watched and .Airing.SeasonNumber == 1)'

Thanks. I am not a curl expert, but I am sure I can figure out how to use it inside VBS. If not, it's not a huge deal, it will just increase the speed of the script if I only have to parse items I actually want to run FFMPEG on (which would be watched items).