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
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Prithu
on এপ্রিল 15, 2017 at 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.
Reply by theMoviez
on এপ্রিল 15, 2017 at 10:59 AM
Ok so it is not possible for me to use the API, I will just use the image link from scratch.