The Movie Database Support

Hello,

I just noticed a strange behaviour in language parameter processing in Movie getDetails API. From documentation:

Pass a ISO 639-1 value to display translated data for the fields that support it. minLength: 2 pattern: ([a-z]{2})-([A-Z]{2}) default: en-US

If I use this default value with append_to_response=images, images response is empty.

To get a response, I have to force language to null (to get all images) or to a 2-chars ISO 3166-1 value (to get filtetred images).

Movie getImages API has the same bug. If it is not a bug, API documentation should be updated to replace parameter documentation.

How to reproduce : https://developers.themoviedb.org/3/movies/get-movie-images use "Try it out" with an API key, default language value and a valid film id.

Best regards,

2 replies (on page 1 of 1)

Jump to last post

Hi @bcourtine,

Have you had a read through our image language docs? It outlines half the of issue you're talking about here.

The other half is that images have not been updated to support the region based language codes yet, so when you specify ?language=fr-FR, there's no images that are going to match. So in order to complete this query, as per the docs above, I would suggest doing:

https://api.themoviedb.org/3/movie/550/images?api_key=###&language=en-US&image_language=en,null

As an example.

Hi @travisbell .

Thanks a lot for this complete response. I missed this specific "image language docs" page when looking for documentation (so I did not know about this image language docs parameter).

Best regards,

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page