dracinapi
v1.0.0
Published
DracinAPI — Satu REST API untuk 42 Platform Drama China & Drama Pendek. Akses data drama, episode, streaming HLS dari DramaBox, ShortMax, ReelShort, iDrama, FlexTV, dan 37 provider lainnya. Chinese Drama API / Dracin API / API Dracin.
Maintainers
Keywords
Readme
Apa Itu DracinAPI?
DracinAPI adalah REST API terpadu yang menyediakan akses ke data drama China (dracin) dan drama pendek dari 42 platform sekaligus. Cukup satu API key, kamu bisa mencari drama, mengambil detail, daftar episode, dan URL streaming HLS dari DramaBox, ShortMax, ReelShort, iDrama, FlexTV, dan 37 provider lainnya.
Package ini adalah SDK resmi Node.js untuk DracinAPI.
Kenapa Pakai Dracin API?
- 42 provider drama pendek & drama China dalam satu API
- 100.000+ judul drama terindeks
- 8.000.000+ episode tersedia
- 40+ bahasa subtitle & audio
- Streaming HLS (.m3u8) siap putar
- CDN global via
cdn.dracinapi.com - Format JSON konsisten untuk semua provider
Instalasi
npm install dracinapiMulai Cepat
const DracinAPI = require("dracinapi");
// Daftar gratis di https://dracinapi.com/register
const api = new DracinAPI("API_KEY_KAMU");
// Cari drama di DramaBox
const results = await api.search("dramabox", "cinta");
console.log(results);
// Ambil detail drama
const drama = await api.detail("dramabox", "2047");
console.log(drama.title, drama.desc);
// Ambil daftar episode
const eps = await api.episodes("dramabox", "2047");
console.log(`Total episode: ${eps.total}`);
// Play streaming HLS
const stream = await api.play("dramabox", "2047", 1);
console.log(`HLS URL: ${stream.hlsUrl}`);API Reference
new DracinAPI(apiKey, options?)
Buat instance DracinAPI.
| Parameter | Tipe | Deskripsi |
|-----------|------|-----------|
| apiKey | string | API key dari dracinapi.com/register |
| options.baseUrl | string | Base URL (default: https://dracinapi.com) |
api.search(provider, keyword)
Cari drama di provider tertentu. Dokumentasi →
const results = await api.search("shortmax", "CEO");
// Returns: [{ id, title, cover, episodes, genre, source }]api.detail(provider, id)
Ambil detail drama lengkap. Dokumentasi →
const drama = await api.detail("reelshort", "8842");
// Returns: { id, title, cover, desc, episodes, genre, language, source }api.episodes(provider, id)
Ambil daftar episode. Dokumentasi →
const eps = await api.episodes("idrama", "5501");
// Returns: { dramaId, total, episodes: [{ ep, title, thumbnail, duration, locked }] }api.play(provider, id, ep)
Ambil URL streaming HLS. Dokumentasi →
const stream = await api.play("starshort", "8842", 1);
// Returns: { dramaId, episode, hlsUrl, quality: [{ definition, url }], duration, source }api.feed(provider)
Ambil drama trending/populer. Dokumentasi →
const trending = await api.feed("shortmax");
// Returns: [{ id, title, cover, episodes, genre, source }]api.status()
Cek status semua 42 provider. Dokumentasi →
const status = await api.status();Provider yang Didukung (42)
| # | Provider | # | Provider | # | Provider | |---|----------|---|----------|---|----------| | 1 | StarShort | 15 | Velolo | 29 | Reelife | | 2 | DramaBite | 16 | ReelShort | 30 | PineDrama | | 3 | FreeReels | 17 | FlickReels | 31 | FlexTV | | 4 | FunDrama | 18 | Stardusttv | 32 | Reelala | | 5 | MicroDrama | 19 | Serial+ | 33 | Anyreel | | 6 | Vigloo | 20 | DotDrama | 34 | RaptDrama | | 7 | BiliTV | 21 | RapidTV | 35 | BonusTV | | 8 | DramaBox | 22 | ShortsWave | 36 | MiniTV | | 9 | DramaWave | 23 | DramaNova | 37 | Gold Drama | | 10 | NetShort | 24 | CubeTV | 38 | IQIYI | | 11 | iDrama | 25 | ReelBuzz | 39 | Bstation | | 12 | ShortMax | 26 | FlareFlow | 40 | Joyreels | | 13 | GoodShort | 27 | MoboReels | 41 | KalosTV | | 14 | Melolo | 28 | HappyShort | 42 | Vibeshort |
Harga API Dracin
| Paket | Harga | Request/Bulan | |-------|-------|---------------| | Gratis | Rp 0 | 1.000 | | Basic | Rp 99rb/bln | 100.000 | | Pro | Rp 199rb/bln | 1.000.000 | | 3 Bulan | Rp 499rb | 100JT/bln | | 1 Tahun | Rp 900rb | 100JT/bln |
TypeScript
Package ini sudah termasuk type definitions (index.d.ts):
import DracinAPI from "dracinapi";
const api = new DracinAPI("API_KEY_KAMU");
const results = await api.search("dramabox", "cinta");
// results: Drama[] — fully typedLinks
- Website: dracinapi.com
- Dokumentasi API: dracinapi.com/docs
- Daftar Gratis: dracinapi.com/register
- Provider: dracinapi.com/providers
- Harga: dracinapi.com/pricing
- Blog: dracinapi.com/blog
- Status API: dracinapi.com/status
- GitHub: github.com/apidracin/dracinapi
- Komunitas: t.me/nanomilkiss
License
MIT © DracinAPI
