This works similary for "with_people" and for "with_keywords" - in both case you must use the numerical ID of the person/keyword. This is true even though the API reference for Discover->Movie, for example, states that these values are strings. I tried with_keywords using both words (such as "Batman") and out of range numbers (such as "2"), but the first page of roughly 832,000 results were returned. Only when using a valid keyword ID (such as 4344 for "musical") will this work.
Vastaus käyttäjältä codenametyler
8 helmikuu 2019 klo 6:57AM
correct me if am wrong, we can use the filters in movie discovery to achieve it. https://developers.themoviedb.org/3/discover/movie-discover
Vastaus käyttäjältä Travis Bell
8 helmikuu 2019 klo 3:57PM
Hi @codenametyler,
Yes, you can use /discover. You'll want to look at using the
with_people
filter. Looking at Brad Pitt as an example:Vastaus käyttäjältä codenametyler
11 helmikuu 2019 klo 12:52AM
Hello @travisbell ,
that exactly what i did, with an autocomplete to get the peopleID. XD
Cheers
Vastaus käyttäjältä msheliga1
22 joulukuu 2023 klo 4:25PM
This works similary for "with_people" and for "with_keywords" - in both case you must use the numerical ID of the person/keyword. This is true even though the API reference for Discover->Movie, for example, states that these values are strings. I tried with_keywords using both words (such as "Batman") and out of range numbers (such as "2"), but the first page of roughly 832,000 results were returned. Only when using a valid keyword ID (such as 4344 for "musical") will this work.
Vastaus käyttäjältä Travis Bell
22 joulukuu 2023 klo 4:48PM
The docs state strings because values like "9663|9748" and "9663,9748" are valid in order to issue an
OR
orAND
query.