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": [
]
}
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on March 15, 2019 at 9:49 AM
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
Reply by majortom84
on March 15, 2019 at 9:53 AM
Oh, OK. Thank you!!!! that did it.