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. Hi everyone. My first post in this forum. I hope someone with some experience on emby API can help me figuring out how to call this endpoint. (https://app.swaggerhub.com/apis/vdts/jellyfin-server_api/1.0.0#/default/ResetTuner) The background is.. I use a 'virtual M3U tuner' on Jellyfin server that connects to a remote m3u file. This gets only updated if I do so on the admin panel at the EPG Data Refresh. By resetting the tuner, I suppose this would basically reload the remote m3u file but I don't know how to use it. I know it is a POST request, I've tried the payload using {'operationId':'RefreshItem','Id':'38d682202ec8345f5b7381f656f921e9c '} but I cant quite understand what does the Id refer to. That number there is what I can read on the browser address ..../livetvtuner.html?id=8d682202ec8345f5b7381f656f921e9c when getting into the tuner settings page. Any clue? Thanks in advance,
  2. ohmadruga

    Emby Serializer / API

    About A serialization layer for your Emby server's database, allowing information about movies, tv series and episodes to be retrieved in JSON format via GET requests. Project URL https://github.com/samuel-antonini/emby-serializer Why? I wanted to build some custom Python scripts to feed my Superset dashboards with relevant information about my Emby library and I could not find all the information I needed using the native API, so I ended up building this "intermediate app" that sits between my scripts/dashboards and my Emby server's database. Due to to database access restrictions, it is a little bit slow, but that's something I'm going to tackle next. Ideas and feedback are welcome! Screenshots 1. Movie endpoint response 2. Genre & studios detail 3. Providers detail: 4. Media streams detail (audio tracks and subtitles included)
  3. Hello, long time user of emby but new to the forums, sorry if it's breaking any rules! I'm trying to use the embypy search function after initializing the connection between the system and the API server (i think?) however i am getting a 403 forbidden error when i search anything. for example: import embypy emby = embypy.Emby(url="http://HIDDEN FOR PRIVACY", username="HIDDEN", password="HIDDEN") # Initialises Successfully res = emby.search("Nobody") // Errors here the error is: RuntimeError: Unexpected JSON output (status: 403): "Forbidden" how would i go about troubleshooting this?
  4. Salut, je cherche à créer des utilisateurs à partir de leurs comptes google, ou bien autoriser les connexions à partir d'un compte google. Cette fonctionnalité est possible à mettre en place sur une page .html basique : Et est même déjà intégré sur d'autres applications à travers un plugin additionnel. Voici la page d'administration du plugin social login installé sur le serveur nextcloud : Et le résultat pour les utilisateurs une fois configuré avec les différents api de google facebook etc... :
  5. Hello Folks, After the success of getting a count of the current NowPlayingItem entries in the Sessions API, I am now trying to get a list of the Users and what they are currently playing - then send that to my InfluxDB to show in my Grafana server. I am nearly there with this command line, but cannot quite get it so that JQ only shows those session users who are actually playing something... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name' will show me the following... null "Paul" "Tracey" "Sam" "Tom" "Katie" null "The Secret of the Unicorn (1)" null null null null ...which is every possible user. In the above example, only user "Paul" is actually playing ""The Secret of the Unicorn (1)". If I add the JQ options to now show 'nulls'... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name | select(. != null)' then I can get it to this output... "Paul" "Tracey" "Sam" "Tom" "Katie" "The Secret of the Unicorn (1)" ...which is correct but still shows me users that are not playing anything at that time! Does anyone have knowledge of JSON and JQ or the API so that I can just get a list of those users that are playing an item now. I would be happy with this output... "Paul" "The Secret of the Unicorn (1)" ...or even better - turn it in to a key + value pair like this... { "Paul": "The Secret of the Unicorn (1)" } ...so that I can send that to a bash script and then to my InfluxDB. Thanks in advance! Regards, Paully
  6. Would it be straightforward for the /items api to be extended to return library name and library id in the response using &Fields=Library (eg). A couple of times when writing scripts i have wanted to know what library each item is in, and working it out myself is a bit painful. was wondering if asking emby api to provide this info was worthwhile request.
  7. Hello, I've been using emby for a couple of months now it's everything that i expected and more. (only missing a subtitles edit option) The only real issue i have with emby is that i'm very quickly hitting my API limit of Gdrive and i've been struggling with this since day 1. I have: - Gsuite unlimited (exclusively being used for emby) - 40TB Split over all Library's (11 library's in total) - ~80% of my media = Hevc 10 bit MKV - ~275GB Media uploading to Gdrive every 24 hours true rclone with encryption - PC Server is running on : Intel Core i7 6700K @ 4.00GHz 48.0GB Ram Dual-Channel @ 1066MHz GeForce GTX 1070 I know buying hard drives and streaming emby locally would be much better but i wont be able to buy 40TB+ of hard drives anytime soon but will eventually. Is there anything i could do to lower the API usage, could it be possible emby is doing unnecessary scans of my library or is there anything else i should be aware of using the api limit? I attached some older logs the most recent ones where to big to upload. embyserver-63733651213.txt embyserver-63733564811.txt
  8. develguebil

    Can't reach the Emby API Swagger

    Whenever I click the API link I get the following error message: -------------------------------------------------------------------------------------------------------------------------------------- Failed to load API definition. Errors Fetch error NetworkError when attempting to fetch resource. http://<ipaddress:port>/emby/openapi Fetch error Possible mixed-content issue? The page was loaded over https:// but a http:// URL was specified. Check that you are not attempting to load mixed content. -------------------------------------------------------------------------------------------------------------------------------------- Am I missing something?? Thanks
  9. kmsonic023

    Search User API

    Hello people !!! In my system, I need to search for a user to find out if he exists or not and in the API I didn't find a way to do that. Thank's for now!
  10. kmsonic023

    API Treatment Users

    Hello guys!!! I need help handling the API with blocked users. I'm using PHP (cURL). I need the API to bring only the necessary information (whether the user is blocked or not). The list currently shows for all users, but I need to filter this information. Can anyone help me with this?
  11. kmsonic023

    API para listar usuários

    E ae galera, blz? Estou estudando a API e me deparei com um problema. Para listar o usuário, temos que realizar a consulta com o parâmetro http://embyIP:embyPort/emby/Users?api_key=embyApiKey certo? Mas quando eu rodo, ele não retorna nada. Fico com tela em branco. Já no Postman ele funciona normalmente. Saberiam me dizer onde estou errando? Estou trabalhando com o PHP 7.3. Segue meu código: https://pastebin.com/jNGRpHvS Obrigado pessoal! @chef @rechigo
  12. Hi guys. First of all let me congratulate all the Emby team for your amazing work. I got the server installed inside my company for content delivering and is working like a charm but im struggling now with a first problem that i would appreciate you could help me with. I have an Ant server running a webrtc application wich uses java, RED5 and websocket to connect video, from and betweeen html5 clients and the server. STRM file pointing to the player doesnt work and i havent found a way to simply publish and open a hyperlink inside the home screen so an embeded player in a website could do the rest. So far i have only been able to publish HLS streams using IPTV plugin and LiveTV (I bought the premiere subscription) wich works fine for scenarios where a 10-30 seconds delays is acetpable. So, after an extensive reading of the forum i found out that "linking" the home page its not possible (so far at least), so i made an external website where im publishing the webrtc streams wich i need to link to the emby server somehow. Here is where i need some help: Can you explain me how to build an API call that can get a user directly to the emby home screen from an external link ?, I need the API URL link contains the username and password so i can put that on a button in my own application, so that the user thats already logged in (in my intranet) dont have to double log once is beeing transported to emby (using offcourse the Emby authentication). Any lights on the problem will be appreciate. Im a complete newby in API usage, so im being very humble in asking a detailes "how to", even if its sound a little dumb for the oracles of the Emby comunnity. Thank you.
  13. SuperMinecraftKid

    Bulk New Users Python Script

    Hello everyone! I used to have a python script that would add accounts with selenium. It worked well enough, but that was broken by an emby update. Current events have given me lots of free time and I'm kinda bored, so I decided to rewrite my script using python requests and the emby api. This script takes input from a text file in the format <server username>, <emby connect username> <server username>, <emby connect username> <server username>, <emby connect username> and creates users on an emby server with the username <server username> and attempts to link it to <emby connect username>. The script also configures a bunch of settings for the new user. A list of settings that are configured by the script and more details can be found in the readme in the github repo. Here it is: https://github.com/stummyhurt/auto-emby-accounts I'd love to hear any thoughts!
  14. Español: Buenas. Estoy comenzando a utilizar la API, cosa que se me ha hecho muy interesante. En contexto, cuando se crea un usuario, tiene acceso a todas las librerías por default, para eso modifico sus políticas, por ejemplo: Aquí le estoy diciendo que excluya esas dos subcarpetas, en el parámetro "ExcludedSubFolders". Pero me gustaría saber, si hay alguna forma en que al momento de crear el usuario haya algún parámetro que por default haga que NO tengan acceso a ninguna librería, y después yo pueda asignar a tal usuario a qué librerías SI podría acceder? English Good. I am starting to use the API, which has been very interesting for me. In context, when a user is created, he has access to all the libraries by default, for that I modify his policies, for example: Here I am typing that exclude those two subfolders, in the "ExcludedSubFolders" parameter. But I would like to know, if there is any way that at the moment of creating the user there is some parameter that by default makes them NOT have access to any library, and then, I can assign such a user to which libraries he or she could access? Thanks! @@chef @@rechigo
  15. Доброго времени суток знатоки! Подскажите пожалуйста, через какую команду (набор команд) API можно закачать в Emby Server данные о видео (Размер, длительность, качество и т.д.)? При первом запуске фильма Emby получает данные от файла и хранит их в блоке INFO, можно ли закачать эти данные один раз но для всех фильмов сразу? Спасибо за помощь! @@chef
  16. LanternMyWilly

    [API] Login with external form

    Hi! I'm trying to create a webform where you can create an account and login into Emby without having to login in 'https://domain.com/web/index.html#!/startup/login.html?serverId=123'. I've noticed that when you authenticate a user, this user stays authenticated throughout the entire browser. So I thought if I did a '/Users/AuthenticateByName' call in the form, this would would authenticate the user like it would when you normally login but it doesn't. So basically I call '/Users/AuthenticateByName' with my desired username and password I want to login, this does the job but when I go to the same url as provided in the api call, it still asks me to login. Both in the same browser. My code to authenticate the user: function userAuthenticate($username,$password) { $dataArray = array("Username"=>$username, "Pw"=>$password); $dataString = http_build_query($dataArray); $url= 'https://domain.com/emby/Users/AuthenticateByName?api_key=123456789&'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $dataString); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $responseDecoded = json_decode($response,true); echo $responseDecoded["AccessToken"]; } The code above does always succeed but doesn't do what I want (that is authenticating the user in https://domain.com/web). Now I'm wondering if it is possible to accomplish what I just described. Thanks in advance! (I'm sorry if I didn't describe my problem very well, I didn't really know how to ) Greetings!
  17. itkserver

    Users and Chromecast

    G'day, I am fiddling about with some voice commands using Tasker and its menagerie of plugins on top of swagger and some python code, attempting to tell my various tvs to play the next episode of or shuffle 'x' series or 'y' movie. I have the core code and actions set. (it works near perfectly on my Roku with some outliers due to naming collisions). What I am struggling with is 2 things, my Chromecast and user authentication. I have tried both user auth methods listed in UserService, I get the 204 response, but no change appears to take place on any of my devices. My goal here, is to say "Play Paw Patrol as <My Daughter's Name> in living room" or "Play Iron Man as <My Name> in Basement" The other issue is trying to get Emby on my Chromecasts. I can obviously do it with a physical button press no issues, but I cannot find a way to do it programmatically nor with Tasker. AutoInput seems to have an issue with the Emby Android app, non of the Elements are clickable by that plugin. Has anyone found any solutions to one or both (crosses fingers) of these, no matter how hacky (you should see my python library, I don't think I have written anything that is not hacky) Thanks in advance.
  18. ArthurAttout

    Get TV show ID by name

    I'd like to write a script that calls my Emby server's API. This script should do some stuffs with the subtitles of a specific episode of a given TV show. How can I get the ID of a show based on its name ? Alternatively, is there a way I can browse the local Emby DB for debugging purposes ? Thanks !
  19. roblav96

    TVDB Updates Endpoint Forbidden

    The endpoint https://thetvdb.com/api/Updates.php which is called during the post-scan task TvdbPrescanTask returns a 403 Forbidden.
  20. TLDR How does the server tell a client to re-render library content? A few example use-cases are: client searches for library media, server dynamically adds media to library, client never receives library updates until they type the next word client views a library item, server dynamically downloads subtitles for library item, client never receives subtitle updates until they press back and view the library item again Things I've tried: POST /Library/Media/Updated only downloads metadata for parameters in the request body POST /Sessions/{Id}/Message/LibraryChanged command but the clients never receive a websocket message, the only time I've witnesses the client receive a LibraryChanged message is a full minute after a library scan is completed, would be nice to manually send this command immediately after the library scan Issues I've come across: Roku clients never receive updates of any kind from the server, most likely related to using roku's native remote control api which is restricted to same subnet ip addresses
  21. Poppabear

    More /Collections Endpoints

    I'm noticing that the Collections endpoints are fairly limited I would like to see: GET /Collections that obviously retrieves all collection resources. GET /Collections/{id} that retrieves a single collection resource. Those are the most important that are missing. Thanks in advance
  22. easez88

    Error Accessing App

    Hello, I'm putting this in general because I don't know where it belongs. I cannot access emby from the IOS app remotely. Other apps, such as apple and android TV connect with no problem. I can connect through web browsers with no problem as well. So even though I am using nginx. I'm pretty sure that I'm missing something in my configuration, but I am not sure what it is. I also cannot access the app when I go to https://app.emby.media and enter my external domain. in the console I get the error "Access-Control-Allow-Origin cannot contain more than one origin" I also see this error if I click on the API button in the dashboard. Does anyone have any idea how to correct this?
  23. Request: curl -X "POST" "http://localhost:8096/emby/System/Ping" Response: HTTP/1.1 200 OK Date: Sat, 15 Jun 2019 18:16:25 GMT Connection: close Content-Length: 11 Server: h2o-dev Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, X-Emby-Token, X-Emby-Authorization Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS Access-Control-Allow-Origin: * Content-Type: application/json; charset=utf-8 Emby Server The response header Content-Type incorrectly defines the body type, text/plain. No biggie, just thought I'd send it
  24. ginjaninja

    Help with using api from unity

    Can anyone help with this please? I am learning Unity and the emby api, and diving in well past the deep end.. I am getting a 400 bad response when trying to use "/emby/Users/AuthenticateByName" when i manually use the same headers and json data on the http://swagger.emby.media page, i get a successful response. from that i understand i need to set a header and post some json data i can get a successful response in Unity from simpler api methods like /System/Info which dont require posting json and setting headers. anyone out there got a unity app to work on the api? that could a post a unity example on using /emby/Users/AuthenticateByName sucessfully (or something similar with headers and json? using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class EmbyAPIComp : MonoBehaviour { [System.Serializable] public class MyClass { string Username = "MyUsername"; string Pw = "Mypassword"; } static MyClass myObject = new MyClass(); string json = JsonUtility.ToJson(myObject); IEnumerator AuthenticateCoroutine() { using (UnityWebRequest www = UnityWebRequest.Put("", json)) { www.method = UnityWebRequest.kHttpVerbPOST; www.SetRequestHeader("X-Emby-Authorization" , "Emby UserId='91d851f075f44ae59bc499bc4ebb54e6', Client='Android', Device='Samsung Galaxy SIII', DeviceId='NickskApp', Version=''"); www.SetRequestHeader("accept" , "application/json"); www.SetRequestHeader("Content-Type" , "application/json"); yield return www.SendWebRequest(); if(www.isNetworkError || www.isHttpError) { Debug.Log(www.error); } else { Debug.Log(www.responseCode); } } } thanks for your help
  25. matty87a

    Refresh TV Guide via API?

    Hi, Sorry if this has been covered but I can't find anything in the swagger UI or on my check through the forum. Is it possible to trigger the Refresh Guide task via API?
  • Create New...