I was wondering if there was any way to get the date/time of when a user rated a certain film. Currently i'm using the 'GET /account/{account_id}/rated/movies' call and i know there's nothing contained in the return that i could use but i didn't know if there was any other way to do this?
Basically i'm trying to create a "Recently Watched" section on my website and i'm pulling the backdrop, movie title and the rating i gave for the movie and then ordering that then by the 'created_at.desc' variable in the url being used to pull the feed. I didn't know if there was a better way to do this (maybe via lists)?
Any advice would be great!
I apologise if this has already been answered elsewhere, i have searched about but i can't seem to find anything relating to what i potentially want to achieve.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on January 8, 2017 at 11:06 AM
Hi David,
Not right now but I have plans to add the date it was rated. Actually, I have plans to add the dates to all 3 of the account lists (rated, watchlist and favourites).
P.S. Here on TMDb, our account "watched" lists are assumed to be the rated list. There's some nice things that using the rated list gets you like auto-removing the item from your watchlist when rated. What I've noticed though is that a lot of this comes down to marketing and I've actually been thinking of re-naming the rated lists to Watched or Seen.
Reply by David Perkins
on January 8, 2017 at 6:44 PM
Having a "Watched" list would be perfect for what I need. Having the ability to pull the list, ordered by date watched (or date added to the list) and then also have the ability to pull either the backdrop or poster, plus the rating would fix my need. I understand that things like this aren't made for one user, but I'm pretty sure that having this functionality would benefit the API in general.
When I'm done doing what I'd planned, I'll send you over my source code so you can see if there's a better way of me doing what I'm doing if that's ok with you?
So far... the API is pretty good, very well documented and seriously easy to use... Thanks for that :)
Reply by Travis Bell
on January 9, 2017 at 11:37 AM
Hi David,
You can already everything you're asking for with the account rated method except the date that that you rated it. You can however sort by
created_at.desc
so you can at least order by most recently rated. I still think adding the date to the response could be useful since then you can show the user when they rated it. It's the same thing I have plans for right here on TMDb.I want to go over these lists here on TMDb with a second pass and when I do, the API will get the extra data. The API is actually powering a lot of the website now days.
Reply by David Perkins
on January 9, 2017 at 12:21 PM
Oh i know... The API is already doing everything that i need.
I'm looking forward to seeing the potential update though! That would make things 10x easier ;)
Thanks again!