The Netflix-like Streaming Platform API is a comprehensive RESTful web service that emulates the features of popular OTT (Over-The-Top) streaming platforms. It provides a wide range of functionalities, including user authentication, password reset via email, movie recommendations, movie search, watchlist management, and user streaming history. In addition, the API manages user subscriptions and access to streaming content, ensuring that media streaming is available exclusively to subscribed users.
https://netflix-api-g992.onrender.com
All the data to be sent in JSON format in request body.
POST https://netflix-api-g992.onrender.com/login
POST https://netflix-api-g992.onrender.com/register
GET https://netflix-api-g992.onrender.com/logout
POST https://netflix-api-g992.onrender.com/forgotpassword
GET https://netflix-api-g992.onrender.com/profile
Route | description |
---|---|
Login | Required. Email And Password |
Register | Required. Username,Email and Password |
Forgot Password | Required. Email |
All these routes requires that the user is first logged in. Otherwise it does not allow to access the data.
GET https://netflix-api-g992.onrender.com/media
GET https://netflix-api-g992.onrender.com/media/${mediaid}
GET https://netflix-api-g992.onrender.com/media/watchlist/${userid}
GET https://netflix-api-g992.onrender.com/media/watchlist/${mediaid}/${userid}
POST https://netflix-api-g992.onrender.com/media/watchlist/${mediaid}/${userid}
POST https://netflix-api-g992.onrender.com/media/stream/${mediaid}/${userid}
GET https://netflix-api-g992.onrender.com/media/history/${userid}
POST https://netflix-api-g992.onrender.com/media/history/${userid}/${mediaid}
GET https://netflix-api-g992.onrender.com/media/search/${search}
GET https://netflix-api-g992.onrender.com/media/recommend/${userid}
Parameter | Type | Description |
---|---|---|
userid |
string |
Required. Id of User to fetch |
mediaid |
string |
Required. Id of the specific media to fetch |
- The watchlist routes and the media streaming can only be accessed if user is logged in and Subscribed
- In watchlist route the POST request is for adding in the watchlist and GET request for removing from the watchlist
POST https://netflix-api-g992.onrender.com/payment
Server: Node, Express
DataBase: MongoDB
Clone the project
git clone https://github.com/Xaverick/NetflixAPI.git
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
nodemon app.js