r/trakt•
Walui

Best way to get "Next Episodes" list out of trakt API

Hi, I've been trying to get a list of my next up episodes using Trakt's REST API but I can't find how to do this. The closest thing I found is /shows/id/progress/watched which is exactly what I need except it's only for a single show.

Is there a way to get this for all my shows without calling this endpoint 50 times?

Thanks.

Posted Dec 29, 2019, 11:23 PM UTC

33
dcbmobiledev•

Unsure whether this would help in your case but after exhausting my options via the API I started querying & parsing the html code directly from the main page of myTrakt account. I use it with EventGhost to automate alerts to other devices on my home network. It contains the info for all my episodes (shows I've collected or watchlisted) airing next with a header titled Next Up. Hope that points you in some direction that might be useful. Regards, Dan

2
[deleted]•

[deleted]

1
techuck_•

Seems like something they'd want to implement.

Any progress on this? Are you making this 50+ calls or something else? I'm wanting to do the same in some .js, looking for the cleanest solutions as well. I'm only about 30 minutes into the API. Looks like Calendars might work, no?

1
[deleted]•

[deleted]

1
techuck_•

Dang, thanks for sharing all that. I think I may have misunderstood what you were originally talking about. I was trying to get my next 5-10 shows, like "what's on tonight" view. I'm going to use the RSS feed for what I need...it's just a personal app on my TV, so easy enough to hardcode a few fetches and parse to display.

And yes, RSS after stating I wanted the cleanest solution, lol...I'm a lousy dev! I really just wanted fewest calls and most straightforward I suppose.

1