wpu-open-api
v1.0.1
Published
Wpu OpenApi Package
Downloads
2
Maintainers
Readme
WPU-OpenAPI
Official WPU-OpenAPI Package NPM
Get Started
Install Via NPM:
$ npm install wpu-open-api
Cara Menggunakan
const wpuopenapi = require('wpu-open-api');
/*
wpuopenapi.jenis-modul.nama-modul(params)
.then(res => console.log(res))
.catch(err => console.log(err))
*/
Film API
//Contoh!
wpuopenapi.apiFilm.bioskopcomingsoon()
.then(res => console.log(res))
.catch(err => console.log(err))
Output :
{
status: 200,
maintainer: 'Zahirrrr',
hasil: [
{
url: 'https://jadwalnonton.com/film/2021/old/',
title: 'OLD',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/old-21011500_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/snake-eyes/',
title: 'SNAKE EYES',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/snake-eyes-21011400_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/hard-hit/',
title: 'HARD HIT',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/hard-hit-21011200_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/the-boss-baby-family-business/',
title: 'THE BOSS BABY: FAMILY BUSINESS',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/the-boss-baby-family-business-21010900_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/escape-room-tournament-of-champions/',
title: 'ESCAPE ROOM: TOURNAMENT OF CHAMPIONS',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/escape-room-tournament-of-champions-21011100_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/space-jam-a-new-legacy/',
title: 'SPACE JAM: A NEW LEGACY',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/space-jam-a-new-legacy-21sjan_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/stillwater/',
title: 'STILLWATER',
img: 'https://www.jadwalnonton.com/data/images/movies/2021/stillwater-21010700_300x450.jpg'
},
{
url: 'https://jadwalnonton.com/film/2021/the-hitmans-wifes-bodyguard/',
title: "THE HITMAN'S WIFE'S BODYGUARD",
img: 'https://www.jadwalnonton.com/data/images/movies/2021/the-hitmans-wifes-bodyguard-18hbo2_300x450.jpg'
}
]
}
| nama modul | params | response | description | | :--- | :---------- | :--- | :--- | | bioskopcomingsoon | page | JSON | Mencari data film bioskop yang akan hadir | | animesearch | page && search | JSON | Mencari film anime dari web nekonime.vip |
Bmkg API
//Contoh!
wpuopenapi.apiBmkg.gempaterkini()
.then(res => console.log(res))
.catch(err => console.log(err))
Output :
{
status: 200,
maintainer: 'Zahirrrr',
hasil: [
{
waktu: '29 Agustus 2021, 07:37:30 WIB',
magnitudo: '4.2',
kedalaman: '10 km',
lokasi: '3.92 LS - 122.90 BT'
}
]
}
| nama modul | params | response | description | | :--- | :---------- | :--- | :--- | | gempaterkini | - | JSON | Menampilkan Data gempa terkini di Indonesia | | infoiklim | - | JSON | Menampilkan Gambar info iklim di Indonesia | | citrasatelit | - | JSON | Menampilkan Gambar citra satelit Indonesia | | prakiraangelombang | - | JSON | Menampilkan Gambar Prakiraan Gelombang di Indonesia | | prakiraanangin | - | JSON | Menampilkan Gambar Prakiraan Angin di Indonesia | | potensikebakaran | - | JSON | Menampilkan Gambar Potensi Kebakaran Hutan di Indonesia | | cuacapenerbangan | - | JSON | Menampilkan Data Cuaca Penerbangan di Indonesia |
Wallpaper API
//Contoh!
wpuopenapi.apiWallpaper.search('anime', '4')
.then(res => console.log(res))
.catch(err => console.log(err))
Output :
{
status: 200,
maintainer: 'Zahirrrr',
hasil: [
{
image: 'https://c4.wallpaperflare.com/wallpaper/450/718/555/anime-your-name-kimi-no-na-wa-wallpaper-preview.jpg',
judul: 'anime, Your Name, Kimi no Na Wa HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/914/26/575/fate-series-fate-apocrypha-anime-girls-saber-of-red-wallpaper-preview.jpg',
judul: 'yellow-haired anime character, Fate Series, Fate/Apocrypha, anime girls HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/45/141/247/studio-ghibli-spirited-away-chihiro-hayao-miyazaki-wallpaper-preview.jpg',
judul: 'Studio Ghibli, Spirited Away, Chihiro, Hayao Miyazaki, anime HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/819/499/757/haikyuu-anime-boys-hinata-shouyou-kageyama-tobio-wallpaper-preview.jpg',
judul: 'Haikyuu!!, anime boys, Hinata Shouyou, Kageyama Tobio HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/226/867/800/kimetsu-no-yaiba-kamado-tanjirō-anime-boys-hd-wallpaper-preview.jpg',
judul: 'Kimetsu no Yaiba, Kamado Tanjirō, anime boys HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/259/163/824/jujutsu-kaisen-anime-tv-series-hd-wallpaper-preview.jpg',
judul: 'Jujutsu Kaisen, anime tv series HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/894/346/573/shingeki-no-kyojin-mikasa-ackerman-anime-anime-girls-wallpaper-preview.jpg',
judul: 'brown-haired female anime character wallpaper, Shingeki no Kyojin HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/508/596/918/anime-demon-slayer-kimetsu-no-yaiba-shinobu-kochou-hd-wallpaper-preview.jpg',
judul: 'Anime, Demon Slayer: Kimetsu no Yaiba, Shinobu Kochou HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/1018/756/882/anime-neon-genesis-evangelion-wallpaper-preview.jpg',
judul: 'anime, Neon Genesis Evangelion, night, astronomy, star - space HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/719/114/325/anime-naruto-itachi-uchiha-wallpaper-preview.jpg',
judul: 'Anime, Naruto, Itachi Uchiha HD wallpaper'
},
{
image: 'https://c4.wallpaperflare.com/wallpaper/280/611/595/anime-violet-evergarden-violet-evergarden-character-wallpaper-preview.jpg',
judul: 'brown-haired female anime character, Violet Evergarden, Violet Evergarden (Character) HD wallpaper'
}
]
}
| nama modul | params | response | description | | :--- | :---------- | :--- | :--- | | wallpaper | search & page | JSON | Mencari gambar wallpaper dalam format JSON |
Kemdikbud API
//Contoh!
wpuopenapi.apiKemdikbud.kbbi('mobil')
.then(res => console.log(res))
.catch(err => console.log(err))
Output :
{
maintainer: 'Zahirrr',
lema: 'mo.bil1 ',
arti: [
'kendaraan darat yang digerakkan oleh tenaga mesin, beroda empat atau lebih (selalu genap), biasanya menggunakan bahan bakar minyak untuk menghidupkan mesinnya; oto; otomobil',
'mudah bergerak (berpindah) atau digerakkan (dipindah-pindahkan): ia sangat -- sehingga cocok untuk melakukan tugas luar'
]
}
| nama modul | params | response | description | | :--- | :---------- | :--- | :--- | | kbbi | kata | JSON | Mencari arti kata di Kamus Besar Bahasa Indonesia |
Islamic API
//Contoh!
wpuopenapi.apiIslamic.datamasjid('dki-jakarta', '8')
.then(res => console.log(res))
.catch(err => console.log(err))
Output :
{
createdBy: 'ZSofttt',
status: 200,
hasil: [
{
nomer: '61',
nama: 'Mushalla Al-Khairat',
url: 'https://www.dream.co.id/sim/dki-jakarta-kota-adm-jakarta-barat-grogol-petamburan-mushalla-al-khairat-7hmrb.html',
tahunBerdiri: '1975',
alamat: 'Jl.Sosial Rt.04/02',
kota: 'KOTA ADM. JAKARTA BARAT',
kecamatan: 'Grogol Petamburan',
provinsi: 'DKI JAKARTA',
jenis: 'MUSHALLA PERUMAHAN',
status: 'Wakaf'
},
{
nomer: '62',
nama: 'Mushalla Ad-darul ulum',
url: 'https://www.dream.co.id/sim/dki-jakarta-kota-adm-jakarta-barat-grogol-petamburan-mushalla-ad-darul-ulum-sy0vj.html',
tahunBerdiri: '1972',
alamat: 'Jl.Karya barat Rw.03',
kota: 'KOTA ADM. JAKARTA BARAT',
kecamatan: 'Grogol Petamburan',
provinsi: 'DKI JAKARTA',
jenis: 'MUSHALLA DI TEMPAT PUBLIK',
status: 'Wakaf'
}
]
}
| nama modul | params | response | description | | :--- | :---------- | :--- | :--- | | datamasjid | provinsi & page | JSON | Menampilkan data masjid di Indonesia |
Note : untuk melihat listkota, gunakan ini :
wpuopenapi.apiIslamic.liskotamasjid()
.then(res => console.log(res))
.catch(err => console.log(err))
Credits
- WPU Community
Maintainer
- Zahirrr
Link Packages
https://www.npmjs.com/package/wpu-open-api