I'm new in API's , i would like to know how to get a poster path of an image from the movie id that i have just searched.Like where exactly do i see the poster path after making a call. Also do i need to create two url's i.e the image url and the main url or can they be linked together to return both the poster and the movie overview.
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 ticao2 š§š· pt-BR
on August 20, 2020 at 6:36 PM
In an API Request of the type get / movie / {movie_id} in addition to receiving the basic data of the Movie,
for example overview, there are 2 items that identify images.
See here https://developers.themoviedb.org/3/movies/get-movie-details
For example:
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US
Then use the basic URL below:
https://image.tmdb.org/t/p/original/wigZBAmNrIhxp2FNGOROUAeHvdh.jpg
https://image.tmdb.org/t/p/original/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg
https://image.tmdb.org/t/p/original/rr7E0NoGKxvbkb89eR1GwfoYjpA.jpg
Make sure to read the documentation around images.