Jump to content

Search the Community

Showing results for tags 'API'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android Mobile
    • Android TV / Fire TV
    • Emby Theater
    • iOS
    • Apple TV
    • Kodi
    • Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • LG Smart TV
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support


  • Emby Blog

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

  1. Can i add with my plugin, a rating symbol for each provider that i have add + there rating value. Yet there is only 1 rating symbol a red star
  2. Having some trouble determining the parameter I'm missing to successfully call any of the instant mix api endpoints. So far each call returns: Instant Mix endpoints I've attempted to hit: /Albums/{Id}/InstantMixExample: http://emby:8096/Albums/d317099909bb0e80e58d835c33c5fa23/InstantMix Items/{Id}/InstantMix Example:http://emby:8096/Items/d317099909bb0e80e58d835c33c5fa23/InstantMix In addition to a few others. All return the same error. I can successfully return other API requests, retrieving albums/artists and similar. I have been poking around in the swagger ui from the newest beta build but have not been able to find any specific params. Consumes/produces just state "application/json". Any help on what parameter I'm missing would be greatly appreciated.
  3. sarat1989@gmail.com

    Emby API

    Hi, My client has 5 docker running with emby server. We need to create a status page that will show the status of each docker emby and the number of concurrent users. Can anyone please let me know how i can setup this. We have already enabled API users and passwords through hiroku. I need assistance in codes that will make me to get the status of the emby server and users connected list. Thanks in advance
  4. reggi

    Get played status

    Hey, I was wondering what the proper way is to get the IsPLayed status over the Emby API? I can't figure that one out, I do have all users info and a list of ItemResultDto's where I need the Isplayed status for. Can someone help me with that? Thanks, Reggi
  5. rango3221

    Emby API Watched Status

    Hello everyone, iam trying to create a script which will allow me to backup the watched statuses of multiple users in my household. I have the following code to get the movies list from my current installation. The issue is when i query the movie list that is returned, i do not see the watched status of the movies. Can anyone please point me in the right direction. Thanks Jay $embyServerUrl = "http://localhost:8096" $embyUsername = "dummy" $embyPassword = "xxxxxx" $embyClientName = "PowerShellScript" $embyDeviceName = "PowerShellScriptEpisodeFiller" $embyDeviceId = "1" $embyApplicationVersion = "1.0.0"; $authUrl = "{0}/Users/AuthenticateByName?format=json" -f $embyServerUrl Function Get-StringHash([string] $String,$HashName = "MD5") { $StringBuilder = New-Object System.Text.StringBuilder [system.Security.Cryptography.HashAlgorithm]::Create($HashName).ComputeHash([system.Text.Encoding]::UTF8.GetBytes($String))|%{ [Void]$StringBuilder.Append($_.ToString("x2")) } $StringBuilder.ToString() } function Get-EmbyAccessToken { [CmdletBinding()] param ($username, $password) $authUrl = "{0}/Users/AuthenticateByName?format=json" -f $embyServerUrl $sha1Pass = Get-StringHash -String $password -HashName "SHA1" $md5Pass = Get-StringHash -String $password $postParams = (@{Username="$username";password="$sha1Pass";passwordMd5="$md5Pass"} | ConvertTo-Json) $headers = @{"Authorization"="MediaBrowser Client=`"$embyClientName`", Device=`"$embyDeviceName`", DeviceId=`"$embyDeviceId`", Version=`"$embyApplicationVersion`""} Write-Verbose ("authUrl={0},Username={1},sha1Pass={2},md5Pass={3},params={4}" -f $authUrl, $Username,$sha1Pass,$md5Pass,$postParams) return (Invoke-WebRequest -Uri $authUrl -Method POST -Body $postParams -ContentType "application/json" -Headers $headers) } function Get-EmbyMovieList { [CmdletBinding()] param ($AccessToken) $url = "{0}/Items/UserData?format=json&recursive=true&IncludeItemTypes=Movie" -f $embyServerUrl $embyHeaderWithAccessToken = @{"X-MediaBrowser-Token"=$user.AccessToken} Write-Verbose ("authUrl={0},Header={1}" -f $url, $embyHeaderWithAccessToken) return (Invoke-WebRequest -Uri $url -Method GET -ContentType "application/json" -Headers $embyHeaderWithAccessToken) } function Write-Feedback() { param ( [Parameter(Position=0,ValueFromPipeline=$true)] [string]$msg, [string]$BackgroundColor = "Yellow", [string]$ForegroundColor = "Black" ) Write-Host -BackgroundColor $BackgroundColor -ForegroundColor $ForegroundColor $msg; $msg | Out-File "c:\Users\kodi-client\Desktop\movielist.json"; # <<< or add a param to location } $authResult = Get-EmbyAccessToken -Username $embyUsername -Password $embyPassword $user = $authResult.Content | ConvertFrom-Json $userAccessToken = $user.AccessToken $movieList = Get-EmbyMovieList -AccessToken $userAccessToken Write-Feedback $movieList #Write-Host ($movieList)
  6. tymanthius

    API key changes every time I update

    I'm on the beta, and every time I apt-get upgrade the api changes. This is a huge annoyance as I use the Ombi requests system that relys on the api. any idea why this is?
  7. spitefulgod


    Hi guys, Is there a way to get access to the Live TV EPG via the API? I couldn't see anything in the wiki, I can get information on the currently playing item via .NowPlayingItem but want to have the ability for users of my software (https://github.com/spitefulgod/EmbyVision) to find out what's coming up or search.
  8. Guys I'm getting the following error when connecting into to Emby Connect and sending remote control commands to a client, the connection to the server is fine, I can pull details and query the server fine. It works if a direct connection is used (direct to the server not via emby connect) but shows the following error otherwise...... What have a missed? BTW the client is returned from the with the Sessions API with the ControllableByUserId set, so I know I should be able to control it. Sorry I don't have the code here it seemed redundant without the variables, but I connect to emby get a list of server, connect to a server, get the exchange token, get a list of client, get a full list of media, all fine, but then the play to command on the connected client (in this case Edge or Emby Theratre) and the above error occurs. Again it works if I connect to the server directly and not through emby connect.
  9. spitefulgod

    HTTP API Get Specific Client

    Hi all, I want to get the information on a specific client via the HTTP account, I use /sessions/ to get a list of all clients but how do I just get a specific client, I've tried /Sessions/{2429....} and Sessions/?{3422...} but they don't seem to work.... Does anyone have any ideas? Is it even possible?
  10. tidusjar

    Am I using it correct?

    Hey guys, I'm adding support for Emby into Ombi! (Both names go quite well together). After looking at the api I think I understand it but I just want to validate with you guys. So I need to get all of the media on the server with the information, the only way I have found to do this is to get the Administrator user ( /users where Policy.IsAdministrator = true). Then call the following users/AdminUserId/items?Recursive=true&IncludeItemTypes=Movie The reason using the administrator user id is that they should always be able to see everything? Is this a good way to approach this? If there is a better way it would be excellent to know! Thanks!
  11. Hi everyone, I'm updating a new Statistics plugin and needed some advice from developers. I have my configurationpage running but I would like to add a new page so a user can navigate between page A and B Probably I need the ApiClient for that, but can't figure out if there is a function for that. Also looking at other plugins didn't help me or seaching in the IApiClient in Emby.Server repo. Can someone tell me if this is possible and if so how? Thanks
  12. I've learned that TMDB now uses profile configuration to choose priority and fallback of metadata language being returned, when API is used. So, I'd like to ask you to, just like seen in FanArt, allow us to choose our own TMDB api key to be used... that would be a little more help to foreign users like me. Thanks
  13. Hi! I find myself having to re-create libraries quite often (I frequently re-image my server, for instance), and it's a bit painful having to add libraries manually each time. I found the (swagger) docs for api calls that I could make via (eg.) curl here (localhost): http://localhost:8096/swagger-ui/index.html but it doesn't seem to include a call to create/add a new library. Is that possible? I'm hoping for something like: curl -H "token:abcdef" -X POST -F 'name=videos' -F 'real_time_monitoring=true' http://localhost:8096/CreateLibrary but obviously happy with anything that allows me to create libraries programmatically! Thanks, Mike
  14. I have a guest account which I want to block some TV shows with tags ("Parental Control/Block contents with tags"), when I do so, the user can't see the show on "TV Shows/Shows" tab, but the same user can see episodes from the restricted ones on "Home/Latest Media", "TV Shows/Latest Episodes" and "TV Shows/Upcoming" and if he clicks on one of those episodes, he can see all seasons and episodes. It happens on "app.emby.media", "tv.emby.media" and iOS. On my Android TV it seems normal... I have the server's last version (3.0.5882.0), but it was the same before this one... Actually, I think this started on the database refactor version. I don't have the same issue with movies...
  15. llygoden

    AlbumAdded End Point

    HI All, I'm not sure that this is possible but I've noticed that 3rd party clients can notify Emby of new TV Episodes or Movies that need to be added to the library. This allows for the individual item to be scanned rather than a whole library refresh. This can be seen in the Sonarr application public void Update(MediaBrowserSettings settings, int tvdbId) { var path = string.Format("/Library/Series/Updated?tvdbid={0}", tvdbId); var request = BuildRequest(path, settings); ProcessRequest(request, settings); } I would like for the same to be available for music albums. Ideally having a Musicbrainz Release ID passed to the endpoint that will then only require the Album to be indexed rather than a full library update. This is currently how the beets accomplishes it: # Trigger the Update. url = api_url(host, port, '/Library/Refresh') r = requests.post(url, headers=headers) if r.status_code != 204: self._log.warning(u'Update could not be triggered') else: self._log.info(u'Update triggered.') If this is not possible, then no worries it would just save a lot of time and resources from the server point of view. Cheers, Llygoden
  16. Hi all, I use flexget to download my media! I would like to force Emby to update the library every time that flexget add's a new file! Is this possible? Who can I do this? I searched for API library update but could't find any info, Thank you all
  17. Hi all! I'm developing a client for RTI XP Processor. One of the task is media library folder browsing. First, I get top level views by using <'/Users/' + userId + '/Views'> API Next I try to navigate down thru folders using <'/Users/' + userId + '/Items?parentId='+ parentId> API getting parent folder id from currently opened view. On my development installation I get next subfolders of top level Movies: Resume Latest Movies Collections Favorites Genres And it is expected. On client server before it worked the same, but now it is changed to just return flat movies list. Why I get such different behavior and how I can obtain the stable views browsing? My server: Version 3.0.5912.0 Client server: Version 3.0.5913.0 Thanks and regards Alexander Altshuler
  18. Hello, I'm trying to use the Java API to convert M3U playlists into Emby. The API attempts to do this with an HTTP GET, while the API does a POST. Create Playlist via web GUI: =========================== Request.HttpMethod: GET Request.PathInfo: /emby/Playlists Request.QueryString: Name=TestEmbyGui&Ids=8917e95272fb6aba425df1d2179a836c&userId=803643a6650847721111a960eeeebc7f Request.RawUrl: /emby/Playlists?Name=TestEmbyGui&Ids=8917e95272fb6aba425df1d2179a836c&userId=803643a6650847721111a960eeeebc7f Create Playlist via API: ======================== Sending 'POST' request to URL : Post parameters : [userId=803643a6650847721111a960eeeebc7f, format=json, Ids=5b4e882625803ea3c0daa10a8696ad87,2C85af84ce364e80c2b359c3e46ff65a67, Name=embyTest] Response Code : 400 Result : {"ResponseStatus":{"ErrorCode":"ArgumentException","Message":"No item exists with the supplied Id","StackTrace":"[CreatePlaylist: 01/24/2016 20:46:20]:\n[REQUEST: {Name:embyTest,Ids:\"5b4e882625803ea3c0daa10a8696ad87,2C85af84ce364e80c2b359c3e46ff65a67\",UserId:803643a6650847721111a960eeeebc7f}]\nSystem.ArgumentException: No item exists with the supplied Id\n at MediaBrowser.Server.Implementations.Playlists.PlaylistManager+<CreatePlaylist>c__async0.MoveNext () <0x8167b5df0 + 0x00342> in <filename unknown>:0 \n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x8167d8f50 + 0x00038> in <filename unknown>:0 \n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x8167d8b90 + 0x00118> in <filename unknown>:0 \n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x8167d8ac0 + 0x000b3> in <filename unknown>:0 \n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x808a01030 + 0x00042> in <filename unknown>:0 \n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x808a8f540 + 0x0001f> in <filename unknown>:0 \n at MediaBrowser.Api.PlaylistService+<Post>c__async0.MoveNext () <0x8167b51f0 + 0x0052f> in <filename unknown>:0 ","Errors":[]}} What needs to be done with the Ids to get the API to recognize them? I'm currently doing this to get the Ids from the Library DB: bytes = rs.getBytes("guid"); etbi.setGuidId(asUuid(bytes).toString().replaceAll("-", "")); When I query using the guid from the web gui attempt to create a playlist - I get no rows: 0 rows returned in 0ms from: select * from TypedBaseItems where guid = X'8917e95272fb6aba425df1d2179a836c' ; Appreciate any help. Running Emby on FreeNAS 9.3 host.
  19. Hello, Having issue trying to create a playlist via the java API. Can connect ok and get the access token, but seems to fail on the format of the Ids. Post parameters : [userId=319543a665084772bb4449608882bc7f, format=json, MediaType=Audio, Ids=5b4e8826-2580-3ea3-c0da-a10a8696ad87,2C85af84ce-364e-80c2-b359-c3e46ff65a67, Name=embyTest] Result : {"ResponseStatus":{"ErrorCode":"FormatException","Message":"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)." Full content of POST and server response is attached. Appreciate any help. log4j-application_save.log
  20. Damstas

    API for fanArt with LiveTV

    Is there an API to use that allows fanArt from Schedules Direct to be used in LiveTV sections, in similar way to what library items have? Like in this pic https://flic.kr/p/C1dDBg
  21. Added an album today prechecked by picard so all tags were perfect. MB3 submitted an identification query to mbz (as shown in logs) which returns a specific correct result (when i tested it) and yet the album remains unidentified in MB3. More strangley MB3 must have been aware on some level of the correct response as further fetching is performed on the studio and release group in the response...and yet the album remains unidentified in dashboard. Version 3.0.5531.24408 album:we are undone, artist:two gallants the correct query in logs, returnid correct mbz ids 2015-02-26 09:13:17.4155 Info - App: HttpClientManager GET: http://www.musicbrainz.org/ws/2/release/?query="We+Are+Undone" AND artist:"" audiodb query on release group id..oddly prior to log of mbz query 2015-02-26 09:06:49.0711 Info - App: HttpClientManager GET: http://www.theaudiodb.com/api/v1/json/49jhsf8248yfahka89724011/album-mb.php?i=28fcc495-9e80-4095-928d-b997c2f3cbfa refresh of studio oddly prior to log of mbz query 2015-02-26 09:07:28.2779 Debug - App: Running FanartArtistProvider for \\Q6600\Music\Two Gallants 2015-02-26 09:07:29.5395 Debug - App: Running StudiosImageProvider for E:\MediaBrowser\IBN\Studio\ATO Records the full log https://dl.dropboxusercontent.com/u/84611964/server-63560507678.txt my uneducated conclusion is that mb3 definitely did search for this album and find it on mbz and yet did not commit this information to database. issues with album identification is not an isolated incident. I have purposefully not manually identified this album..so to test further suggestions. edit interestingly the studio was commited to the album...
  22. Can anyone give me an example how to request json data from the api in a http url?
  23. Version 3.0.5459.41325 I wondered why MB3 could not identify an album correctly. the logs suggests MB3 is not searching MBZ specifically enough 2014-12-13 15:55:28.2005 Info - App: HttpClientManager GET: http://www.musicbrainz.org/ws/2/release/?query="Heroes" AND artist:"" Adding the Album Artist from ffprobe on track1 (is this what mb3 uses for album searches?) into the search, the album is identified and the distinct xml returned. D:\ffbrobetest>ffprobe.exe -i file:"\\Q6600\Music\Willie Nelson\(2012) Heroes\01 . A Horse Called Music.mp3" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format ffprobe version N-67521-g48efe9e Copyright (c) 2007-2014 the FFmpeg developers built on Nov 11 2014 01:15:40 with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-zlib libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 12.100 / 56. 12.100 libavformat 56. 12.103 / 56. 12.103 libavdevice 56. 2.100 / 56. 2.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 { Input #0, mp3, from 'file:\\Q6600\Music\Willie Nelson\(2012) Heroes\01. A Horse Called Music.mp3': Metadata: album : Heroes artist : Willie Nelson;Merle Haggard album_artist : Willie Nelson copyright : catz MusicBrainz Album Status: official genre : Country compilation : 1 TMED : CD TORY : 2012 publisher : Legacy title : A Horse Called Music track : 1 MusicBrainz Album Release Country: GB artist-sort : Nelson, Willie with Haggard, Merle TSO2 : Nelson, Willie SCRIPT : Latn MusicBrainz Album Type: album MusicBrainz Album Artist Id: 668fd73c-bf54-4310-a139-305517f05311 MusicBrainz Artist Id: 668fd73c-bf54-4310-a139-305517f05311/deb2448c-6fdf-4d 31-921e-757630515dbd BARCODE : 886919604825 CATALOGNUMBER : 88691960482 MusicBrainz Release Group Id: f5563f75-d4fe-42a9-9649-7462641a2ce6 MusicBrainz Album Id: 5f184459-abaf-46a3-b4b7-299333eda118 date : 2012-05-14 Duration: 00:04:37.37, start: 0.025057, bitrate: 320 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s Metadata: encoder : LAME3.97 Side data: replaygain: track gain - -5.700000, track peak - unknown, album gain - unk nown, album peak - unknown, "streams": [ { "index": 0, "codec_name": "mp3", "codec_long_name": "MP3 (MPEG audio layer 3)", "codec_type": "audio", "codec_time_base": "1/44100", "codec_tag_string": "[0][0][0][0]", "codec_tag": "0x0000", "sample_fmt": "s16p", "sample_rate": "44100", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/14112000", "start_pts": 353600, "start_time": "0.025057", "duration_ts": 3914219520, "duration": "277.368163", "bit_rate": "320000", "disposition": { "default": 0, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0 }, "tags": { "encoder": "LAME3.97 " } } ], "chapters": [ ], "format": { "filename": "file:\\\\Q6600\\Music\\Willie Nelson\\(2012) Heroes\\01. A Horse Called Music.mp3", "nb_streams": 1, "nb_programs": 0, "format_name": "mp3", "format_long_name": "MP2/3 (MPEG audio layer 2/3)", "start_time": "0.025057", "duration": "277.368163", "size": "11099397", "bit_rate": "320134", "probe_score": 51, "tags": { "album": "Heroes", "artist": "Willie Nelson;Merle Haggard", "album_artist": "Willie Nelson", "copyright": "catz", "MusicBrainz Album Status": "official", "genre": "Country", "compilation": "1", "TMED": "CD", "TORY": "2012", "publisher": "Legacy", "title": "A Horse Called Music", "track": "1", "MusicBrainz Album Release Country": "GB", "artist-sort": "Nelson, Willie with Haggard, Merle", "TSO2": "Nelson, Willie", "SCRIPT": "Latn", "MusicBrainz Album Type": "album", "MusicBrainz Album Artist Id": "668fd73c-bf54-4310-a139-305517f05311 ", "MusicBrainz Artist Id": "668fd73c-bf54-4310-a139-305517f05311/deb24 48c-6fdf-4d31-921e-757630515dbd", "BARCODE": "886919604825", "CATALOGNUMBER": "88691960482", "MusicBrainz Release Group Id": "f5563f75-d4fe-42a9-9649-7462641a2ce 6", "MusicBrainz Album Id": "5f184459-abaf-46a3-b4b7-299333eda118", "date": "2012-05-14" } } } D:\ffbrobetest> http://www.musicbrainz.org/ws/2/release/?query=%22Heroes%22%20AND%20artist:%22Willie%20Nelson%22 is this an issue? edit. even if i provide the artist mbz or audiodb id (as known to MB3 for the album artist) in the identify interface...the log still shows the same search url without artist..and i get 10 results for heroes by willie nelson..unable to distinguish between them.. the only field which helped on the identify interface was mbz album id 5f184459-abaf-46a3-b4b7-299333eda118 resulting in a different log entry...and a single result 2014-12-13 20:08:54.6303 Info - App: HttpClientManager GET: http://www.musicbrainz.org/ws/2/release/?query=reid:5f184459-abaf-46a3-b4b7-299333eda118 although now i am getting another issue..where the remainder of the ids are not fetched and no audiodb info is fetched...but the mbz album id is populated..
  24. here is what the url will be /Videos/{Id}/Subtitle/{Index}
  25. mellomade

    Remote Control API

    Hi Everyone, One thing I have not heard much about is how all these different clients can be controlled remotely. Is there a plan for some level of TCP communication - websockets for instance? Or maybe similar to XBMC with a JSON API?
  • Create New...