API
DTH Plans API V5
Important : All parameters and it’s values are case-sensitive. token parameter is required for every request. This API only accept GET method.
Get List of Packs
Endpoint : https://api2.plansinfo.com/v5/dth/packs
Request Parameters–
- operator (required) – Pass operator code in this parameter.
- type (optional) – Pass pack type in this parameter. Valid values are COMBO, BROADCASTER and ADDON only.
Example – https://api2.plansinfo.com/v5/dth/packs?operator=TS&type=COMBO&token=123
Response Object –
- packs (array) -It holds an array to packs.
- id (Int) – Id of pack to fetch pack details.
- name (Varchar) – name of pack.
- type (Enum(‘COMBO’,’BROADCASTER’,’ADDON’))– Type of pack. It can only have COMBO, BROADCASTER or ADDON.
Get Pack Details
Endpoint – https://api2.plansinfo.com/v5/dth/pack
Request Parameter –
1.id (Int, required) – Id of pack.
Example – https://api2.plansinfo.com/v5/dth/pack?id=56&token=1234
Response Object –
- pack (object)- It holds all details of pack.
- languages (array) – Languages of pack, it can be an empty array.
- categories (array) – It’s an array of Category Object.
- name (varchar) – Name of pack.
- broadcaster (varchar) – Name of broadcaster ( Sony, Star etc), it can be null.
- prices (array) – Array of Price Object.
- pictureQuality (enum(‘HD’,’SD’))- This property represents if a channel or pack is HD or SD.
- active (bool) – If a pack is discontinued it will be false, otherwise true.
- Price Object – It has properties – amount (amount of pack), validity (validity of pack) , ncf (Network Capacity Fee); if ncf is true then networking capacity fee will be applicable on amount, otherwise network capacity fee is already included in amount, extraValidityDays (operator offers extra validity on long term plans, it will display the number of days of extra validity) .
- Channel Object – It has properties – name (name of channel), lcn (channel number on DTH), logo (logo of channel, can be null), price (price of channel , can be null)
- Category Object – It has properties – name (name of category) and popularity (popularity of category from 0 to 99), channels (an array of Channel Object)
Get Alacarte –
Endpoint – https://api2.plansinfo.com/v5/dth/alacarte
Request Parameter –
1.operator (char(2), required) – operator code of DTH operator.
Example – https://api2.plansinfo.com/v5/dth/alacarte?operator=TS&token=1234
Response Object –
- categories (array)- An array of categories.
- name (varchar)- Name of category.
- channels (array) – Array of Channel Object as mentioned in pack details endpoint.
Operator Codes
Operator | Code |
---|---|
Tata Sky | TS |
Dish TV | DT |
Airtel Digital TV | AD |
Videocon d2h | VD |
Sun Direct | SD |