majidapi
Version:
Majid API - WebServices
1,584 lines (1,222 loc) • 32.3 kB
Markdown
# MajidAPI - وب سرویس مجید
# نصب
```bash
npm i majidapi --save
```
# [en documents](README.md)
# [وبسایت](https://majidapi.ir/)
## [تلگرام](https://t.me/majidapi)
#### [پشتیبانی تلگرام](https://t.me/MajidRajabi1379)
## لیست وب سرویس ها:
- **[اینستاگرام](#اینستاگرام)**
- **[یوتیوب](#یوتیوب)**
- **[فیسبوک](#فیسبوک)**
- **[جی پی تی](#جی-پی-تی)**
- **[جی پی تی با قابلیت ذخیره پیام](#جی-پی-تی-با-قابلیت-ذخیره-پیام)**
- **[کوپایلت](#کوپایلت)**
- **[متن به گفتار](#متن-به-گفتار)**
- **[گفتار به متن](#گفتار-به-متن)**
- **[ساخت عکس با هوش مصنوعی](#ساخت-عکس-با-هوش-مصنوعی)**
- **[تیک تاک](#تیک-تاک)**
- **[پینترست](#پینترست)**
- **[ترجمه گوگل](#ترجمه-گوگل)**
- **[مزاحم یاب](#مزاحم-یاب)**
- **[ایمیل فیک](#ایمیل-فیک)**
- **[اسپاتیفای](#اسپاتیفای)**
- **[ساوندکلاود](#ساوندکلاود)**
- **[توییتر دانلودر](#توییتر-دانلودر)**
- **[لوگو](#لوگو)**
- **[ساخت کیوآرکد](#ساخت-کیوآرکد)**
- **[گوگل پلی](#گوگل-پلی)**
- **[استعلام شماره کارت](#استعلام-شماره-کارت)**
- **[دیجی کالا](#دیجی-کالا)**
- **[ترب](#ترب)**
- **[آخرین خبر](#آخرین-خبر)**
- **[فیلم و سریال فیلم ریل](#فیلم-و-سریال-فیلم-ریل)**
- **[ملودیفای](#ملودیفای)**
- **[بن بست](#بن-بست)**
- **[قیمت طلا](#قیمت-طلا)**
- **[قیمت موبایل](#قیمت-موبایل)**
- **[قیمت خودرو](#قیمت-خودرو)**
- **[نرخ ارز دیجیتال بیت پین](#نرخ-ارز-دیجیتال-بیت-پین)**
- **[نرخ ارز دیجیتال نوبیتکس](#نرخ-ارز-دیجیتال-نوبیتکس)**
- **[فال](#فال)**
- **[جوک](#جوک)**
- **[آپارات](#آپارات)**
- **[آب و هوا](#آب-و-هوا)**
- **[مایکت](#مایکت)**
- **[کپچا](#کپچا)**
- **[موپن](#موپن)**
- **[لغت نامه دهخدا](#لغت-نامه-دهخدا)**
- **[فرهنگ نام ها](#فرهنگ-نام-ها)**
- **[استخاره](#استخاره)**
- **[تاریخ و ساعت](#تاریخ-و-ساعت)**
- **[اطلاعات دارویی](#اطلاعات-دارویی)**
- **[اخبار کریپتو](#اخبار-کریپتو)**
- **[فارسروید](#فارسروید)**
- **[تعبیر خواب](#تعبیر-خواب)**
- **[آشپزی](#آشپزی)**
- **[اطلاعات تاریخ تولد](#اطلاعات-تاریخ-تولد)**
- **[فوتبال360](#فوتبال360)**
- **[فونت](#فونت)**
- **[اطلاعات عمومی](#اطلاعات-عمومی)**
- **[تبدیل پینگلیش به فارسی](#تبدیل-پینگلیش-به-فارسی)**
- **[فوتبالی](#فوتبالی)**
- **[حذف پس زمینه عکس](#حذف-پس-زمینه-عکس)**
- **[حدیث](#حدیث)**
- **[سخن بزرگان](#سخن-بزرگان)**
- **[پ ن پ](#پ-ن-پ)**
- **[بیو](#بیو)**
- **[دیوان حافظ](#دیوان-حافظ)**
- **[پروکسی لیست](#پروکسی-لیست)**
- **[داستان](#داستان)**
- **[اسکرین شات از وبسایت](#اسکرین-شات-از-وبسایت)**
-**[جمله انگیزشی](#جمله-انگیزشی)**
- **[اعتبارسنجی کد ملی](#اعتبارسنجی-کد-ملی)**
- **[اوقات شرعی](#اوقات-شرعی)**
- **[ویکی پدیا](#ویکی-پدیا)**
- **[اس ام اس بمبر](#اس-ام-اس-بمبر)**
- **[دانستنی](#دانستنی)**
- **[تار کردن پس زمینه عکس](#تار-کردن-پس-زمینه-عکس)**
- **[پلاک یاب](#پلاک-یاب)**
- **[متن به ویدیو](#متن-به-ویدیو)**
- **[فاز سنگین](#فاز-سنگین)**
- **[فال قهوه](#فال-قهوه)**
- **[جوک الکی مثلا](#جوک-الکی-مثلا)**
- **[دیالوگ](#دیالوگ)**
- **[چک کردن فیلتر بودن سایت](#چک-کردن-فیلتر-بودن-سایت)**
- **[چیستان](#چیستان)**
- **[فیلم و سریال فیلمزی](#فیلم-و-سریال-فیلمزی)**
- **[اطلاعات دارویی 2](#اطلاعات-دارویی-2)**
- **[شاخص توده بدنی](#شاخص-توده-بدنی)**
- **[کافه بازار](#کافه-بازار)**
- **[تشخیص زبان متن](#تشخیص-زبان-متن)**
- **[عکس پروفایل](#عکس-پروفایل)**
- **[استخراج متن از عکس](#استخراج-متن-از-عکس)**
- **[خلاصه سازی متن فارسی](#خلاصه-سازی-متن-فارسی)**
- **[اخبار](#اخبار)**
- **[تحلیل سهام بورس با هوش مصنوعی](#تحلیل-سهام-بورس-با-هوش-مصنوعی)**
- **[تحلیل رمزارز با هوش مصنوعی](#تحلیل-رمزارز-با-هوش-مصنوعی)**
- **[رهگیری مرسوله پستی](#رهگیری-مرسوله-پستی)**
- **[قانون](#قانون)**
- **[استعلام اینماد](#استعلام-اینماد)**
## اینستاگرام
```javascript
const {instagram} = require("majidapi/modules/social");
// دانلود با لینک
instagram({
method: "download",
url: "(Post-Reels-Story-Profile-Highlight) URL"
}).then(console.log);
// دریافت پروفایل
instagram({
method: "profile",
username: "instagram"
}).then(console.log);
// دریافت استوری ها
instagram({
method: "stories",
username: "instagram"
}).then(console.log);
// دریافت هایلایت ها
instagram({
method: "highlights",
username: "instagram"
}).then(console.log);
// دریافت هایلایت
instagram({
method: "highlight",
highlightId: "highlight:id"
}).then(console.log);
```
## جی پی تی
```javascript
const {gpt} = require("majidapi/modules/ai");
// ورژن 3
gpt({
model: "3",
question: "hello how are you?"
}).then(console.log);
// ورژن 3.5 turbo
gpt({
model: "3.5",
question: "hello how are you?"
}).then(console.log);
// شیطانی
gpt({
model: "evil",
question: "hello how are you?"
}).then(console.log);
```
## جی پی تی با قابلیت ذخیره پیام
```javascript
const {gptSaveChat} = require("majidapi/modules/ai");
// ساخت چت جدید (دریافت چت آی دی)
gptSaveChat({
method: "newChat"
}).then(console.log); // چت آی دی را بر می گرداند
// چت کردن
gptSaveChat({
method: "chat",
chatId: "چت آی دی از متد قبلی",
question: "سلام خوبی؟"
}).then(console.log);
```
## متن به گفتار
```javascript
const {tts} = require("majidapi/modules/tools");
// متن به گفتار
tts({
gender: "woman", // woman - man
text: "Your text ..."
}).then(console.log);
```
## تیک تاک
```javascript
const {tiktok} = require("majidapi/modules/social");
// دانلود
tiktok({
method: "download",
url: "TikTok url ..."
}).then(console.log);
// پروفایل
tiktok({
method: "profile",
username: "Username of TikTok user"
}).then(console.log);
```
## مزاحم یاب
```javascript
const {numberBook} = require("majidapi/modules/inquiry");
// شماره یاب
numberBook({
phoneNumber: "mobile number"
}).then(console.log);
```
## استعلام شماره کارت
```javascript
const {card, sheba} = require("majidapi/modules/inquiry");
// استعلام شماره کارت
card({
cardNumber: "16-digit card number"
}).then(console.log);
// استعلام شماره شبا
sheba({
sheba: "IR000000000000000000000000"
}).then(console.log);
```
## دیجی کالا
```javascript
const {digikala} = require("majidapi/modules/shopping");
// صفحه اصلی
digikala({
method: "home"
}).then(console.log);
// دسته بندی ها
digikala({
method: "categories"
}).then(console.log);
// دریافت دسته بندی
digikala({
method: "category",
categoryId: "1",
page: 1
}).then(console.log);
// جستجو
digikala({
method: "search",
search: "s25", // product name
page: 1
}).then(console.log);
// مشخصات محصول
digikala({
method: "product",
productId: "Product ID"
}).then(console.log);
```
## ترب
```javascript
const {torob} = require("majidapi/modules/shopping");
// دسته بندی ها
torob({
method: "categories"
}).then(console.log);
// دریافت دسته بندی
torob({
method: "category",
categoryId: "1",
page: 1
}).then(console.log);
// جستجو
torob({
method: "search",
search: "s25", // product name
page: 1
}).then(console.log);
// مشخصات محصول
torob({
method: "product",
productId: "Product ID"
}).then(console.log);
```
## آخرین خبر
```javascript
const {akharinKhabar} = require("majidapi/modules/news");
// دسته بندی ها
akharinKhabar({
method: "categories"
}).then(console.log);
// دریافت دسته بندی
akharinKhabar({
method: "category",
categoryId: "0",
page: 1
}).then(console.log);
// آخرین اخبار
akharinKhabar({
method: "latest",
page: 1
}).then(console.log);
// شرح خبر
akharinKhabar({
method: "details",
newsId: "News ID"
}).then(console.log);
```
## فیلم و سریال فیلم ریل
```javascript
const {filmRail} = require("majidapi/modules/movie");
// صفحه اصلی
filmRail({
method: "home"
}).then(console.log);
// دریافت لیست فیلم ها
filmRail({
method: "movies",
page: 1
}).then(console.log);
// دریافت لیست سریال ها
filmRail({
method: "series",
page: 1
}).then(console.log);
// جستجوی فیلم و سریال
filmRail({
method: "search",
search: "The name of the movie or series"
}).then(console.log);
// لیست ژانر ها
filmRail({
method: "genres"
}).then(console.log);
// دریافت بر اساس ژانر
filmRail({
method: "genre",
id: "Genre ID",
page: 1
}).then(console.log);
// اطلاعات بیشتر و دانلود
filmRail({
method: "details",
id: "Movie ID"
}).then(console.log);
```
## ملودیفای
```javascript
const {melodify} = require("majidapi/modules/music");
// آخرین
melodify({
method: "newest",
page: 1
}).then(console.log);
// میکس ها
melodify({
method: "mix",
page: 1
}).then(console.log);
// محبوب ها
melodify({
method: "popular",
page: 1
}).then(console.log);
// ترند های اینستاگرام
melodify({
method: "instatrend",
page: 1
}).then(console.log);
// جستجو
melodify({
method: "search",
search: "song name",
page: 1
}).then(console.log);
// دانلود
melodify({
method: "download",
trackId: "Track ID",
out: "track.mp3"
}).then(console.log);
```
## بن بست
```javascript
const {bonbast} = require("majidapi/modules/price");
// نرخ ارز
bonbast().then(console.log);
```
## قیمت طلا
```javascript
const {gold} = require("majidapi/modules/price");
// قیمت طلا
gold().then(console.log);
```
## قیمت موبایل
```javascript
const {mobile} = require("majidapi/modules/price");
// قیمت موبایل
mobile({
model: "s25"
}).then(console.log);
```
## ایمیل فیک
```javascript
const {tempMail} = require("majidapi/modules/tools");
// ساخت ایمیل جدید
tempMail({
method: "new"
}).then(console.log);
// دریافت ایمیل ها
tempMail({
method: "messages",
email: "The email address you got from the 'new' method"
}).then(console.log);
```
## اسپاتیفای
```javascript
const {spotify} = require("majidapi/modules/music");
// دانلود از اسپاتیفای
spotify({
url: "https://open.spotify.com/track/...",
out: "track.mp3"
}).then(console.log);
```
## قیمت خودرو
```javascript
const {car} = require("majidapi/modules/price");
// لیست قیمت
car({
method: "list"
}).then(console.log);
// مشخصات
car({
method: "info",
id: "Car ID"
}).then(console.log);
// لیست اخبار
car({
method: "news",
page: 1
}).then(console.log);
// شرح خبر
car({
method: "news-info",
newsId: "شناسه خبر"
}).then(console.log);
```
## نرخ ارز دیجیتال بیت پین
```javascript
const {bitpin} = require("majidapi/modules/price");
// دریافت نرخ ها
bitpin().then(console.log);
```
## ساخت کیوآرکد
```javascript
const {qrcode} = require("majidapi/modules/tools");
// ساخت کیوآرکد
qrcode({
text: "مجید",
size: 512,
out: "qrcode.png"
}).then(console.log);
```
## پینترست
```javascript
const {pinterest} = require("majidapi/modules/social");
// جستجو
pinterest({
method: "search",
search: "Mobile"
}).then(console.log);
// دانلود
pinterest({
method: "download",
url: "https://pin.it/..."
}).then(console.log);
```
## ترجمه گوگل
```javascript
const {googleTranslate} = require("majidapi/modules/tools");
// ترجمه
googleTranslate({
text: "سلام",
to: "en"
}).then(console.log);
```
## فال
```javascript
const {fal} = require("majidapi/modules/fun");
// فال
fal({
type: "text" // text یا photo
}).then(console.log);
```
## جوک
```javascript
const {joke} = require("majidapi/modules/fun");
// جوک
joke().then(console.log);
```
## لوگو
```javascript
const {ePhoto} = require("majidapi/modules/image");
// ساخت لوگو
ePhoto({
text: "MajidAPI",
out: "logo.jpg"
}).then(console.log);
```
## توییتر دانلودر
```javascript
const {x} = require("majidapi/modules/social");
// دانلود
x({
videoUrl: "x.com video url"
}).then(console.log);
```
## گوگل پلی
```javascript
const {googlePlay} = require("majidapi/modules/googlePlay");
// جستجو
googlePlay({
method: "search",
search: "vpn"
}).then(console.log);
// دانلود
googlePlay({
method: "download",
search: "Google play app url"
}).then(console.log);
```
## آپارات
```javascript
const {aparat} = require("majidapi/modules/vide");
// صفحه اصلی
aparat({
method: "home"
}).then(console.log);
// دسته بندی ها
aparat({
method: "categories"
}).then(console.log);
// دریافت دسته بندی
aparat({
method: "category",
catid: "Category ID",
page: 1
}).then(console.log);
// جستجو
aparat({
method: "search",
search: "Music"
}).then(console.log);
// اطلاعات بیشتر و دانلود
aparat({
method: "download",
uid: "Video ID (uid)"
}).then(console.log);
```
## آب و هوا
```javascript
const {weather} = require("majidapi/modules/tools");
// هواشناسی
weather({
city: "tehran"
}).then(console.log);
```
## مایکت
```javascript
const {myket} = require("majidapi/modules/myket");
// جستجو
myket({
method: "search",
search: "App Name"
}).then(console.log);
// مشخصات و دانلود
myket({
method: "info",
packageName: "App Package Name"
}).then(console.log);
```
## کپچا
```javascript
const {captcha} = require("majidapi/modules/tools");
// تولید کپچا
captcha({
length: 10
}).then(console.log);
```
## ساوندکلاود
```javascript
const {soundCloud} = require("majidapi/modules/music");
// جستجو
soundCloud({
method: "search",
search: "Shayea"
}).then(console.log);
// مشخصات
soundCloud({
method: "info",
url: "https://soundcloud.com/aslistream/too-ragi"
}).then(console.log);
// دانلود
soundCloud({
method: "download",
url: "https://soundcloud.com/aslistream/too-ragi"
}).then(console.log);
```
## موپن
```javascript
const {mopon} = require("majidapi/modules/shopping");
// صفحه اصلی
mopon({
method: "home"
}).then(console.log);
// دسته بندی ها
mopon({
method: "categories"
}).then(console.log);
// دریافت دسته بندی
mopon({
method: "category",
id: "zQoGQ",
page: 1
}).then(console.log);
// جستجو
mopon({
method: "search",
search: "دیجی کالا",
page: 1
}).then(console.log);
// مشخصات
mopon({
method: "info",
id: "brkmG"
}).then(console.log);
```
## لغت نامه دهخدا
```javascript
const {dehkhoda} = require("majidapi/modules/dictionary");
// دهخدا
dehkhoda({
word: "مجید"
}).then(console.log);
```
## فرهنگ نام ها
```javascript
const {names} = require("majidapi/modules/dictionary");
// فرهنگ نام ها
names({
name: "مجید"
}).then(console.log);
```
## استخاره
```javascript
const {estekhareh} = require("majidapi/modules/fun");
// استخاره
estekhareh().then(console.log);
```
## تاریخ و ساعت
```javascript
const {dateTime} = require("majidapi/modules/tools");
// تاریخ و ساعت
dateTime({
timeZone: "Asia/Tehran"
}).then(console.log);
```
## اطلاعات دارویی
```javascript
const {darooyab} = require("majidapi/modules/drug");
// جستجو
darooyab({
method: "search",
search: "ملاتونین"
}).then(console.log);
// مشخصات
darooyab({
method: "info",
url: "The link you got from the search method"
}).then(console.log);
```
## اخبار کریپتو
```javascript
const {crypto} = require("majidapi/modules/news");
// لیست
crypto({
method: "list",
page: 1
}).then(console.log);
// شرح خبر
crypto({
method: "info",
link: "The link you got from the search method"
}).then(console.log);
```
## ساخت عکس با هوش مصنوعی
```javascript
const {image} = require("majidapi/modules/ai");
// تبدیل متن به عکس
image({
prompt: "a cute cat"
}).then(console.log);
```
## فارسروید
```javascript
const {farsroid} = require("majidapi/modules/farsroid");
// جستجو
farsroid({
method: "search",
search: "AI",
page: 1
}).then(console.log);
// دانلود
farsroid({
method: "download",
url: "The url you got from the previous method"
}).then(console.log);
```
## تعبیر خواب
```javascript
const {tabirKhab} = require("majidapi/modules/fun");
// تعبیر خواب
tabirKhab({
word: "مار"
}).then(console.log);
```
## آشپزی
```javascript
const {cooking} = require("majidapi/modules/fun");
// صفحه اصلی
cooking({
method: "home",
page: 1
}).then(console.log);
// جستجو
cooking({
method: "search",
search: "سوخاری"
}).then(console.log);
// اطلاعات بیشتر
cooking({
method: "info",
url: "The url you got from the previous method"
}).then(console.log);
```
## گفتار به متن
```javascript
const {stt} = require("majidapi/modules/ai");
// تبدیل ویس به متن
stt({
audioURL: "MP3 URL ..."
}).then(console.log);
```
## اطلاعات تاریخ تولد
```javascript
const {birthDate} = require("majidapi/modules/fun");
// اطلاعات تاریخ تولد
birthDate({
year: "1380",
month: "01",
day: "01"
}).then(console.log);
```
## فیسبوک
```javascript
const {facebook} = require("majidapi/modules/social");
// دانلود ویدیو
facebook({
url: "The facebook video url"
}).then(console.log);
```
## فوتبال360
```javascript
const {football360} = require("majidapi/modules/sport");
// لیست مسابقات
football360({
method: "competitions"
}).then(console.log);
// اطلاعات مسابقه
football360({
method: "competition",
id: "The ID you got from the previous method"
}).then(console.log);
// پست ها
football360({
method: "posts",
page: 1
}).then(console.log);
// پست
football360({
method: "post",
id: "The ID you got from the previous method"
}).then(console.log);
// نتایج زنده
football360({
method: "live"
}).then(console.log);
```
## فونت
```javascript
const {font} = require("majidapi/modules/fun");
// ساخت فونت
font({
lang: "en", // en | fa
text: "MajidAPI"
}).then(console.log);
```
## اطلاعات عمومی
```javascript
const {generalInformation} = require("majidapi/modules/fun");
// دانستنی
generalInformation().then(console.log);
```
## تبدیل پینگلیش به فارسی
```javascript
const {pinglish2farsi} = require("majidapi/modules/tools");
// تبدیل فینگلیش به فارسی
pinglish2farsi({
text: "Salam khoobi?"
}).then(console.log);
```
## فوتبالی
```javascript
const {footballi} = require("majidapi/modules/sport");
// لیست مسابقات
footballi({
method: "competitions"
}).then(console.log);
// دریافت مسایقه
footballi({
method: "competition",
id: "The ID you got from the previous method"
}).then(console.log);
// لیست اخبار
footballi({
method: "news",
cusrot: ""
}).then(console.log);
// شرح خبر
footballi({
method: "info",
id: "The ID you got from the previous method"
}).then(console.log);
```
## حذف پس زمینه عکس
```javascript
const {removeBackground} = require("majidapi/modules/image");
// حذف پس زمینه
removeBackground({
imageURL: "The photo url",
out: "rm-bg.jpg"
}).then(console.log);
```
## حدیث
```javascript
const {hadith} = require("majidapi/modules/fun");
// حدیث
hadith().then(console.log);
```
## سخن بزرگان
```javascript
const {sokhan} = require("majidapi/modules/fun");
// سخن بزرگان
sokhan().then(console.log);
```
## پ ن پ
```javascript
const {panapa} = require("majidapi/modules/fun");
// پ ن پ
panapa().then(console.log);
```
## بیو
```javascript
const {bio} = require("majidapi/modules/fun");
// بیو فارسی
bio().then(console.log);
```
## دیوان حافظ
```javascript
const {divanHafez} = require("majidapi/modules/fun");
// جستجو
divanHafez({
search: "الا یا"
}).then(console.log);
// بر اساس شماره غزل
divanHafez({
no: 1 // 1 - 495
}).then(console.log);
```
## پروکسی لیست
```javascript
const {proxyList} = require("majidapi/modules/tools");
// لیست
proxyList({
protocol: "socks5" // socks5 - socks4
}).then(console.log);
```
## داستان
```javascript
const {story} = require("majidapi/modules/fun");
// Story
story().then(console.log);
```
## اسکرین شات از وبسایت
```javascript
const {screenShot} = require("majidapi/modules/tools");
// اسکرین شات
screenShot({
type: "photo", // photo | url
url: "https://majidapi.ir",
width: 1280,
height: 2000,
out: "shot.jpg"
}).then(console.log);
```
## جمله انگیزشی
```javascript
const {angizeshi} = require("majidapi/modules/fun");
// جمله انگیزشی
angizeshi().then(console.log);
```
## اعتبارسنجی کد ملی
```javascript
const {nationalCode} = require("majidapi/modules/tools");
// اعتبارسنجی
nationalCode({
code: "کد ملی"
}).then(console.log);
```
## نرخ ارز دیجیتال نوبیتکس
```javascript
const {nobitex} = require("majidapi/modules/price");
// لیست همه ارز ها
nobitex().then(console.log);
// دریافت ارز
nobitex({
currency: "btc"
}).then(console.log);
// چارت
nobitex({
method: "chart",
symbol: "BTCIRT",
minutes: 60, // چند دقیقه قبل
resolution: 60, // تایم فریم
countBack: 100 // تعداد
}).then(console.log);
```
## اوقات شرعی
```javascript
const {owghat} = require("majidapi/modules/tools");
// اوقات شرعی
owghat({
city: "tehran" // نام شهر به لاتین
}).then(console.log);
```
## ویکی پدیا
```javascript
const {Wikipedia} = require("majidapi/modules/Wikipedia");
// پر بازدید ها
Wikipedia({
acion: "featured"
}).then(console.log);
// جستجو
Wikipedia({
acion: "search",
search: "ایران",
page: 1
}).then(console.log);
// اطلاعات بیشتر
Wikipedia({
acion: "info",
title: "ایران"
}).then(console.log);
```
## اس ام اس بمبر
```javascript
const {smsBomber} = require("majidapi/modules/tools");
// اس ام اس بمبر
smsBomber({
phone: "09..."
}).then(console.log);
```
## دانستنی
```javascript
const {danestani} = require("majidapi/modules/fun");
// دانستنی
danestani().then(console.log);
```
## تار کردن پس زمینه عکس
```javascript
const {blurBackground} = require("majidapi/modules/image");
// تار کردن پس زمینه
blurBackground({
imageURL: "jpg | jpeg | png"
}).then(console.log);
```
## پلاک یاب
```javascript
const {pelakYab} = require("majidapi/modules/tools");
// بر اساس اسم شهر
pelakYab({
method: "city",
city: "تهران"
}).then(console.log);
// بر اساس شماره پلاک
pelakYab({
method: "num",
num: 10
}).then(console.log);
```
## متن به ویدیو
```javascript
const {video} = require("majidapi/modules/ai");
// ساخت ویدیو کوتاه با هوش مصنوعی
video({
prompt: "گربه بازیگوش"
}).then(console.log);
```
## فاز سنگین
```javascript
const {fazeSangin} = require("majidapi/modules/fun");
// فاز سنگین
fazeSangin().then(console.log);
```
## فال قهوه
```javascript
const {falCoffee} = require("majidapi/modules/fun");
// فال قهوه
falCoffee().then(console.log);
```
## کوپایلت
```javascript
const {copilot} = require("majidapi/modules/ai");
// چت
copilot({
question: "خوبی؟"
}).then(console.log);
```
## جوک الکی مثلا
```javascript
const {alakiMasalan} = require("majidapi/modules/fun");
// الکی مثلا
alakiMasalan().then(console.log);
```
## دیالوگ
```javascript
const {dialog} = require("majidapi/modules/fun");
// دیالوگ ماندگار
dialog().then(console.log);
```
## چک کردن فیلتر بودن سایت
```javascript
const {checkFilter} = require("majidapi/modules/tools");
// چک کردن
checkFilter({
url: "https://www.instagram.com"
}).then(console.log);
```
## چیستان
```javascript
const {chistan} = require("majidapi/modules/fun");
// چیستان
chistan().then(console.log);
```
## فیلم و سریال فیلمزی
```javascript
const {filmzi} = require("majidapi/modules/movie");
// صغحه اصلی
filmzi({
method: "home"
}).then(console.log);
// پر بازدید ها
filmzi({
method: "featured"
}).then(console.log);
// لیست ژانر ها
filmzi({
method: "genres"
}).then(console.log);
// دریافت بر اساس ژانر
filmzi({
method: "genre",
id: "شناسه ژانر",
pge: 1
}).then(console.log);
// جستجوی فیلم و سریال
filmzi({
method: "search",
search: "جوکر",
page: 1
}).then(console.log);
//مشخصات و دانلود
filmzi({
method: "details",
id: "شناسه فیلم"
}).then(console.log);
```
## اطلاعات دارویی 2
```javascript
const {daroo} = require("majidapi/modules/drug");
// اطلاعات دارویی
daroo({
name: "Acetaminophen"
}).then(console.log);
```
## شاخص توده بدنی
```javascript
const {bmi} = require("majidapi/modules/tools");
// شاخص توده بدنی
bmi({
height: 175,
weight: 75
}).then(console.log);
```
## کافه بازار
```javascript
const {bazar} = require("majidapi/modules/bazar");
// جستجوی برنامه و بازی
bazar({
method: "search",
search: "نام برنامه یا بازی"
}).then(console.log);
// مشخصات
bazar({
method: "info",
packageName: "نام پکیج"
}).then(console.log);
// دانلود
bazar({
method: "download",
packageName: "نام پکیج"
}).then(console.log);
```
## تشخیص زبان متن
```javascript
const {languageDetector} = require("majidapi/modules/tools");
// تشخیص زبان
languageDetector({
text: "سلام خوبی؟"
}).then(console.log);
```
## یوتیوب
```javascript
const {youtube} = require("majidapi/modules/social");
// دانلود از یوتیوب
youtube({
url: "https://www.youtube.com/watch?v=AbH-xGyQ_XA&list=RDAbH-xGyQ_XA"
}).then(console.log);
```
## عکس پروفایل
```javascript
const {profilePhoto} = require("majidapi/modules/image");
// عکس پروفایل رندوم
profilePhoto({
method: "random"
}).then(console.log);
// آخرین تصاویر
profilePhoto({
method: "latest",
page: 1
}).then(console.log);
// دسته بندی ها
profilePhoto({
method: "categories"
}).then(console.log);
// دریافت بر اساس دسته بندی
profilePhoto({
method: "category",
category: "عاشقانه",
page: 1
}).then(console.log);
```
## استخراج متن از عکس
```javascript
const {ocr} = require("majidapi/modules/image");
// استخراج متن از عکس
ocr({
lang: "en", // en یا fa یا en+fa
imageUrl: "your image url"
}).then(console.log);
```
## خلاصه سازی متن فارسی
```javascript
const {summarize} = require("majidapi/modules/ai");
// خلاصه سازی متن
summarize({
text: "متن فارسی"
}).then(console.log);
```
## اخبار
```javascript
const {news} = require("majidapi/modules/news");
// لیست اخبار
news({
method: "list",
page: 1
}).then(console.log);
// شرح خبر
news({
method: "info",
id: "شناسه خبر"
}).then(console.log);
```
## تحلیل سهام بورس با هوش مصنوعی
```javascript
const {bourse} = require("majidapi/modules/ai");
// تحلیل
bourse({
symbol: "وبملت"
}).then(console.log);
```
## تحلیل رمزارز با هوش مصنوعی
```javascript
const {crypto} = require("majidapi/modules/ai");
// تحلیل
crypto({
currency: "BTC",
lang: "fa" // fa | en
}).then(console.log);
```
## رهگیری مرسوله پستی
```javascript
const {postTracking} = require("majidapi/modules/tools");
// رهگیری مرسوله
postTracking({
code: "کد رهگیری",
out: "json" // json | text
}).then(console.log);
```
## قانون
```javascript
const {law} = require("majidapi/modules/tools");
// جستجو
law({
search: "سرقت"
}).then(console.log);
```
## استعلام اینماد
```javascript
const {enamad} = require("majidapi/modules/inquiry");
// استعلام
enamad({
domain: "digikala.com"
}).then(console.log);
```