{"id":657,"date":"2021-09-24T18:55:22","date_gmt":"2021-09-24T13:25:22","guid":{"rendered":"https:\/\/www.plansinfo.com\/blog\/?p=657"},"modified":"2021-11-02T18:16:15","modified_gmt":"2021-11-02T12:46:15","slug":"dth-plans-api-v5","status":"publish","type":"post","link":"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/","title":{"rendered":"DTH Plans API V5"},"content":{"rendered":"\n<p class=\"has-vivid-red-color has-white-background-color has-text-color has-background\"><strong>Important<\/strong> : All parameters and it\u2019s values are case-sensitive.&nbsp;<strong>token<\/strong>&nbsp;parameter is required for every request.&nbsp;This API only accept GET method.<\/p>\n\n\n\n<h3>Get List of Packs<\/h3>\n\n\n\n<p><strong>Endpoint<\/strong> : <span class=\"has-inline-color has-vivid-purple-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/packs<\/span><\/p>\n\n\n\n<p><strong>Request Parameters<\/strong>&#8211;<\/p>\n\n\n\n<ol><li><strong>operator <\/strong>(<span class=\"has-inline-color has-vivid-red-color\">required) <\/span>&#8211; Pass operator code in this parameter.<\/li><li><strong>type <\/strong>(optional) &#8211; Pass pack type in this parameter. Valid values are <strong>COMBO<\/strong>, <strong>BROADCASTER <\/strong>and <strong>ADDON<\/strong> only. <\/li><\/ol>\n\n\n\n<p><strong>Example<\/strong> &#8211; <span class=\"has-inline-color has-vivid-green-cyan-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/packs?operator=TS&amp;type=COMBO&amp;token=123<\/span><\/p>\n\n\n\n<h5>Response Object &#8211;<\/h5>\n\n\n\n<p><\/p>\n\n\n\n<ol><li><strong>packs<\/strong> (array) -It holds an array to packs.<\/li><li><strong>id<\/strong> (<em>Int)<\/em> &#8211; Id of pack to fetch pack details.<\/li><li><strong>name<\/strong> <em>(Varchar) <\/em>&#8211; name of pack.<\/li><li><strong>type<\/strong> <em>(Enum(&#8216;COMBO&#8217;,&#8217;BROADCASTER&#8217;,&#8217;ADDON&#8217;))<\/em>&#8211; Type of pack. It can only have <strong>COMBO<\/strong>, <strong>BROADCASTER<\/strong> or <strong>ADDON<\/strong>.<\/li><\/ol>\n\n\n\n<h3>Get Pack Details<\/h3>\n\n\n\n<p><strong>Endpoint<\/strong> &#8211; <span class=\"has-inline-color has-vivid-purple-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/pack<\/span><\/p>\n\n\n\n<h5>Request Parameter &#8211;<\/h5>\n\n\n\n<p>1.<strong>id<\/strong> (Int, <span class=\"has-inline-color has-vivid-red-color\">required<\/span>) &#8211; Id of pack.<\/p>\n\n\n\n<p>Example &#8211; <span class=\"has-inline-color has-vivid-green-cyan-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/pack?id=56&amp;token=1234<\/span><\/p>\n\n\n\n<h5>Response Object &#8211; <\/h5>\n\n\n\n<ol><li><strong>pack<\/strong> (object)- It holds all details of pack.<\/li><li><strong>languages<\/strong> (array) &#8211; Languages of pack, it can be an empty array.<\/li><li><strong>categories<\/strong> (array) &#8211; It&#8217;s an array of <span class=\"has-inline-color has-pale-pink-color\">Category Object<\/span>. <\/li><li><strong>name<\/strong> (varchar) &#8211; Name of pack.<\/li><li><strong>broadcaster<\/strong> (varchar) &#8211; Name of broadcaster ( Sony, Star etc), it can be null.<\/li><li><strong>prices<\/strong> (array) &#8211; Array of <span class=\"has-inline-color has-pale-pink-color\">Price Object<\/span>.<\/li><li><strong>pictureQuality<\/strong> (<em>enum(&#8216;HD&#8217;,&#8217;SD&#8217;)<\/em>)-  This property represents if a channel or pack is HD or SD.<\/li><li><strong>active<\/strong> (bool) &#8211; If a pack is discontinued it will be false, otherwise true.<\/li><li><strong><span class=\"has-inline-color has-pale-pink-color\">Price Object<\/span> <\/strong> &#8211; It has properties &#8211; <strong>amount<\/strong> (amount of pack), <strong>validity<\/strong> (validity of pack) , <strong>ncf<\/strong> (<strong>N<\/strong>etwork <strong>C<\/strong>apacity <strong>F<\/strong>ee); if ncf is <strong>true<\/strong> then networking capacity fee will be applicable on amount, otherwise network capacity fee is already included in amount, <strong>extraValidityDays<\/strong> (operator offers extra validity on long term plans, it will display the number of days of extra validity) .<\/li><li><span class=\"has-inline-color has-pale-pink-color\"><strong>Channel Object<\/strong><\/span> &#8211; It has properties &#8211; <strong>name<\/strong> (name of channel), <strong>lcn<\/strong> (channel number on DTH),<strong> logo<\/strong> (logo of channel, can be null), <strong>price<\/strong> (price of channel , can be null)<\/li><li><span class=\"has-inline-color has-pale-pink-color\"><strong>Category Object<\/strong><\/span> &#8211; It has properties &#8211; <strong>name<\/strong> (name of category) and <strong>popularity<\/strong> (popularity of category from 0 to 99), <strong>channels<\/strong> (an array of <span class=\"has-inline-color has-pale-pink-color\">Channel Object<\/span>)<\/li><\/ol>\n\n\n\n<h3>Get Alacarte &#8211;<\/h3>\n\n\n\n<p><strong>Endpoint<\/strong> &#8211; <span class=\"has-inline-color has-vivid-purple-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/alacarte<\/span><\/p>\n\n\n\n<h5>Request Parameter &#8211;<\/h5>\n\n\n\n<p>1.<strong>operator<\/strong> (<em>char(2)<\/em>, <span class=\"has-inline-color has-vivid-red-color\">required<\/span>) &#8211; operator code of DTH operator.<\/p>\n\n\n\n<p>Example &#8211; <span class=\"has-inline-color has-vivid-green-cyan-color\">https:\/\/api2.plansinfo.com\/v5\/dth\/alacarte?operator=TS&amp;token=1234<\/span><\/p>\n\n\n\n<p><strong>Response Object &#8211;<\/strong><\/p>\n\n\n\n<ol><li><strong>categories<\/strong> (array)- An array of categories.<\/li><li><strong>name<\/strong> (varchar)- Name of category.<\/li><li><strong>channels<\/strong> (array) &#8211; Array of <span class=\"has-inline-color has-pale-pink-color\">Channel Object<\/span> as mentioned in pack details endpoint.<\/li><\/ol>\n\n\n\n<h4>Operator Codes<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Operator<\/th><th>Code<\/th><\/tr><tr><td>Tata Sky<\/td><td>TS<\/td><\/tr><tr><td>Dish TV<\/td><td>DT<\/td><\/tr><tr><td>Airtel Digital TV<\/td><td>AD<\/td><\/tr><tr><td>Videocon d2h<\/td><td>VD<\/td><\/tr><tr><td>Sun Direct<\/td><td>SD<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important : All parameters and it\u2019s values are case-sensitive.&nbsp;token&nbsp;parameter is required for every request.&nbsp;This API only accept GET method. Get List of Packs Endpoint : https:\/\/api2.plansinfo.com\/v5\/dth\/packs Request Parameters&#8211; operator (required) &#8211; Pass operator code in this parameter.type (optional) &#8211; Pass pack type in this parameter. Valid values are COMBO, BROADCASTER and ADDON only. Example &#8211; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[11],"tags":[29,31,30],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DTH Plans API V5 - Plansinfo blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DTH Plans API V5 - Plansinfo blog\" \/>\n<meta property=\"og:description\" content=\"Important : All parameters and it\u2019s values are case-sensitive.&nbsp;token&nbsp;parameter is required for every request.&nbsp;This API only accept GET method. Get List of Packs Endpoint : https:\/\/api2.plansinfo.com\/v5\/dth\/packs Request Parameters&#8211; operator (required) &#8211; Pass operator code in this parameter.type (optional) &#8211; Pass pack type in this parameter. Valid values are COMBO, BROADCASTER and ADDON only. Example &#8211; &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/\" \/>\n<meta property=\"og:site_name\" content=\"Plansinfo blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/plansinfo\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-24T13:25:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-02T12:46:15+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@plansinfo\" \/>\n<meta name=\"twitter:site\" content=\"@plansinfo\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#website\",\"url\":\"https:\/\/www.plansinfo.com\/blog\/\",\"name\":\"Plansinfo blog\",\"description\":\"plansinfo.com blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.plansinfo.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/#webpage\",\"url\":\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/\",\"name\":\"DTH Plans API V5 - Plansinfo blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#website\"},\"datePublished\":\"2021-09-24T13:25:22+00:00\",\"dateModified\":\"2021-11-02T12:46:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#\/schema\/person\/77523c6fc7209f1cc50e855ff545be58\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/dth-plans-api-v5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.plansinfo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DTH Plans API V5\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#\/schema\/person\/77523c6fc7209f1cc50e855ff545be58\",\"name\":\"Plansinfo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e539d41b97379c6414eb93d0b8290f8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e539d41b97379c6414eb93d0b8290f8a?s=96&d=mm&r=g\",\"caption\":\"Plansinfo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3JiDf-aB","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/657"}],"collection":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":9,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":685,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions\/685"}],"wp:attachment":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}