Death

Generates statistics on death, dead characters, and shows with dead characters.

Endpoints

  • /lwtv/v1/stats/death/
  • /lwtv/v1/stats/years/

Death Example

characters – number dead, number alive ; shows – number with death, number without

GET https://lezwatchtv.com/wp-json/lwtv/v1/stats/death/

Example Output

{  
   "characters":{  
      "dead":375,
      "alive":3296
   },
   "shows":{  
      "death":248,
      "no-death":996
   }
}

Years Example

All years from 1961 to today – year, number of dead, URL to ‘this year’ page

GET https://lezwatchtv.com/wp-json/lwtv/v1/stats/years/

Example Output

{  
   "2019":{  
      "name":2019,
      "count":9,
      "url":"https:\/\/lezwatchtv.com\/this-year\/2019\/"
   },
   [...]
   "1961":{  
      "name":1961,
      "count":0,
      "url":"https:\/\/lezwatchtv.com\/this-year\/1961\/"
   }
}

Used By