Assistance de TMDB

I build an application that uses some images which are chosen manually because they have some information that are useful for my application.

The problem is, I cannot use your api to do that because when I made a request I have all images of a movie but it is not what I want and it can begin too complex to retrieve the image that I want in the response....

Is there a solution for this problem ?

Something like this: https://image.tmdb.org/t/p/original/**MyAPIKEY**/nxRD5Tc639keDQVOdogWLTdQrx9.jpg

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

Jump to last post

Something like this: https://image.tmdb.org/t/p/original/**MyAPIKEY**/nxRD5Tc639keDQVOdogWLTdQrx9.jpg

This is not an API request.

If you want all the images of a movie or a person then you can use Movies > Get Images or for people People > Get Images. Remember these take the movie/person id as a parameter. Also read through the Images section under getting started

When you make a request for images using the API you get a file_path and not the actual URL to the image. The URL to the image file is made up of three parts. base_url, file_size, file_path. Combining these parts you will get the complete URL to the image file.

For example when you make a request to get the info about the movie using api.themoviedb.org/3/movie/263115?api_key=##APIKEY## in the response JSON object you get the poster_path key which only contains the file_path like so : /45Y1G5FEgttPAwjTYic6czC9xCn.jpg

And now combining the base_path, file_size, file_path you get : https://image.tmdb.org/t/p/w500/45Y1G5FEgttPAwjTYic6czC9xCn.jpg

You can retrieve all the Images and the select manually which one you want to have if that's what you want.

Ok so it is not possible for me to use the API, I will just use the image link from scratch.

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