What Happened

Generates data based on what happened on a given date.

Endpoints

  • /lwtv/v1/what-happened/
  • /lwtv/v1/what-happened/YYYY

Example Requests

Overview

GET https://lezwatchtv.com/wp-json/lwtv/v1/what-happened/

Example Output
{  
   "dead_year":9,
   "dead":9,
   "posts":62,
   "shows":104,
   "characters":273,
   "actors":222,
   "on_air":{  
      "current":313,
      "started":25,
      "ended":47
   }
}

A Specific Year

GET https://lezwatchtv.com/wp-json/lwtv/v1/what-happened/2016

Example Output
{  
   "dead_year":44,
   "dead":44,
   "posts":45,
   "shows":411,
   "characters":1105,
   "actors":0,
   "on_air":{  
      "current":375,
      "started":114,
      "ended":94
   }
}

Used By