{"id":583,"date":"2021-05-24T16:09:56","date_gmt":"2021-05-24T10:39:56","guid":{"rendered":"https:\/\/www.plansinfo.com\/blog\/?p=583"},"modified":"2025-05-18T19:13:31","modified_gmt":"2025-05-18T13:43:31","slug":"ott-api-v6-draft","status":"publish","type":"post","link":"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/","title":{"rendered":"OTT API V6"},"content":{"rendered":"\n<p class=\"has-white-color has-luminous-vivid-amber-background-color has-text-color has-background has-medium-font-size\">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<h2>Get Content List &#8211; <\/h2>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\"><strong>End Point <\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/content\/list<\/p>\n\n\n\n<h4>Request Parameters &#8211;<\/h4>\n\n\n\n<ol id=\"block-00585d24-bda6-402e-a0a8-eb21f9c76b2d\"><li><strong>addedAfter<\/strong> (optional)- It will list contents which are added in database after this date-time. <strong>Supported Format<\/strong> &#8211; 2017-07-19T18:30:00.000Z<\/li><li><strong>source <\/strong>(optional)- It filter list with given OTT.<\/li><li><strong>releaseYear<\/strong> (optional)- It will filter list with given release year.<\/li><li><strong>contentType<\/strong> (optional)- It will filter MOVIE or SHOW.<\/li><li><strong>term<\/strong> (optional) &#8211; It will search for a show or movie.<\/li><\/ol>\n\n\n\n<h4>Response Object &#8211; <\/h4>\n\n\n\n<ol><li><strong>id<\/strong> &#8211; A unique identifier for content.<\/li><li><strong>title<\/strong> &#8211; title of content.<\/li><li><strong>contentType <\/strong>&#8211; Content type MOVIE or SHOW.<\/li><\/ol>\n\n\n\n<h2>Get content Details &#8211; <\/h2>\n\n\n\n<p class=\"has-vivid-purple-color has-text-color\"><strong>End Point <\/strong>&#8211;<span style=\"text-decoration: underline;\"> https:\/\/api2.plansinfo.com\/v6\/ott\/content\/details<\/span><\/p>\n\n\n\n<h4>Request Parameters &#8211; <\/h4>\n\n\n\n<ol><li><strong>id<\/strong> (required)- Id of content.<\/li><\/ol>\n\n\n\n<h4>Response Object &#8211;<\/h4>\n\n\n\n<ol><li><strong>title<\/strong> (VARCHAR)- Title of content.<\/li><li><strong>id<\/strong> (INT) &#8211; Id of content.<\/li><li><strong>releaseYear<\/strong> (SMALLINT)- Release Year of content.<\/li><li><strong>releaseDate<\/strong> (DATETIME) &#8211; Release Date of content.<\/li><li><strong>duration<\/strong> (SMALLINT)- Duration of movie in seconds. For shows it will be null.<\/li><li><strong>contentType<\/strong> (VARCHAR)- Type of content (MOVIE\/SHOW) .<\/li><li><strong>originalLanguage<\/strong><sup> <\/sup><span class=\"has-inline-color has-vivid-red-color\"><sup>New<\/sup><\/span> (VARCHAR) &#8211; Original Languages of content.<\/li><li><strong>languages<\/strong> (array) &#8211; All languages in which content is available.<\/li><li><strong>seasons <\/strong><sup><span class=\"has-inline-color has-vivid-red-color\">New<\/span><\/sup> (array) &#8211;  <strong>name<\/strong>, <strong>number<\/strong> and <strong>releaseDate<\/strong> of season.<\/li><li><strong>genres<\/strong> (array) &#8211; All genres of content.<\/li><li><strong>description<\/strong> (TEXT) &#8211; Description of content.<\/li><li><strong>poster<\/strong> (URL) &#8211; A poster of content of size 400X578.<\/li><li><strong>images<\/strong> (array) &#8211; All images available for content.<\/li><li><strong>active<\/strong> (bool) &#8211; Some times invalid movies\/shows are added in database. If this parameter is false then it means content should be removed\/replaced.<\/li><li><strong>cast <\/strong>(array) &#8211; An array of actors\/actress.<\/li><li><strong>imdb<\/strong> (object) &#8211;<strong> titleId<\/strong>, <strong>rating<\/strong>, <strong>votes<\/strong> will be available here.<\/li><li><strong>youtube<\/strong> (object) &#8211; <strong>trailerLink<\/strong> will be available here.<\/li><li><strong>addedAt<\/strong> (DATETIME) &#8211; Date time when content was added in our database.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<h3>Songs API-<\/h3>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>End Point <\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/songs<\/span><\/p>\n\n\n\n<p><strong>Request Parameters<\/strong>&#8211;<\/p>\n\n\n\n<ol><li><strong>contentId<\/strong> (Integer) &#8211;  Id of the movie.<\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h5>Response Object &#8211; <\/h5>\n\n\n\n<ol><li><strong>songs <\/strong>[array]- List of songs.<\/li><li><strong>name<\/strong> (string) &#8211; Name of song.<\/li><li><strong>duration<\/strong> (int) &#8211; Duration of song in seconds.<\/li><li><strong>link<\/strong> (URL) &#8211; Spotify link of song.<\/li><\/ol>\n\n\n\n<h2>Crew API<\/h2>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>End Point <\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/crew<\/span><\/p>\n<\/div><\/div>\n\n\n\n<p><strong>Example<\/strong>&#8211;  <span class=\"has-inline-color has-vivid-green-cyan-color\">https:\/\/api2.plansinfo.com\/v6\/ott\/crew?id=6629&amp;token=jjhhh<\/span><\/p>\n\n\n\n<p><strong>Request Parameters<\/strong>&#8211;<\/p>\n\n\n\n<ol><li><strong>id<\/strong> (integer) &#8211; id of crew. <\/li><\/ol>\n\n\n\n<h3>Response Object &#8211; <\/h3>\n\n\n\n<ol><li><strong>name <\/strong>(varchar) &#8211; name of person.<\/li><li><strong>realName<\/strong> (varchar) &#8211; Original name of person.<\/li><li><strong>gender<\/strong> (varchar) &#8211; gender of person.<\/li><li><strong>primaryDepartment<\/strong> (varchar) &#8211; Primary profession of person.<\/li><li><strong>height<\/strong> (int)- height in centimeter.<\/li><li><strong>weight<\/strong> (int) &#8211; weight in kilogram.<\/li><li><strong>zodiacSign<\/strong> (varchar) &#8211; zodiac sign of person.<\/li><li><strong>netWorth<\/strong> (varchar) &#8211; net worth of person.<\/li><li><strong>religion<\/strong> (varchar) &#8211; religion of person.<\/li><li><strong>nationality <\/strong>(varchar) &#8211; nationality of person.<\/li><li><strong>birthDate<\/strong> (DATETIME) &#8211; Birth date of person.<\/li><li><strong>birthPlace<\/strong> (varchar)- Birth place of person.&#8217;<\/li><li><strong>maritalStatus<\/strong> (varchar) &#8211; Current marital status of person.<\/li><li><strong>education<\/strong> (varchar)- Highest educational qualification of person.<\/li><li><strong>debut<\/strong> (array) &#8211; category wise debut movies or show of person.<\/li><li><strong>relations<\/strong> (array) &#8211; Wife, Husband, Son, Daughter and other relations.<\/li><\/ol>\n\n\n\n<h3>Episodes API &#8211;<\/h3>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>End Point <\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/episodes<\/span><\/p>\n\n\n\n<p><strong>Example<\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/episodes?contentId=132551&amp;token=jjhhh<\/p>\n\n\n\n<p><strong>Request Parameters<\/strong>&#8211;<\/p>\n\n\n\n<ol><li><strong>contentId<\/strong> (Integer) &#8211;  Id of the show.<\/li><\/ol>\n\n\n\n<h5>Response Object &#8211;<\/h5>\n\n\n\n<ol><li><strong>episodes <\/strong>(array) &#8211; Array of episodes.<\/li><li><strong>seasonNumber<\/strong> (int)- Number of season.<\/li><li><strong>episodeNumber<\/strong> (int) &#8211; Number of episode.<\/li><li><strong>duration<\/strong> (int) &#8211; Episode duration in seconds<\/li><li><strong>episodeName<\/strong> (varchar) &#8211; Name of episode.<\/li><li><strong>releaseDate<\/strong> (DateTime)- Release date of episode.<\/li><li><strong>description<\/strong> (Text) &#8211; Description of episode.<\/li><li><strong>crew<\/strong> (array)  &#8211; Array of Crew . Crew object is similar as content details API.<\/li><\/ol>\n\n\n\n<h3>Seasons API &#8211;<\/h3>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>End Point <\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/seasons<\/span><\/p>\n\n\n\n<p><strong>Example<\/strong>&#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/seasons?contentId=132551&amp;token=jjhhh<\/p>\n\n\n\n<p><strong>Request Parameters<\/strong>&#8211;<\/p>\n\n\n\n<ol><li><strong>contentId<\/strong> (Integer) &#8211;  Id of the show.<\/li><\/ol>\n\n\n\n<h5>Response Object &#8211;<\/h5>\n\n\n\n<ol><li><strong>seasons <\/strong>(array) &#8211; Array of season.<\/li><li><strong>number<\/strong> (int)- Number of season.<\/li><li><strong>name<\/strong> (int) &#8211; name of season.<\/li><li><strong>cast<\/strong> (array) &#8211; Array of Actor\/Actresses<\/li><li><strong>crew<\/strong> (array) -Array of crew excluding Actor\/Actresses<\/li><li><strong>releaseDate<\/strong> (DateTime)- Release date of season.<\/li><\/ol>\n\n\n\n<h3>Webhook &#8211;<\/h3>\n\n\n\n<p>You can set up a webhook to receive real-time updates when contents are added or modified.<\/p>\n\n\n\n<p>Our server will post a JSON payload at URL provided by you.<\/p>\n\n\n\n<h4>Payload Objects-<\/h4>\n\n\n\n<ol><li><strong>service<\/strong> (VARCHAR)- Its value will be <strong>OTT <\/strong>always (reserved for future).<\/li><li><strong>event<\/strong> (VARCHAR)- It&#8217;s value can be <strong>INSERT<\/strong>, <strong>UPDATE<\/strong>, <strong>DELETE<\/strong> or <strong>SYNC<\/strong>. (For now, please ignore this parameter and use a common logic to handle all events)<\/li><li><strong>entityType<\/strong> (VARCHAR)- It&#8217;s value will be <strong>CONTENT<\/strong>, (For now there is a single endpoint to get rating and content details, so please ignore this parameter)<\/li><li><strong>entityId<\/strong> (INT)- An unique identifier of content. <\/li><\/ol>\n\n\n\n<h5>Sample Webhook data-<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"event\": \"INSERT\",\n    \"service\": \"OTT\",\n    \"entityType\": \"CONTENT\",\n    \"entityId\": 26372\n}<\/code><\/pre>\n\n\n\n<h5>Sample PHP code to read webhook response &#8211;<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/read posted JSON data\n$data=json_decode(file_get_contents('php:\/\/input'),false);\n\/\/get entitId from data\n$contentId=$data-&gt;entityId;\n\/\/call content details API to get details and update content in your database\n\/\/if update is success\necho \"success\"; \/\/display any text like success or done .\n\/\/in case of failure \n\/\/http_response_code(500); \/\/500 or any response code not equal to 200 are treated as \/\/failure.\n\/\/echo \"failed\"; \/\/display any text like failed or error message .\n\n?&gt;<\/code><\/pre>\n\n\n\n<p>Once you receive a webhook request from our server, please call our API to get content details and update data in your database. Please send HTTP Code 200 if your update is done, all other HTTP codes will be treated as an error. Our server will try maximum 3 times for a single webhook in case of error. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 Content List &#8211; End Point &#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/content\/list Request Parameters &#8211; addedAfter (optional)- It will list contents which are added in database after this date-time. Supported Format &#8211; 2017-07-19T18:30:00.000Zsource (optional)- It filter list with given OTT.releaseYear (optional)- It &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,28],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OTT API V6 - 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\/ott-api-v6-draft\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OTT API V6 - Plansinfo blog\" \/>\n<meta property=\"og:description\" content=\"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 Content List &#8211; End Point &#8211; https:\/\/api2.plansinfo.com\/v6\/ott\/content\/list Request Parameters &#8211; addedAfter (optional)- It will list contents which are added in database after this date-time. Supported Format &#8211; 2017-07-19T18:30:00.000Zsource (optional)- It filter list with given OTT.releaseYear (optional)- It &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/\" \/>\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-05-24T10:39:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-18T13:43:31+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=\"4 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\/ott-api-v6-draft\/#webpage\",\"url\":\"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/\",\"name\":\"OTT API V6 - Plansinfo blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#website\"},\"datePublished\":\"2021-05-24T10:39:56+00:00\",\"dateModified\":\"2025-05-18T13:43:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/#\/schema\/person\/77523c6fc7209f1cc50e855ff545be58\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.plansinfo.com\/blog\/ott-api-v6-draft\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.plansinfo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OTT API V6\"}]},{\"@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-9p","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/583"}],"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=583"}],"version-history":[{"count":41,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":758,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions\/758"}],"wp:attachment":[{"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plansinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}