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
Не можеш да нађеш филм или серију? Пријави се да додаш.
Желите ли да оцените или додате ову ставку у листу?
Нисте члан?
Одговор од Prithu
дана 15. април 2017. у 8:11 AM
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 theposter_path
key which only contains thefile_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.
Одговор од theMoviez
дана 15. април 2017. у 10:59 AM
Ok so it is not possible for me to use the API, I will just use the image link from scratch.