API-Project
This project is a Movie App recommendation application. It allows users to search movies by title or genre, and retrieve information about the movies that match their query. The API used is http://www.omdbapi.com/
- Clone or Download the repository:
git clone https://github.com/mariamisaeva/MovieApp.git
- Navigate into the directory:
cd MovieApp
- Open the index.html file in your preferred web browser.
- Enter a keyword in the search input and click the "Search" button to retrieve movie results.
- Alternatively, you can open http://localhost in your browser to see the app running.
Follow these steps to add your API key to the code:
- Get an API key from OMDb API.
- Open the
index.html
file in your browser. - Enter your own API key in prompt box.
- Press Ok.
Searches the movie database for movies matching the given search term. Returns an array of movie objects with properties : title, poster, year, and type. with the total number of results. If no matches are found, not relevant input, or no input, returns an error message. All responses return JSON data.
- Dynamic rendering of movie search results.
- Display of total search results.
- Error handling for unsuccessful API calls.


