# How to set up IPTV on GSE via the Xtream Codes API

> Add an Xtream Codes API account to GSE Smart IPTV, load live channels and VOD, and download EPG data.

GSE Smart IPTV is an IPTV app for Android and iOS. It plays live and non-live TV streams and supports most formats, including M3U with options. This guide adds IPTV channels with the Xtream Codes API. To use a remote playlist instead, read [how to set up IPTV on GSE with a remote playlist](https://iptvfiesta.sx/help-center/article/how-to-setup-iptv-on-gse-smart-iptv).

## What you need

- GSE Smart IPTV installed on your device.
- The M3U URL from your IPTV provider. The Xtream Codes API uses the server name, username, and password from that URL.

## Download GSE Smart IPTV

- Android: [download GSE Smart IPTV from APKPure](https://apkpure.com/gse-smart-iptv/com.gsetech.smartiptv) or install it from Google Play.
- iOS: [download GSE Smart IPTV from the App Store](https://itunes.apple.com/us/app/gse-smart-iptv/id1028734023?mt=8)

## Why use the Xtream Codes API

- EPG information is added easily. You do not need to add the EPG URL.
- EPG updates automatically.
- If your IPTV provider offers catch-up, the Xtream Codes API gives you this option, like a MAG portal system.

## Add IPTV channels to GSE with the Xtream Codes API

1. Open the GSE menu (three lines) and select **Xtream-Codes API**.

   ![GSE menu with Xtream-Codes API highlighted](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-1.jpg)

2. Tap the red + button in the bottom right corner.

   ![GSE Xtream-Codes API screen with the red + button](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-2.jpg)

3. Enter a name for the IPTV list, for example `MY IPTV`.

4. Enter the server name, **Username**, and **Password**. You can find all three in the M3U URL from your provider. Read [how to find the server address, username, and password](https://iptvfiesta.sx/help-center/article/how-to-find-server-address-in-m3u-url) if you are not sure where these values are.

   ![GSE Xtream-Codes API form with name, server, username, and password fields](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-3.jpg)

5. Tap **Add**.

6. Select the new **IPTV list** in the menu.

   ![GSE Xtream-Codes API screen with the new MY IPTV list](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-4.jpg)

7. Wait while GSE adds the channels. This can take a while depending on the countries or channel groups in the M3U file. You will see the LIVE channels and the VOD list.

   ![GSE account menu with the LIVE and VOD lists highlighted](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-5.jpg)

8. Tap **LIVE** to see the channel groups.

9. Select the channel you want to watch.

10. Tap **Play**.

    ![GSE channel list with the Play option for a channel](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-setup-IPTV-on-GSE-via-Xtream-Codes-API-6.jpg)

GSE is now ready to stream IPTV channels.

## Load EPG in GSE with the Xtream Codes API

1. Tap **INSTALL EPG DATA**.

   ![GSE account menu with INSTALL EPG DATA highlighted](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-add-EPG-on-GSE-via-Xtream-Codes-API-1.jpg)

2. Wait for the EPG data to download.

3. Tap **ELECTRONIC PROGRAM GUIDE** to see the EPG list.

   ![GSE Electronic Program Guide with channel names and program times](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-add-EPG-on-GSE-via-Xtream-Codes-API-2.jpg)
