XUI.ONE Admin API - Placeholder
Create admin api access code:
- Navigate: MANAGMENT->ACCESS CONTROL->ACCESS CODES
- Click: ADD CODE
- Change: Access Type = Admin API
- Click: NEXT
- Choose: Group = Admin
- Click: NEXT
- Click: ADD
Create admin api key:
- Click: Menu in upper right corner
- Choose: User profile
- Copy: API key, if field is empty click refresh icon to generate key.
- Click: Save
You can then access the API via:
http:
http://yoursite.com:8000/accesscode/?api_key=#APIKEY#https:
https://yoursite.com:9000/accesscode/?api_key=#APIKEY#For Example:
https://[domain]:[port]/[accesscode]/?api_key=[api_key]&actoion=[api_command]https://bestdomain.com:9000/rnVKrSLe/?api_key=1A2C5C80056A80F5AB6ECAD3937875DE&action=get_packagesAs a developer, use this as your API endpoint and set the
"action" parameter to one of the following API commands:GET INFO
mysql_queryuser_infoget_linesget_magsget_enigmasget_usersget_streamsget_channelsget_stationsget_moviesget_series_listget_episodesLOGS & EVENT API
activity_logslive_connectionscredit_logsclient_logsuser_logsstream_errorswatch_outputsystem_logslogin_logsrestream_logsmag_eventsLINE API
get_linecreate_lineedit_linedelete_linedisable_lineenable_lineunban_lineban_lineUSER API
get_usercreate_useredit_userdelete_userdisable_userenable_userMAG API
get_magcreate_magedit_magdelete_magdisable_magenable_magunban_magban_magconvert_magENIGMA API
get_enigmacreate_enigmaedit_enigmadelete_enigmadisable_enigmaenable_enigmaunban_enigmaban_enigmaconvert_enigmaBOUQUETE API
get_bouquetsget_bouquetcreate_bouquetedit_bouquetdelete_bouquetACCESS CODE API
get_access_codesget_access_codecreate_access_codeedit_access_codedelete_access_codeHMAC API
get_hmacsget_hmaccreate_hmacedit_hmacdelete_hmacEPG API
get_epgsget_epgcreate_epgedit_epgdelete_epgreload_epgGROUPS API
get_groupsget_groupcreate_groupedit_groupdelete_groupPACKAGES API
get_packagesget_packagecreate_packageedit_packagedelete_packageTRANSCODING PROFILE API
get_transcode_profilesget_transcode_profilecreate_transcode_profileedit_transcode_profiledelete_transcode_profileRTMP API
get_rtmp_ipsget_rtmp_ipcreate_rtmp_ipedit_rtmp_ipdelete_rtmp_ipCATEGORIES API
get_categoriesget_categorycreate_categoryedit_categorydelete_categorySUB RESELLER API
get_subresellersget_subresellercreate_subreselleredit_subresellerdelete_subresellerWATCH FOLDERS API
get_watch_foldersget_watch_foldercreate_watch_folderedit_watch_folderdelete_watch_folderreload_watch_folderBLOCKED ISP & IP API
get_blocked_ispsadd_blocked_ispdelete_blocked_ispget_blocked_uasadd_blocked_uadelete_blocked_uaget_blocked_ipsadd_blocked_ipdelete_blocked_ipflush_blocked_ipsSTREAMS API
get_streamcreate_streamedit_streamstart_streamstop_streamdelete_streamCHANNEL API
get_channelcreate_channeledit_channelstart_channelstop_channeldelete_channelSTATION API
get_stationcreate_stationedit_stationstart_stationstop_stationdelete_stationMOVIE API
get_moviecreate_movieedit_moviestart_moviestop_moviedelete_movieSERIES API
get_seriescreate_seriesedit_seriesdelete_seriesEPISONE API
get_episodecreate_episodedelete_episodeedit_episodestart_episodestop_episodeSERVERS API
get_serversget_serverinstall_serverdelete_serveredit_serverinstall_proxyedit_proxySETTINGS, STATS AND OTHER API
get_settingsedit_settingsget_server_statsget_fpm_statusget_rtmp_statsget_free_spaceget_pidsget_certificate_inforeload_nginxclear_tempclear_streamsupdate_blacklistget_directorykill_pidkill_connectionreload_cacheUpcoming API information will help identify what each function does, and what parameters can be submitted.
For now, if you want to poke around I suggest using the Admin Interface with Developer Tools enabled and log any traffic to post.php. The parameters sent there will be the same parameters you can send to the API function it relates to.
For example if you go to Streams and add a stream, you can log post.php and submit the same request to the create_stream function to replicate it.
To edit a stream, pass the id with it too.
Some of the functions are server specific, so send server_id with them, for example:
get_server_stats, get_fpm_status, get_rtmp_stats, get_free_space, get_pids, get_certificate_info, reload_nginx, clear_temp, clear_streams, update_blacklist, get_directoryLine Example - Editing line #4 to change password to helloworld and select bouquets 1 and 2:
action=edit_line&id=4&username=test&password=helloworld&bouquets_selected[]=1&bouquets_selected[]=2More info soon, post any questions below and I'll answer them for you. Included an extract from the API so you can kind of see what's going on.
Attachments
Download limits
Last edited:





