The Movie Database-ondersteuning

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": [

  ]
}

2 antwoorden (op pagina 1 van 1)

Jump to last post

The link page you've placed, get-movie-images, contains the instructions:

Querying images with a language parameter will filter the results.
If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter.
This should be a comma seperated value like so: include_image_language=en,null

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

Oh, OK. Thank you!!!! that did it.

Film of tv-serie niet gevonden? Log dan in om deze te creëren.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op TV seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met TV-programma's

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c gesloten of open
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen