Jump to content

Search the Community

Showing results for tags 'api'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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
    • General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 60 results

  1. 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!
  2. kmsonic023

    ANSWERED 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?
  3. 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
  4. 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.
  5. 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!
  6. 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
  7. Доброго времени суток знатоки! Подскажите пожалуйста, через какую команду (набор команд) API можно закачать в Emby Server данные о видео (Размер, длительность, качество и т.д.)? При первом запуске фильма Emby получает данные от файла и хранит их в блоке INFO, можно ли закачать эти данные один раз но для всех фильмов сразу? Спасибо за помощь! @@chef
  8. 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!
  9. 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.
  10. ArthurAttout

    ANSWERED 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 !
  11. The endpoint https://thetvdb.com/api/Updates.php which is called during the post-scan task TvdbPrescanTask returns a 403 Forbidden.
  12. 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
  13. 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
  14. easez88

    ANSWERED 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?
  15. 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
  16. 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("http://192.168.0.10:8096/emby/Users/AuthenticateByName", json)) { www.method = UnityWebRequest.kHttpVerbPOST; www.SetRequestHeader("X-Emby-Authorization" , "Emby UserId='91d851f075f44ae59bc499bc4ebb54e6', Client='Android', Device='Samsung Galaxy SIII', DeviceId='NickskApp', Version='1.0.0.0'"); 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
  17. 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?
  18. soloam

    No Access to The Emby API -Error

    Hello, I tried to access the emby API by the API button on the Admin Pannel, I I'm redirected to http://swagger.emby.media but I get a error Failed to load API definition. Errors Hide Fetch errorNot Found https://xxxxx.xxxxxxxxxx.com/emby/openapi What I'm missing? Thank You
  19. Checked the WebSocket wiki page. It shows to connect to a WebSocket you will require an API key and device ID I'm trying to get the device ID as soon as any user logs in to the server. Till now I got no response after WebSocket connection. here's my python code websocket.enableTrace(True) host = "xxx.xx.xx.xx" port = 8096 api_key = "xxxxxx" device_id = "xxxx" ws = websocket.create_connection("ws://{}:{}/embywebsocket?api_key={}&deviceId={}".format(host, port, api_key, device_id)) result = ws.recv() print('Result: {}'.format(result)) result = ws.recv() print('Result: {}'.format(result)) # Trying something from community... ws.send(json.dumps([json.dumps({'msg': 'connect', 'version': '1', 'support': ['1', 'pre2', 'pre1']})])) result = ws.recv() print('Result: {}'.format(result)) Result: --- request header --- GET /embywebsocket?api_key=xxxxxxxx&deviceId=a7650139abe6b220 HTTP/1.1 Upgrade: websocket Connection: Upgrade Host: xxx.xx.xx.xx:8096 Origin: http://xxx.xx.xx.xx:8096 Sec-WebSocket-Key: mHuOCG3yyL41uB7gk7fK8g== Sec-WebSocket-Version: 13 ----------------------- --- response header --- HTTP/1.1 101 Switching Protocols Connection: Upgrade Upgrade: websocket Sec-WebSocket-Accept: Ta03Qfon0bEHLCQKG+0BtGNZXjQ= ----------------------- send: b'\x8a\x80\x93\tf\xe1' send: b'\x8a\x80\x13\xf8qB' send: b'\x8a\x80\xa3\xf3\xa1b' send: b'\x8a\x80\xa9\x87\xad\x9e' send: b'\x8a\x80@\x19\xa7\xa7' These send messages came after some time of no response. These are not proper Hex codes. IDK what they are. Requesting EMBY gurus to help me on this. I think I don't even know much about WebSockets
  20. Hi Admin I have created the user through api /Users/New it worked fine but when we login the created user it will auto login . My question is how the set password for new user through API Thanks in Advance
  21. when I updated the user on my local using api http://localhost:8096/emby/Users/{userid} Then it will return "Object reference not set to an instance of an object." I don't know what happen here. Please Help Thanks
  22. As seen in this post: https://www.themoviedb.org/talk/5119221d760ee36c642af4ad , there's a new update to the API engine where now they can tell apart PT-PT from PT-BR (usually was only PT) I just tested that it works perfectly in new API, as seen below. Movie: Die Hard 2 PT (only one until yesterday): https://api.themoviedb.org/3/movie/1573?api_key=##YOUR_API_HERE##&language=pt PT-PT (now official PT for Portugal) : https://api.themoviedb.org/3/movie/1573?api_key=##YOUR_API_HERE##&language=pt-PT {"adult":false,"backdrop_path":"/kywkOlRpYtfVlar41R1s8lO46vD.jpg","belongs_to_collection":{"id":1570,"name":"Duro de Matar - Coletânea","poster_path": "/mbJHXe0fooS9ukOZsZ4PmDQnjcw.jpg","backdrop_path":"/5kHVblr87FUScuab1PVSsK692IL.jpg"},"budget":70000000,"genres":[{"id":28,"name":"Ação"},{"id":53, "name":"Thriller"}],"homepage":"","id":1573,"imdb_id":"tt0099423","original_language":"en","original_title":"Die Hard 2","overview":"Terroristas assumem o controle do aeroporto de Washington, visando libertar um preso político (Franco Nero) que está sendo extraditado, e ameaçam destruir várias aeronaves se as exigências deles não forem cumpridas. Mas a esposa (Bonnie Bedelia) de John McClane (Bruce Willis) está em um dos aviões, assim ele resolve enfrentar a quadrilha sozinho.","popularity":2.824351,"poster_path":"/2vHKly0sePRowvOGZbQL5PuhwHn.jpg","production_companies":[{"name": "Twentieth Century Fox Film Corporation","id":306},{"name":"Gordon Company","id":1073},{"name":"Silver Pictures","id":1885}],"production_countries": [{"iso_3166_1":"US","name":"United States of America"}],"release_date":"1990-07-02","revenue":240031094,"runtime":124,"spoken_languages":[{"iso_639_1": "en","name":"English"},{"iso_639_1":"es","name":"Español"}],"status":"Released","tagline":"John McClane está de volta na hora e no lugar errados.", "title":"Assalto ao Aeroporto","video":false,"vote_average":6.4,"vote_count":1045} PT-BR (item with Brazilian info): https://api.themoviedb.org/3/movie/1573?api_key=##YOUR_API_HERE##&language=pt-BR {"adult":false,"backdrop_path":"/kywkOlRpYtfVlar41R1s8lO46vD.jpg","belongs_to_collection":{"id":1570,"name":"Duro de Matar (Coleção)","poster_path": "/mbJHXe0fooS9ukOZsZ4PmDQnjcw.jpg","backdrop_path":"/5kHVblr87FUScuab1PVSsK692IL.jpg"},"budget":70000000,"genres":[{"id":28,"name":"Ação"},{"id":53, "name":"Thriller"}],"homepage":"","id":1573,"imdb_id":"tt0099423","original_language":"en","original_title":"Die Hard 2","overview":"Terroristas assumem o controle do aeroporto de Washington, visando libertar um preso político (Franco Nero) que está sendo extraditado, e ameaçam destruir várias aeronaves se as exigências deles não forem cumpridas. Mas a esposa (Bonnie Bedelia) de John McClane (Bruce Willis), um detetive de Nova York, se encontra em um dos aviões, assim o marido resolve enfrentar a quadrilha.","popularity":2.824351,"poster_path":"/2vHKly0sePRowvOGZbQL5PuhwHn.jpg", "production_companies":[{"name":"Twentieth Century Fox Film Corporation","id":306},{"name":"Gordon Company","id":1073},{"name":"Silver Pictures","id": 1885}],"production_countries":[{"iso_3166_1":"US","name":"United States of America"}],"release_date":"1990-07-02","revenue":240031094,"runtime":0, "spoken_languages":[{"iso_639_1":"en","name":"English"},{"iso_639_1":"es","name":"Español"}],"status":"Released","tagline":"","title":"Duro de Matar 2", "video":false,"vote_average":6.4,"vote_count":1045} As they created the PT-BR database from scratch, there will be movies/series missing... but users are adding they in a daily basis, and with the correct info! PLEASE make Emby query correctly pt-BR from TMDB after this update. I`m tired of getting movie names from Portugal. ps: I tried to color the title difference inside the boxes above, but it hasn`t worked. So please note the TITLE difference between them.
  23. can someone help me please with this issue
  24. Hi, i try to change the RemoteClientBitrateLimit via the API. I like to use /System/Configuration/{Key}, but what is the key name for RemoteClientBitrateLimit? If I try http://172.16.128.253:8096/emby/System/Configuration/RemoteClientBitrateLimit?api_key=$apikey i get: Configuration with key RemoteClientBitrateLimit not found.
  25. It would be nice to have a way to programmatically manipulate Emby, e. g. Add, modify libraries Add, modify collections Add, modify metadata This could be achieved using a JSON/REST API for example.
×
×
  • Create New...