Querying single episodes & seasons

newznab wrote 10 years ago: 1

david wrote:
I've heard mixed responses on the summaries containing HTML. Removing them would break BC though, and including both a HTML and a non-HTML version would be a huge waste. So it'll be like this for the forseeable future; at least until we feel the need to start a new API version.

is there actually any real markup in some descriptions? or is it just a P tag thrown around it?


david wrote 10 years ago: 1

Yeah, there can be actual HTML (A very small subset; basically only B, I, BR and P) markup in the descriptions, though you're much more likely to find that in show summaries than in episode summaries.

hecks wrote 10 years ago: 1

david wrote:
I decided to rename the endpoints slightly, but leave them the semantics the same.
http://api.tvmaze.com/shows/1/episodebynumber?season=1&number=1
http://api.tvmaze.com/shows/1/episodesbydate?date=2013-07-01
They are now out of beta and documented on http://www.tvmaze.com/api
I'll leave the old URL's working for a little while in case you guys already started using them.

Thanks, but could you just confirm that this isn't returning the expected result in case I'm doing it wrong:

http://api.tvmaze.com/shows/1939/episodebynumber?s...

returns date: 2012-10-12, but querying that date

http://api.tvmaze.com/shows/1939/episodesbydate?da...

returns not found. But it works with other series, like:

http://api.tvmaze.com/shows/134/episodebynumber?se...

returns date: 2006-09-25, and

http://api.tvmaze.com/shows/134/episodesbydate?dat...

returns the correct episode.


david wrote 10 years ago: 1

Fixed, thanks! It'll start working for that specific episode within the hour when the cache expires.

Try 30 days of free premium.