Giter Club home page Giter Club logo

apinah's Introduction

LK21 API

cover-banner

Unofficial LK21 (LayarKaca21) and NontonDrama APIs for streaming movies, animations, and series with Indonesian subtitles. LK21 API is perfect for improving your coding skills or just having fun exploring movies from around the world. Best of all, you can enjoy this API without any financial commitment!

Table of Contents

Getting Started

Installation

Step 1: Clone this repository.

git clone https://github.com/febriadj/lk21-api.git

Step 2: Rename the .env.example file to .env and complete the required environment variables.

Step 3: Install dependencies.

npm install

Step 4: Enable Git hooks and compile the TypeScript code.

npm run prepare && npm run build

Step 5: Run the project.

npm start

Environment Variables

The target URLs have the potential to change at any time because their servers are extremely vulnerable to being blocked. Therefore, I declared the target URLs in the Node environment variables.

# LK21 (LayarKaca21) URL
LK21_URL = https://tv.lk21official.live

# NontonDrama URL
ND_URL = https://tv.nontondrama.lol

Reference

List of Endpoints

Request Response Pagination
GET /movies Recent upload movies
GET /movies/{movieId} The movie details -
GET /popular/movies Popular movies
GET /series Recent upload series
GET /series/{seriesId} The series details -
GET /popular/series Popular series
GET /search/{movieOrSeriesTitle} Searched movies or series -
GET /genres A set of genres -
GET /countries A set of countries -
GET /years A set of years -

See more LK21 API endpoints.

Pagination

Some endpoints support a way of paging the dataset, taking a page as query parameters:

GET /popular/movies?page=5

FAQ

What is LK21?

LK21 (LayarKaca21) is a large-scale Indonesian streaming service that offers you to watch movies, animations, and series with Indonesian subtitles. This is a popular #1 streaming service in Indonesia because LK21 serves thousands of movies from around the world such as the US, Japan, Korea, and more for free.

Is this the Official LK21 API?

NO, it's unofficial LK21 API, I fetch their movies by web scraping with Node.js, @axios, and @cheerio.

What is NontonDrama?

NontonDrama is another source used by LK21 to serve movie series with updated episodes.

Streaming URLs is blocked and not working

To display the movie streaming sources in the <iframe> you need to run your application on HTTPS. For security reasons, LK21 prohibits loading of the resources in the <iframe> outside of their domain.

Showcase

Feel free to showcase your projects here by creating a pull request.

List of projects using LK21 API:

  • ?

License

Distributed under the MIT License.

Disclamer

The movies contained in this API are obtained from the original LK21 and NontonDrama websites by web scraping. Developers using this API must follow the applicable regulations by mentioning this project or the official owner in their projects and are prohibited from abusing this API for personal benefits.

(Back to Top)

apinah's People

Contributors

febriadj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.