Introduction Last updated: 2022-07-21
This Documentaion will help you intergrate IPTV API in your any kind of web or mobile application.
You allways need to use the api key special-key
to pass authorization.
Secutiy Alert:
Don't use or add your api key directly in your android or any other app source code, hackers can capture it through using diffrent packet capture tools you need install your web server and put your api key there, connect your app with your web server then send calls with parameters to endpoint.
To use this documentation your need
special-api-key
that you can take from here.visit https://FindFromYourPanel.TLD
Endpoints
The API is accessed by making HTTPS requests to a specific version endpoint URL, in which GET, POST
methods dictate how your interact with the information available. Every endpoint is accessed only via the SSL-enabled HTTPS (port 443) protocol, Everything (methods, parameters, etc.) is fixed to a version number, and every call must contain one. The latest version is Version 3.
The stable base URL for all Version 3 HTTPS endpoints is: https://iptv-api.xtream-masters.com/v3/
Get API Status
How to get API status or subscribe plan details.
You need send call to endpoint with below mention parameters.
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&type=infoapi'
curl -X GET "https://iptv-api.xtream-masters.com/v3/?apikey=special-key&type=infoapi"
Credit Plan API Response:
OK
{
"allow_trial": "50",
"used_trial": "7",
"user_credit": "1088.73",
"api_username": "something",
"is_monthly": "0",
"monthly_max_lines": "0",
"api_status": "1",
"whatsapp_otp": "123456",
"whatsapp_bot": "92xxxxxxxxxx",
"next_renewal": "0",
"total_paid_lines": "123"
}
Monthly Plan API Response:
OK
{
"allow_trial": "50",
"used_trial": "7",
"user_credit": "1088.73",
"api_username": "something",
"is_monthly": "1",
"monthly_max_lines": "500",
"api_status": "1",
"whatsapp_otp": "123456",
"whatsapp_bot": "92xxxxxxxxxx",
"next_renewal": "2022-07-25",
"total_paid_lines": "123"
}
Get API Credits History
How to get API Credits History.
You need send call to endpoint with below mention parameters.
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&type=credit_logs'
curl -X GET "https://iptv-api.xtream-masters.com/v3/?apikey=special-key&type=credit_logs"
API Response:
OK
[
//.............
{
"log_id": "77270",
"api_username": "something",
"info": "IPTV Line Delete - random_username",
"date": "19-07-2022",
"credits_charge": "+5",
"credits_left": "53.37"
},
{
"log_id": "77267",
"api_username": "something",
"info": "New IPTV Line Purchase - random_username",
"date": "19-07-2022",
"credits_charge": "-5",
"credits_left": "48.37"
},
//.............
]
Note
Response can empty as well if API don't do any activity with some purchase.
Xtream User APIs
This section will example how to generate, edit, extend or delete xtream users by calling to api endpoint.
Playlist access links examples
Xtream user can use in many devices which is support streaming protocol, below is list of all devices name and available formats.
Select an ouput playlist script format:
See Player API Documentaion
Select an ouput playlist script format:
How to generate new xtream user.
You need send call to endpoint with below mention parameters.
Explain of parameters:
Info | Same username and password are prohibited. |
---|---|
conx |
this is multi-screen feature = max value is : 4 (CONX x Credits) |
type |
type is statics: add for generate new xtream user. |
plan
parameters explain, credits cost for asian or full package.
plan |
Type | Details | World Credits | Asian Credits |
---|---|---|---|---|
11 | Free | 24 hour test | 0 | 0 |
1 | Paid | 1 Month subscription | 1 | 1 |
2 | Paid | 3 Month subscription | 3 | 3 |
3 | Paid | 6 Month subscription | 5 | 5 |
4 | Paid | 12 Month subscription | 10 | 10 |
bid
Package parameters explain.
bid |
details |
---|---|
[5,11] | Full worldwide subscription, Channels + Movies + Series (No Adult) |
[4,7] | Full worldwide subscription, Channels + Movies + Series (With Adult) |
[1232,1234] | Mini Asian Package - Family, For Asian countries content only |
[1233,1235] | Mini Asian Package - Include Adult, For Asian countries content only |
Custom content managing parameters:
Info | value should be empty or 1 |
---|---|
addch |
for add channels in subscription set value: 1 Recommended |
addvods |
for add movies/series in subscription set value: 1 or leave empty for don't |
adults |
for add adult content in subscription set value: 1 or leave empty for don't |
Allowed contain
Username or password should be upto 6 and less then 24 characters
Characters allow in Username or password a-z . 0-9 _ -
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&user=random_username&pass=random_password&conx=1&bid=[5,11]&plan=11&addch=1&addvods=1&adults=¬ice=your+custom+notice&ch=&type=add'
curl -X GET "https://iptv-api.xtream-masters.com/v3/?apikey=special-key&user=random_username&pass=random_password&conx=1&bid=[5,11]&plan=11&addch=1&addvods=1&adults=¬ice=your+custom+notice&ch=&type=add"
API Response:
OK
{
"status":"success",
"msg":"Success: You have successfully generate iptv trial line."
}
NOK
{
"status":"error",
"msg":"Error: message response depends on data submission."
}
Edit xtream user
There you will know how to edit xtream user.
You need send call to endpoint with below mention parameters.
Explain of parameters:
Info | Same username and password are prohibited. |
---|---|
type |
type is statics: edit for edit existing xtream user. |
user |
set your existing username that you want edit. |
newuser |
set your new username that you want set instead of previous one. |
pass |
set your new password that you want set instead of previous one (can be same as well) |
notice |
set your notice that you want set instead of previous one (can be same as well) |
Allowed contain
Username or password should be upto 6 and less then 24 characters
Characters allow in Username or password a-z . 0-9 _ -
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&user=existing_username&newuser=new_random_username&pass=random_password¬ice=your+custom+notice&ch=&type=edit'
curl -X GET 'https://iptv-api.xtream-masters.com/v3/?apikey=special-key&user=existing_username&newuser=new_random_username&pass=random_password¬ice=your+custom+notice&ch=&type=edit'
API Response:
OK
{
"status":"success",
"msg":"Success: You\'ve successfully modified your line."
}
NOK
{
"status":"error",
"msg":"Error: message response depends on data submission."
}
Extend Xtream User
How to extend Xtream user.
You need send call to endpoint with below mention parameters.
Explain of parameters:
user |
the xtream user, username that want extend. |
---|---|
type |
type is statics: extend for extend existing xtream user. |
plan
parameters explain, credits cost for asian or full package.
plan |
Type | Details | Asian Credits | World Credits |
---|---|---|---|---|
1 | Paid | 1 Month subscription | 1 | 1 |
2 | Paid | 3 Month subscription | 3 | 3 |
3 | Paid | 6 Month subscription | 5 | 5 |
4 | Paid | 12 Month subscription | 10 | 10 |
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&user=existing_username&plan=4&type=extend'
curl -X GET 'https://iptv-api.xtream-masters.com/v3/?apikey=special-key&user=existing_username&plan=4&type=extend'
API Response:
OK
{
"status":"success",
"msg":"Success: You\'ve successfully extend your line."
}
NOK
{
"status":"error",
"msg":"Error: message response depends on data submission."
}
Delete Xtream User
How to delete existing xtream user.
You need send call to endpoint with below mention parameters.
Explain of parameters:
curl -X POST "https://iptv-api.xtream-masters.com/v3/"
-d 'apikey=special-key&user=existing_username&type=del'
curl -X GET 'https://iptv-api.xtream-masters.com/v3/?apikey=special-key&user=existing_username&type=del'
API Response:
OK
{
"status":"success",
"msg":"Success: Your subscription has been deleted / rest credits refunded."
}
NOK
{
"status":"error",
"msg":"Error: message response depends on data submission."
}