Skip to content

The Netflix API is a RESTful service emulating core features of OTT platforms, such as user authentication, movie search, recommendations, streaming, watchlist management, and subscription handling.

Notifications You must be signed in to change notification settings

Xaverick/NetflixAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netflix API

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.

API Reference

Base URL

https://netflix-api-g992.onrender.com

User Routes

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

Media Routes

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

Note:

  1. The watchlist routes and the media streaming can only be accessed if user is logged in and Subscribed
  2. In watchlist route the POST request is for adding in the watchlist and GET request for removing from the watchlist

Subscription Route

POST https://netflix-api-g992.onrender.com/payment

Tech Stack

Server: Node, Express

DataBase: MongoDB

Run Locally

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

About

The Netflix API is a RESTful service emulating core features of OTT platforms, such as user authentication, movie search, recommendations, streaming, watchlist management, and subscription handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published