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": [
]
}
No trobeu una pel路l铆cula o una s猫rie? Inicieu la sessi贸 per a crear-la.
Desitgeu valorar o afegir aquest element a una llista?
No n'ets membre?
Resposta per ticao2 馃嚙馃嚪 pt-BR
el 15 l de 2019 a les 9:49 A.M.
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
Resposta per majortom84
el 15 l de 2019 a les 9:53 A.M.
Oh, OK. Thank you!!!! that did it.