Beginner 1-2 hours · 2 APIs
Build a Movie Night Picker
Can't decide what to watch? Get a random movie suggestion with a joke to share while you wait for it to start.
APIs Used
Data Flow
User Action
API Call
Transform
Output
How It Works
1
User enters a genre or keyword for movie search
2
Search OMDb for matching movies and pick one randomly
3
Display movie poster, plot, ratings, and cast
4
Show a random joke while the user decides
Code Outline
Pseudocode / JavaScript
// 1. Search for movies
const movieRes = await fetch(
'https://www.omdbapi.com/?s=adventure&type=movie&apikey=YOUR_API_KEY'
);
const { Search: movies } = await movieRes.json();
// 2. Pick a random movie and get full details
const pick = movies[Math.floor(Math.random() * movies.length)];
const detailRes = await fetch(
`https://www.omdbapi.com/?i=${pick.imdbID}&apikey=YOUR_API_KEY`
);
const movie = await detailRes.json();
// 3. Get a joke for entertainment
const jokeRes = await fetch('https://v2.jokeapi.dev/joke/Any?safe-mode');
const joke = await jokeRes.json();
// 4. Display everything
console.log(`Tonight's pick: ${movie.Title} (${movie.Year})`);
console.log(`Rating: ${movie.imdbRating}/10 | Genre: ${movie.Genre}`);
console.log(`Plot: ${movie.Plot}`);
console.log(`\nWhile you get the popcorn:`);
console.log(joke.type === 'single' ? joke.joke : `${joke.setup} - ${joke.delivery}`); Recipe Details
Difficulty Beginner
Time 1-2 hours
APIs Used 2
Tags
Related Recipes
Related Tutorials
Note: These recipes are AI-generated suggestions based on API capabilities. Actual implementation may vary. Always refer to official API documentation for the latest specifications.