Try 30 days of free premium.

[API] More search parameters (e.g. "exact=1&year=2009")

ornest wrote 4 years ago: 1

Searching for "life" expectedly yields a lot of results. On the website, the show I'm looking for is on page 5.

The API search doesn't allow me to find that show at all. I only get 10 search results and there are hundreds.

One solution would be to provide more search parameters, for example the release year, country, network, etc. Adding an "exact" parameter to get only results for "life" and exclude "Another Life", "After Life", etc would also be very helpful.


david wrote 4 years ago: 2

First of all, these exact matches should simply always be returned on the beginning of the resultset. That's something I'm working on and should be improved in the near future!

When that's done, we'll see if adding additional search parameters is still necessary :)

ornest wrote 4 years ago: 1

Thanks for the quick reply and for your work.

Sounds like that should solve this particular issue. Making a more specific search query would still be necessary if there are more than 10 shows with exactly the same name.

Or maybe you could return all the results that match exactly, even if there are more than ten?


david wrote 4 years ago: 2

We just deployed an upgraded search function, which indeed returns all 4 exact matches for "life" on top: http://api.tvmaze.com/search/shows?q=life

This should ensure that any show can be found within the first 10 results! :) If you still come across a usecase where more than 10 results are necessary, please let me know!

ornest wrote 4 years ago: 1

Works great. Thank you!

Try 30 days of free premium.