Getting movie image from TMDb

Viewed 8094

Just started working with the TMDb API and need to know how to get movie poster. I am having movie id, posterid also but not knowing proper URL for fetching the image poster.

2 Answers
url = "https://api.themoviedb.org/3/movie/{}?api_key=8265bd1679663a7ea12ac168da84d2e8&language=en-US".format(movie_id)
data = requests.get(url)
data = data.json()
poster_path = data['poster_path']
full_path = "https://image.tmdb.org/t/p/w500/" + poster_path
Related