Jump to content

get duration of an item via api?


NErdgOd56

Recommended Posts

NErdgOd56

im trying to make a script to check tv show episode duration against TVDB api, after looping through the show, season, and then retrieving a list of episodes using `emby/Items?ParentId=<LIB ID/SHOW ID/SEASON ID>&api_key=<APIKEY>` but if i try the same thing with an episode ID, like `emby/Items?ParentId=437722&api_key=<APIKEY>`  it just returns my libraries again, not any info about the episode.

this is my first time messing with any type of api, so any guidance would be appreciated

Link to comment
Share on other sites

murxer83

You can use the url for a movie, series, pearson, season, episode and so forth.
Id = episode_id or movie_id ........

{url}/Users/{UserId}/Items/{Id}

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...