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.
![Screenshot 2024-01-20 at 21 51 28](https://private-user-images.githubusercontent.com/142991068/298307314-35bd3097-61c2-467c-b33a-0bebbf99468c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NTU0NTMsIm5iZiI6MTcyMzg1NTE1MywicGF0aCI6Ii8xNDI5OTEwNjgvMjk4MzA3MzE0LTM1YmQzMDk3LTYxYzItNDY3Yy1iMzNhLTBiZWJiZjk5NDY4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QwMDM5MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hY2U3MjJkZmZiZmEyMmEyYzYzNjQ3NWI4OGNkNjZiNjgwZTk0MmY3OTk4YTdmOGU4OWEyNjg5MmUwZGE2NDVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.92TzU0k22e-MX7KWPACxKcknsoZOAVetIeDrNY6714M)
![Screenshot 2024-01-20 at 21 53 49](https://private-user-images.githubusercontent.com/142991068/298307319-d54239e1-91b7-43d6-a819-afe8eec92ef0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NTU0NTMsIm5iZiI6MTcyMzg1NTE1MywicGF0aCI6Ii8xNDI5OTEwNjgvMjk4MzA3MzE5LWQ1NDIzOWUxLTkxYjctNDNkNi1hODE5LWFmZThlZWM5MmVmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QwMDM5MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yM2QzZDUwN2MxMjljMjczNjQwMzIxMWMyZTE0OTY1YzBjNDFlMWUzNmQ3MzhlYmRiMjc5ZDVkMTRlMjVmMjY3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.t-ryQ0iBsy9o90FcSLH0fN8SS-DFYyj7MKsZHesgTXA)
![Screenshot 2024-01-20 at 21 54 04](https://private-user-images.githubusercontent.com/142991068/298307335-31e63d8b-3203-4795-b2b8-6bbbb9896a0d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJna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