Try 30 days of free premium.

include show id when searching for an specific episode or a season

nanaberko wrote 7 years ago: 1

Hi,

I was wondering if there is a way, maybe with embedding, to include the show id when you look for a specific episode or season.

For example when looking for http://api.tvmaze.com/episodes/100, it gives all the episode information but you can't know which program it belongs to. Is there a way you can show that?

Thank you so much!

nanaberko wrote 7 years ago: 1

thank you! It sounds counter intuitive but it seems to me the easiest way to update a sql database so that you do not have to go over every episode of every show again

nanaberko wrote 7 years ago: 1

Yes, I only want to add to my database the new episodes. Thanks so much for the answer! I just have one more question, why can't you use the same for seasons? ex: http://api.tvmaze.com/seasons/100?embed=show. It is giving me an error. When looking up a season by itself is there a way of knowing its show id?


gazza911 wrote 7 years ago: 1

Embedding is normally used for navigating to children as opposed to the parent.

So you'd be able to get the episodes for a season via http://api.tvmaze.com/seasons/100?embed=episodes.

I don't quite understand what you're trying to achieve by doing it in this way, that you couldn't do with other endpoints.

Try 30 days of free premium.