Jump to content

API for n00bs :)


anthonws

Recommended Posts

What would be the quickest and dirtiest way of using the Emby API?

 

I've seen there's an API wrapper for Emby called EmbyPy.

 

Any samples or hints to start would be appreciated.

 

Cheers,

anthonws.

Link to post
Share on other sites

If you go to the bottom of the dashboard there should be a link "API" that will take you to the swagger interface. From there you can play around generating api requests quite easily. 

  • Like 1
Link to post
Share on other sites

If you go to the bottom of the dashboard there should be a link "API" that will take you to the swagger interface. From there you can play around generating api requests quite easily. 

Thanks!

 

So, if I need to get container and coded info on a given movie, I assume that I have to get the entire list of available Items where "IncludeItemTypes=Movie".

http://localhost:8096/emby/Items?Recursive=true&IncludeItemTypes=Movie&api_key=xxxxxxxx

After that, I would do a for each, on the Movie "Id", to get the steam info, correct?

http://localhost:8096/emby/Videos/7/stream?Container=mkv&api_key=xxxxxxxx

Except it's not working :)

 

EDIT:

 

Ok, scratch that. It seems like I need to filter by "VideoCodec" parameter to get what I want.

 

Still, I would expect that playback info to be available to query via the Item directly...

Edited by anthonws
Link to post
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...