To Install the moviex
module, open a console and write the code below.
For npm
npm i moviex
For Yarn
yarn add moviex
For CommonJS
const moviex = require("moviex");
For ES6
import moviex from "moviex";
moviex.setToken("API Token")
// Your API Token, To Get Token Key https://discord.gg/luppux
await moviex.search("Naruto")
// Movie Or Series Name.
await moviex.genres("anime")
// Genres; "random","anime","horror","adventure","animation","action","comedy" and "drama".
await moviex.status()
// Shows API Status.
const moviex = require("moviex");
moviex.setToken("API TOKEN");
const random = async function(){
let response = await moviex.genres("random");
console.log(response);
}
random();
For API Requests;
// API Token Is 'Bearer Token'.
Base URL; https://api-moviex.vercel.app
Genres URL; https://api-moviex.vercel.app/genres/:type
Search URL; https://api-moviex.vercel.app/search/:name
Status URL; https://api-moviex.vercel.app/status
Example Output;
{
name: 'Darling in the Franxx',
url: 'https://www.imdb.com/title/tt7865090',
plot: 'In a future world where humanity has been driven to endangerment by giant beasts, a strike force is assembled to destroy the monsters and save the world.',
date: 2018,
rate: 7.3,
genres: [ 'animation', 'action', 'drama', 'romance', 'sciFi' ],
type: 'series',
banner: 'https://m.media-amazon.com/images/M/MV5BZGVlY2ZhM2ItMWIwZC00YjU0LWJjNjAtZGVlNWJkM2JmZjhmXkEyXkFqcGdeQXVyMzgxODM4NjM@._V1_.jpg',
writers: 'Naotaka Hayashi,Joel Bergen,Hiroshi Seko,Rino Yamazaki,Masahiko Ôtsuka,Atsushi Nishigori',
runtime: '24m'
}