Try 30 days of free premium.

Can I find a show by its name and get next episode info in one request?

vBm wrote 8 years ago: 1

Use singlesearch endpoint.

Show single search

In some scenarios you might want to immediately return information based on a user's query, without the intermediary step of presenting them all the possible matches. In that case, you can use the singlesearch endpoint which either returns exactly one result, or no result at all. This endpoint is also forgiving of typos, but less so than the regular search (with a fuzziness of 1 instead of 2), to reduce the chance of a false positive.

As opposed to the regular search endpoint, the singlesearch endpoint allows embedding additional information in the result. See the section embedding for more information.

Beware that if multiple shows exist with an identical name (for example, Top Gear) it's undefined which of them will be returned by this endpoint. If you want to be sure you're matching with the proper show, use the search endpoint instead.

URL: /singlesearch/shows?q=:query
Example: http://api.tvmaze.com/singlesearch/shows?q=mr-robot&embed=nextepisode

EmilMazik wrote 8 years ago: 1

Thank you very much!

vBm wrote 8 years ago: 1

You're welcome.

Try 30 days of free premium.