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
AirtelDigitalTVDishTVSunDirectTataSkyVideoconD2H
Category types
plan- This list of the basic recharge packs and their rateadd-on- These are the add-ons that can be purchased on top of the base plansa-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. |
plan_name | string | This shows the name of the recharge pack. In case of |
cost | float | This denotes the pricing for the packs in case of |
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 |
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 |
|
channels_list_simple | string | Filter by any specific channel name |
|
validity | string | Filter by validity (in days). The widely supported validity in days are |
|
Sorting
The response can sorted by passing the soring filter.
Parameter | Type | Description | Usage |
|---|---|---|---|
plan_name | string | sort the results by plan name |
|
Examples
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.