Try 30 days of free premium.

Updates API Based On Filters Given

v00v wrote 5 years ago: 1

Request for API updates based on filters given just like on this page here;

https://www.tvmaze.com/shows

So for example, I could do;

https://api.tvmaze.com/shows/status?=running&show-type=scripted&language=English&sort-by=MostRecent

and it would give me apropreate JSON API for that :-) This would be an EPIC addition.


gazza911 wrote 5 years ago: 1

For much the same reasons as I pointed out in your other thread, this is not done for a reason.

We are able to use caching (allowing results to be returned much quicker) on the shows index API precisely because there's no parameters that you can pass to it.

If you allowed this, you can't guarantee that what the user requests will be in the cache already so you'll be doing lots of work on the database.

tl;dr Large endpoints shouldn't have things which mean it will often be resource intensive.


david wrote 5 years ago: 1

Indeed; this would certainly be nice to have. But to be able to offer our public API for free, we sometimes have to sacrifice functionality for better performance.

Try 30 days of free premium.