DTH V2 Plans API

Updated January 21, 2023

Introduction

The end of the life cycle for the v1 version of the API is set to the end of the year (2019 Dec) since the TRAI rules have changed the DTH industry plan types. The v1 version will keep on working, however, the support for the v1 version is ending soon.

The current version v2 will give the channel list as prescribed by TRAI in the pricing format. Also, the developer can build a list of channels based on the user's picks. The v2 version contains breaking changes from the v1 version and should be taken care of.

Endpoint

https://api.datayuge.com/api/v2/dthplans/{provider}

The endpoint supports both https and http request

Supported providers

  1. AirtelDigitalTV
  2. DishTV
  3. SunDirect
  4. TataSky
  5. VideoconD2H

Category types

  1. plan - This list of the basic recharge packs and their rate
  2. add-on - These are the add-ons that can be purchased on top of the base plans
  3. a-la-carte - This shows the channel-wise pricing for the user to build their channel pack

Sample request

https://api.datayuge.com/api/v2/dthplans/AirtelDigitalTV?apikey=YOURAPIKEY

Response model

Key

Type

Description

ident

string

MD5 hash of the plan id

provider

string

The provider name. Ex. AirtelDigitalTV

plan_name

string

This shows the name of the recharge pack. In case of a-la-carte this denotes the channel name.

cost

float

This denotes the pricing for the packs in case of plan or add-on. For a-la-carte, this denotes the price for the channel

category_type

string

The category type as mentioned above.

validity

string

The validity of the plan in days.

validity_human

string

This shows a human readable validity period for displaying based on validity

channels_list_simple

string

The list of channels supported. (Comma seperated values if more than 1 channel is available)

channels_list_detail

array

Detailed listing of the channels grouped by the channel categories for better display.

Filters

The API response can be filtered by passing the supported filters

Parameter

Type

Description

Usage

category_type

string

Filter based on the list of supported categories. available values are plan, add-on, a-la-carte

filter[category_type]=plan

channels_list_simple

string

Filter by any specific channel name

filter[channels_list_simple]=DD%20News

validity

string

Filter by validity (in days). The widely supported validity in days are 30, 90, 180, 365

filter[validity]=30

Sorting

The response can sorted by passing the soring filter.

Parameter

Type

Description

Usage

plan_name

string

sort the results by plan name

sort=plan_name

Examples

  1. https://api.datayuge.com/api/v2/dthplans/AirtelDigitalTV?apikey=APIKEY&filter[category_type]=plan&filter[channels_list_simple]=DD%20News&filter[validity]=30&sort=plan_name

Support

Please write to [email protected] for technical support or queries.

Questions? Schedule a call

Schedule a call

Leave your number and a good time, and we will call you.

Start building for free

Create a free datayuge account, get your API key and make your first request.

Create free account