The Movie Database Support

Hi guys,

I'm working on an autocomplete input field and I need a database of movienames. with /movie/popular I can only get max. 1000 pages but there are more than 12000. Does anybody know an option how to get that list easily? I haven't found a suitable command in the API documentation.

Best regards, Jones

5 svar (på sida 1 av 1)

Jump to last post

Hi Jones,

You'd pretty much have to iterate through every media id starting at 1 and going up to the id found on the /latest (/movie/latest for example) method. There will be gaps in the ids space and those ids will return a 404.

Hi Travis,

okay, thanks for that hint. But, isn't there a limit of calls to the API in a specific time? So if I'd call every id individually, wouldn't that take way to many hours?

Okay, now I saw in "/search/movie" the parameter search_type with the description: "By default, the search type is 'phrase'. This is almost guaranteed the option you will want. It's a great all purpose search type and by far the most tuned for every day querying. For those wanting more of an "autocomplete" type search, set this option to 'ngram'."

This means I don't need database behind my input field, but I can use this search for implementing an input field with autocomplete? If so, how many requests will be sent when a user types in his entry? Will there be a new request every character?

Okay, I've read that those API calls limits are based on IP, not api_key. So I don't think someone would crash that limit and it doesn't matter how many users are linked in at the moment.

Yes, you have all of the info correct. I actually made search a fair bit smarter a while back but never updated the docs. search_type is obsolete and won't change your results anymore. The search tries to handle the ngram and phrase searching automatically now.

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in