Xtream Codes API - zaclimon/xipl GitHub Wiki
Base Endpoint
This endpoint is common to every Xtream Codes based provider and is used to download a M3U playlist to the user. It's structure will in most cases have this form/syntax:
http://url:port/get.php?username=xxxx&password=xxxx&type=m3u_plus&output=ts
url: The URL of the service providerport: The port used by the service providerusername: The username of an account from this providerpassword: The password of an account from this providertype: The type of playist. By default,m3uandm3u_plusare available for options butm3u_plusis the option given by default.m3u_plusis a special type of playlist where the EPG ID and logo URL for a givenAvContentoutput: The output type of the stream.ts,hlsandrtmpare available. By default it will betswhich represents the MPEG-TS container. The two other formats arehlsfor HTTP Live Streaming (HLS) andrtmpfor Real Time Messaging Protocol (RTMP)
Note: The playlist used by this URL normally represents all the media available from a given provider. xipl filters Live TV channels if importing channels using a ProviderEpgService.
Android API
As a provided service by Xtream Codes, providers are generally given a custom made Android application in which a special API is used to retrieve different media types. All responses from the API returns a M3U based playlist available for processing.
Endpoint: http://mikkm.xyz/android/androidApi.php?url=http://abcd.xyz:port/&mode=xxxx&username=xxxx&password=xxxx
Parameters:
url: The URL of the service providerport: The port used by the service providermode: The given media type wanted by the client application. The choices are betweenlive,series,vodandtimeshiftusername: The username of an account from this providerpassword: The password of an account from this provider
Media modes
These are the different media modes supported by the Xtream Codes API when obtaining content through the Android API. Do note that the classification of the media is solely the responsibility of the provider and that some content might not be categorized correctly as such.
live: Returns a list of live TV channels. The content returned is using MPEG-TS as a container format.vod: Returns a list of Video-On-Demand (VOD) content. (This can include movies, sport events, TV shows, etc.) The format is likely to vary depending on the provider itself.timeshift: Returns a list of prerecorded shows for a given TV channel. The format supported is MPEG-TS.series: Returns a list of TV series that might be considered like Video-on-Demand (VOD). The format is dependent on the provider itself.
Timeshift EPG adjustment
A special parameter epg_shift is available if a user's timezone doesn't quite fit with the provider's when obtaining the information regarding TV Catchup.
Endpoint: http://mikkm.xyz/android/androidApi.php?url=http://abcd.xyz:port/&mode=timeshift?epg_shift=x&username=xxxx&password=xxxx
Where epg_shift is an integer value in hours between the provider and the user timezone. (Ideally between -12 and 12)