The Movie Database-ondersteuning

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

4 antwoorde (op blad 1 van 1)

Jump to last post

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.

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.

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.

Gotcha, thanks for the clarification.

Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan