I was trying to retrieve a list of episode groups. On the TV Episode Groups page, (the only page provided for Episode Groups), the query string is shown as:
GET /tv/episode_group/{id}
.
Also, the Try it out area shows: https://api.themoviedb.org/3/tv/episode_group/{id}?api_key=<<api_key>>&language=en-US
In both cases, notice that the text is showing episode_group
, singular. However, in order to make the list query work, I had to use episode_groups
, plural - with the show id.
I figured it out after much searching when I found @TravisBell's post here. This page had great examples! Thanks for that, @TravisBell!
Perhaps it would be clearer if there was another page - or at least a comment - that the plural form, with the show id, is necessary for a list of groups:
/tv/{id}/episode_groups
while the singular form, with the specific group id, is required for a specific group?
/tv/episode_group/{id}
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on March 30, 2023 at 6:40 PM
Hi @leanne63,
The plural page is indicated as much on the docs here, isn't it? Basically, you look up the groups in the
tv
namespace and then query the actual group from theepisode_group
namespace.Reply by leanne63
on March 30, 2023 at 6:44 PM
Missed it there, under the
TV
list of APIs! I guess I didn't see it there, sinceEpisode Groups
had its own section. Thanks, @travisbell, for the further info.Reply by Travis Bell
on March 30, 2023 at 6:47 PM
No problem.
Reply by leanne63
on March 30, 2023 at 7:01 PM
Okay, just one more comment, @travisbell : the TV / Get Episode Groups page says "Get all of the episode groups that have been created for a TV show. With a group ID you can call the get TV episode group details method."
Maybe a similar link back to the TV / Get Episode Groups page from the Episode Groups / Get Details would be helpful for us noobs ;)