Is there a way to return data for multiple movie ids? I am trying to do something like this: http://api.themoviedb.org/3/movie/11,90?api_key=[blah] , but it's only returning the first movie. My main goal is to query a movie list and then get more info (such as duration) on each movie in that list. Is there just a way I can add a param to include more info in a list request?
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την Travis Bell
στις 12 Αύγουστος 2013 στις 09:36 ΕΊΜΑΙ
Hi rustybailey,
We do not currently have the ability to query multiple ids at once.
Απάντηση από τον/την rustybailey
στις 12 Αύγουστος 2013 στις 10:05 ΕΊΜΑΙ
So if I want info on 50 movies, is themoviedb API's standard usage to send out 50 requests, or is there a more efficient way to do this?
Απάντηση από τον/την Travis Bell
στις 12 Αύγουστος 2013 στις 03:42 ΜΜ
Hi rustybailey,
50 requests. There is no other way.
Απάντηση από τον/την angelxmoreno
στις 6 Σεπτέμβριος 2013 στις 06:11 ΜΜ
One thing to note @rustybailey is the limitation of 20 simultaneous connections and the fact the curl lets you make concurrent connections using multiCurl - here is an example of it http://multicurl.nisu.org/ - this might help make those 50 calls faster
Απάντηση από τον/την T.I.P
στις 24 Αύγουστος 2016 στις 12:36 ΜΜ
Hi, has the situation changed anyhow after almost three years? I have a list of 15 IDs and need to show movie posters and titles. Now I do it in a loop but it is terribly slow. Please, surprise me and inform me about a new, more efficient, method.
Thank you!
Απάντηση από τον/την Travis Bell
στις 24 Αύγουστος 2016 στις 12:41 ΜΜ
Hi T.I.P,
No this has not changed.
Απάντηση από τον/την nkallen
στις 20 Οκτώβριος 2016 στις 12:28 ΜΜ
I'm really happy with the TMDB API so far. But I really wish you had a multiget interface though! GET /movies/?id=1,2,3 would be nice and restful...
Currently my code sends parallel requests, and in order to avoid getting 429 rate limited I have to batch them at a controlled frequency. The code is a bit of a hassle and I'm sure it's more resource-intensive on your servers than you would like!
Απάντηση από τον/την Travis Bell
στις 20 Οκτώβριος 2016 στις 06:15 ΜΜ
Hi nkallen,
Thanks for the note. We don't have any plans to change this right now.
Απάντηση από τον/την Alexey
στις 10 Ιούλιος 2017 στις 05:36 ΜΜ
Another year passed, any chance? This is really necessary feature. Thanks!
Απάντηση από τον/την Travis Bell
στις 10 Ιούλιος 2017 στις 05:53 ΜΜ
Hi Alexey, there are still no plans for this. There's some potential changes up and coming around rate limits and before that were to ever change it could make sense to look at a multi get. But for now nothing is planned.
Απάντηση από τον/την toshik
στις 14 Σεπτέμβριος 2017 στις 03:31 ΜΜ
i was curious any change to be able to use this ?? I started building my android app few months ago and now its been put on halt because of this can you help?
Απάντηση από τον/την Travis Bell
στις 15 Σεπτέμβριος 2017 στις 06:18 ΜΜ
Hi @toshik There has been no change with regards to this.
Απάντηση από τον/την toshik
στις 15 Σεπτέμβριος 2017 στις 07:01 ΜΜ
hi @travisbell thanks for reply
I know this is for the good and ethical practices that is one should not store any data, not even movie id,
would it be problem if i save movie id and movie name on user machine(mobile android) not on the server solely on user device as saved movies?
Απάντηση από τον/την Travis Bell
στις 18 Σεπτέμβριος 2017 στις 03:44 ΜΜ
We have no problems with you caching the data. That is perfectly fine.
Απάντηση από τον/την Chris Krueger
στις 27 Σεπτέμβριος 2017 στις 05:16 ΜΜ
I can also fully agree with the previous post! :) We need a query for multiple movies! It blow up with too much requests when my app is running :D This is my only bottleneck...