A simple HTML + JavaScript-based tool to search for movies using the TMDB API, and check their streaming availability on popular Indian OTT platforms like Netflix, Prime Video, SonyLIV, Hotstar, and Zee5.
- Minimal, responsive UI with basic styling
- Search by movie title
- Sort results by release date (newest first)
- Display poster, overview, rating, and streaming platforms (India-specific, but can be changed)
- Direct links to streaming search pages
- Handles empty results and API errors
- Clone this repo or copy the HTML file.
- Get a free API key from TMDB.
- Replace
API_KEYin the script section with your own TMDB API key. - Open the HTML file in any modern web browser on mobile or desktop.
- Search input & button: Allows users to enter a movie title.
- Results container: Displays search results with thumbnails and provider links.
const API_KEY = 'YOUR_API_KEY_HERE'; // Replace with your TMDB key
const BASE_URL = 'https://api.themoviedb.org/3';searchButton.addEventListener('click', searchContent);
searchInput.addEventListener('keypress', (event) => {
if(event.key === 'Enter') searchContent();
});Allows users to trigger a search by clicking the button or pressing Enter.
- Fetches movie data from TMDB based on search input
- Sorts by release date (newest first)
- Limits results to 20 items
- Calls
displayContentDetails()for each movie
- Fetches provider data for each movie
- Filters for Indian streaming providers
- Displays title, year, rating, overview, poster, and "Watch on" links
- Maps known provider names to their respective search URLs
- Returns HTML anchor elements pointing to those services
- No support for TV shows or regional filtering outside India
- No pagination; limited to first 20 search results
- Relies on TMDB "flatrate" provider data (may not be always up to date)
- Movie details & Runtime are not displayed to make page load fast with essential info
- Requires valid TMDB API key to function
- Add support for TV shows and series
- Add pagination or infinite scroll
- Include movie details like cast, runtime and genres
- Cache results locally for performance
- Enhance UI with loading spinners or themes
- This project uses TMDB API under their terms of use.
- Icons and streaming links are inferred using open provider names.
- No backend required.
Enjoy exploring your favorite movies and where to watch them!