Hello TMDB team, I recently discovered this amazing database and I didn't succeed to get backdrops paths since I'm getting an empty array even when I tried a lot of movies by this request: { https://api.themoviedb.org/3/movie/{movie_id}/images?api_key=<>&language=en-US }. Also I wanted to thank you guys and all the contributors for this amazing work, keep up the good work <3.
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ سپتامبر 7, 2020 ساعت 6:44 ب.ض
To receive the image paths, in this API Request you are using, you need to add the parameter &include_image_language=
Just use the code iso_639_1. For example en or pt.
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en
If you want images from different languages, just add the language codes separated by a comma.
For example en, pt, es, de
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de
In the case of Backdrops, as most do not have text and therefore do not have a language, you need to use the null language code.
For example en, pt, es, de, null
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de,null
To receive all images, of all languages, with or without defined language, make the API Request without defining the initial parameter &language=
For example
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY
پاسخ توسط mon3om
در تاریخ سپتامبر 7, 2020 ساعت 8:08 ب.ض
Thank you. Problem solved.
پاسخ توسط Shahood Ul Hassan
در تاریخ مارس 11, 2025 ساعت 1:36 ق.ض
What is the purpose of
language
parameter in this movie details query, in the first place?پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ مارس 12, 2025 ساعت 8:35 ق.ض
Choose the language of the response text data.
Title in your country, Overview, Tagline and Poster language.
پاسخ توسط Shahood Ul Hassan
در تاریخ مارس 12, 2025 ساعت 8:48 ق.ض
Ok, so now if I want the response data in, let's say,
en
but images in all languages, would I have to pass onlanguage=en
and mention all the languages and null ininclude_image_language
?پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ مارس 12, 2025 ساعت 8:57 ق.ض
Basically yes.
Please note: This topic is from 2020.
There may have been changes since then.
I don't know if my 2020 examples will still work correctly in 2025.
But I think it's easy to find out.
Just create the API Request examples yourself.
If they don't work correctly, let me know here.