Hi.
https://developers.themoviedb.org/3/search/search-collections
I get the collection code in this link.
https://api.themoviedb.org/3/search/collection?api_key="key"&language=en-US&query=9485&page=1
The final version of the link is like this. But it finds no results.
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת superboy97
ב-ינואר 13, 2022 ב-5:04לפני חצות יום
This API query try to find a collection that include the "9485" text in its name.
If you want to find the collection "The Fast and the Furious Collection" which have the Id 9485, you need to put the name of the collection or a part of it (URI encoded) to search for it.
Or, if you want directly obtain the detail of this collection directly use the collection method with the Id, instead of the search collection.
תגובה מאת melihonline
ב-ינואר 13, 2022 ב-5:09לפני חצות יום
Can you give an example?
Also, can we search for collections by ID number?
תגובה מאת superboy97
ב-ינואר 13, 2022 ב-5:12לפני חצות יום
https://api.themoviedb.org/3/collection/9485?api_key="key"&language=en-US
No, you can't search for collections by ID number, as the main use of the search is to obtain the Id Number of the collection.
תגובה מאת Wiccio
ב-מאי 10, 2024 ב-4:07לפני חצות יום
Thanks for your reply, @superboy97. I also have the same need as @melihonline. So, as of today, you confirm that there is no way to get collections in which a film is included by searching for the film ID?
תגובה מאת superboy97
ב-מאי 10, 2024 ב-4:19לפני חצות יום
Why do you want to do a search if you already have the movie Id ?
The above discussion was about searching a collection with the collection Id.
As explained in this previous discussion, the collection it belongs to is directly available in the movie details.
תגובה מאת Wiccio
ב-מאי 10, 2024 ב-6:26לפני חצות יום
Because I'm writing a bot for Wikidata, which cycles through all the film IDs in TMDb. Uh, thanks for this link and this information; I didn't realise that the collection ID is listed on the films page accessible via the API. In that case, I've solved it, thank you very much! ;-)