Search⌘ K
AI Features

Movie Images and Videos

Explore how to fetch movie images and videos using TMDB API endpoints. Understand how to use language parameters for translated media, generate working image URLs, and embed videos from sources like YouTube and Vimeo. This lesson equips you to enhance your movie app with interactive visual content.

In this lesson, we’ll focus on the endpoints—movie images and videos.

Movie images

When we create a movie application, having access to images from movies is a plus for developers. This is because the use of images adds to the interactivity of their application and attracts relatively more users. We can get the images that belong to a specific movie using the images endpoint. This endpoint takes an integer path parameter movie_id and returns a list of paths to images in a single JSON response.

Other than movie_id, this endpoint takes a string query parameter include_image_language. This is used to get the images with a translated text. For example, if we want the images with text in English, we’ll use include_image_language=en. However, if we need ...