Attempting to get familiar with Discover/Movie in the API and no matter what I enter I'm getting back the same list of new releases. I'm probably doing something wrong but the guide for Discover https://developer.themoviedb.org/documentation/api/discover doesn't exist any more so I'm struggling to figure out what that might be.
For example, if I enter, 'Paul Rudd' into with_cast and 'Adventure' into with_genres, I just get the same list of new releases. The only field that appears to work for me is release date, but it doesn't work in tandem with the other fields. It just gives me a list of movies that came out that year - I mean, unless Paul Rudd really was in every single movie in 1999...
Would appreciate any tips or resources. Thanks
Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.
Wil u hierdie item gradeer of tot ’n lys toevoeg?
Nie ’n lid nie?
Antwoord deur robbie3999
op 30 Julie 2023 om 6:00 NM
Hi @WhitneyShake, here is the documentation for discover. You can also see all the other endpoints on the left hand side of the page.
Both with_cast and with_genres accept numbers, not text. Cast would be the tmdb_id of the person. Genre would be the genre_id number from this endpoint.
Antwoord deur WhitneyShake
op 30 Julie 2023 om 8:16 NM
Thanks so much @robbie3999, that's very helpful. I switched to the id and we're back in business. I'm confused as to why it says 'string' next to 'with_cast'. Do you know if this labeling is a typo or maybe refers to something other than the input? I'm new to APIs in general and just want to make sure I understand. Appreciate your time.
Antwoord deur robbie3999
op 30 Julie 2023 om 8:52 NM
Well, all of this doc was redone a few months ago. There are probably a few places that need more clarification. I'm just guessing, but the field may be labeled as a string because it has to be read in as a string because of the option to have multiple inputs separated by "," (and) or "|" (or). For example, 1|2|3 is a valid input and will search for 1 or 2 or 3.
Antwoord deur WhitneyShake
op 31 Julie 2023 om 12:34 NM
Gotcha, thanks for the clarification.