Hello, I am playing with the get images for movies and I can't seem to pull any data with "https://api.themoviedb.org/3/movie/299534/images?api_key=MYKEY&language=en-US". This is for Avengers Endgame and I see on the site they have 30 posters. I did not seem to get any errors in the response just the below empty JSON. Did I get the id wrong?
https://developers.themoviedb.org/3/movies/get-movie-images
{
"id": 299534,
"backdrops": [
],
"posters": [
]
}
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת ticao2 🇧🇷 pt-BR
ב-מרץ 15, 2019 ב-9:49לפני חצות יום
The link page you've placed, get-movie-images, contains the instructions:
You need to use Parameter &include_image_language. For example:
https://api.themoviedb.org/3/movie/299534/images?api_key=[MY_KEY]&language=en-US&include_image_language=en,null
If you do not use Parameter &include_image_language, then the &language Parameter can not contain reference to Country.
You can not use en-US (language-COUNTRY). Must only use en (language). For example:
https://api.themoviedb.org/3/movie/299534/images?api_key=[MYKEY]&language=en
תגובה מאת majortom84
ב-מרץ 15, 2019 ב-9:53לפני חצות יום
Oh, OK. Thank you!!!! that did it.