xtream codes api: how to use it

Often when trying to set up an IPTV application, you see Xtream Codes API method for inputting IPTV login credentials. It's an easy method of entering login details without the need of typing a long streaming line.

 

xtream codes api

 

What is Xtream Codes API

The term Xtream Codes goes back to a company brand with the same name who are known to be the godfather of all IPTV CMS (Content management System) services. Among many things they did for the IPTV market (or even the world of IPTV), they also created a function by which a long url address of a streaming line can be entered in simple short parts.

 

Why entering streaming lines in Xtream Codes API format is more preferred

Most IPTV users these days use devices which are controlled using a remote controller. Entering details with that would be a hard thing to do if you are to add streaming lines. However, Xtream Codes API helps you fulfill that task by entering the fundamental parts of the line. Unchanged, fixed elements are embedded inside the function.

 

Which devices can and can not use Xtream Codes API format

This is designed for IPTV streaming lines, like M3U url. So any device , like a MAG box, or applications like Smart STB or STBEMU, which are using stalker portal are out of this discussion.

 

How to use Xtream Codes API in an IPTV Application

All you need, is a streaming line from the IPTV provider and then break it into Host/Server address, Username and Password. Let's give an example.

 

If you are not our subscriber yet, you can order an IPTV Free trial from the store and then try out these instructions.

 

iptv smarters pro xtream codes login part

The best example would be IPTV Smarters Pro.

 

Let's say the M3U streaming line you have is the following (below is an imaginary M3U address just to make an example)

http://somedomain.com:1234/get.php?username=user1&password=pass2&type=m3u&output=ts

We should now break it into Xtream Codes API format

 

Server/Host/URL : Port = http://somedomain.com:1234

Username = user1

Password = pass2

 

The above example clarifies the point instantly, showing you what XC API format is. The values are already available in the M3U address.

Server, Host or URL: are the same thing wherever you see these terms. They refer to the server address which can either be an IP address or a domain address. In the above example thats http://somedomain.com . Port number is also a value after : .

Note: In some M3U addresses, you may not see the port number while entering Xtream Codes API details and that means the port is 80 which is the internet default browsing port. In that case, you dont need to write the port. However, if your app requires the port value to be inputted, then you know it is 80.

Username: is the value in front of username= in streaming line address, and whatever is after = you need to put it in username field of your application.

Password:  is the value in front of password= in streaming line address, and whatever is after = you need to put it in password field of your application.

 

Once all the details are entered, you simply confirm the details  by clicking Login, Add User or whatever confirmation button is there. If details are correct, you will be logged in and playlist will be loaded in front of you.

 

Common errors in Xtream Codes API

If your input is incorrect, whether it is the server address, username or password, you might face error messages. Authorization failed and No response from server are some of the common error messages you might see.

Solution: Make sure the details you have received your IPTV provider are correct. Also make sure the account is not expired. Then recheck your input in the app.

 

Things to pay attention to while entering XC API details

There are some letters, although different, they look the same in typing. a good example would be capital i and lowercase L. If we type them right next to each other, they look almost the same. Check if similar letters are included in the username and/or password.

  • xtream codes api, xc api, xtream codes login
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

iptv free trial: evaluate before purchase

Our IPTV free trial is a short period service which allows clients evaluate the streaming service...