DEV Community

Waqar Ahmed
Waqar Ahmed

Posted on

How to fetch One movie exact the same from tmdb api using name of movie?

How can we get the exact movie details by using tmdb api if we have list of the exact movie names stored in an array ?Example :

moviesArray.movies.forEach(title => {
                        console.log(title);
                        this.setState({title: title}); //here i want to fetch exact movie's posters and other details one by one how can i do that ? }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)