Assistance de TMDB

Hello TMDB team, I recently discovered this amazing database and I didn't succeed to get backdrops paths since I'm getting an empty array even when I tried a lot of movies by this request: { https://api.themoviedb.org/3/movie/{movie_id}/images?api_key=<>&language=en-US }. Also I wanted to thank you guys and all the contributors for this amazing work, keep up the good work <3.

6 réponses (sur la page 1 sur 1)

Jump to last post

@mon3om said:
Get all backdrops paths
Hello TMDB team,
I recently discovered this amazing database and I didn't succeed to get backdrops paths since I'm getting an empty array even when I tried a lot of movies by this request:

https://api.themoviedb.org/3/movie/{movie_id}/images?api_key=<<api_key>>&language=en-US

Also I wanted to thank you guys and all the contributors for this amazing work, keep up the good work <3.

To receive the image paths, in this API Request you are using, you need to add the parameter &include_image_language=
Just use the code iso_639_1. For example en or pt.
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en

If you want images from different languages, just add the language codes separated by a comma.
For example en, pt, es, de
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de

In the case of Backdrops, as most do not have text and therefore do not have a language, you need to use the null language code.
For example en, pt, es, de, null
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de,null

To receive all images, of all languages, with or without defined language, make the API Request without defining the initial parameter &language=
For example
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY

@ticao2 said:

@mon3om said:
Get all backdrops paths
Hello TMDB team,
I recently discovered this amazing database and I didn't succeed to get backdrops paths since I'm getting an empty array even when I tried a lot of movies by this request:

https://api.themoviedb.org/3/movie/{movie_id}/images?api_key=<<api_key>>&language=en-US

Also I wanted to thank you guys and all the contributors for this amazing work, keep up the good work <3.

To receive the image paths, in this API Request you are using, you need to add the parameter &include_image_language=
Just use the code iso_639_1. For example en or pt.
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en

If you want images from different languages, just add the language codes separated by a comma.
For example en, pt, es, de
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de

In the case of Backdrops, as most do not have text and therefore do not have a language, you need to use the null language code.
For example en, pt, es, de, null
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY&language=en-US&include_image_language=en,pt,es,de,null

To receive all images, of all languages, with or without defined language, make the API Request without defining the initial parameter &language=
For example
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY

Thank you. Problem solved.

@ticao2 said:

To receive all images, of all languages, with or without defined language, make the API Request without defining the initial parameter &language=
For example
https://api.themoviedb.org/3/movie/550/images?api_key=THE_KEY

What is the purpose of language parameter in this movie details query, in the first place?

@shahood said:
What is the purpose of language parameter in this movie details query, in the first place?

Choose the language of the response text data.
Title in your country, Overview, Tagline and Poster language.

@ticao2 said:

@shahood said:
What is the purpose of language parameter in this movie details query, in the first place?

Choose the language of the response text data.
Title in your country, Overview, Tagline and Poster language.

Ok, so now if I want the response data in, let's say, en but images in all languages, would I have to pass on language=enand mention all the languages and null in include_image_language?

@shahood said:
Ok, so now if I want the response data in, let's say, en but images in all languages, would I have to pass on language=enand mention all the languages and null in include_image_language?

Basically yes.
Please note: This topic is from 2020.
There may have been changes since then.
I don't know if my 2020 examples will still work correctly in 2025.
But I think it's easy to find out.
Just create the API Request examples yourself.
If they don't work correctly, let me know here.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion