Metadata-Version: 2.4
Name: dracinapi
Version: 1.0.0
Summary: 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.
Author-email: DracinAPI <support@dracinapi.com>
License: MIT
Project-URL: Homepage, https://dracinapi.com
Project-URL: Documentation, https://dracinapi.com/docs
Project-URL: Repository, https://github.com/apidracin/dracinapi
Project-URL: Bug Tracker, https://github.com/apidracin/dracinapi/issues
Project-URL: Pricing, https://dracinapi.com/pricing
Project-URL: Blog, https://dracinapi.com/blog
Project-URL: Providers, https://dracinapi.com/providers
Project-URL: Status, https://dracinapi.com/status
Keywords: dracinapi,dracin-api,api-dracin,dracin,drama-china,chinese-drama,short-drama,drama-api,dramabox,shortmax,reelshort,idrama,streaming,hls,drama-pendek,video-api
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.20.0

<p align="center">
  <h1 align="center">DracinAPI — Python SDK</h1>
  <p align="center">
    <strong>Satu API untuk 42 Platform Drama China & Drama Pendek</strong>
  </p>
  <p align="center">
    <a href="https://dracinapi.com">Website</a> •
    <a href="https://dracinapi.com/docs">Dokumentasi</a> •
    <a href="https://dracinapi.com/pricing">Harga</a> •
    <a href="https://dracinapi.com/register">Daftar Gratis</a>
  </p>
</p>

---

[![PyPI](https://img.shields.io/pypi/v/dracinapi)](https://pypi.org/project/dracinapi/)
[![API Status](https://img.shields.io/badge/API-Online-brightgreen)](https://dracinapi.com/status)
[![Providers](https://img.shields.io/badge/Provider-42-blue)](https://dracinapi.com/providers)
[![Python](https://img.shields.io/pypi/pyversions/dracinapi)](https://pypi.org/project/dracinapi/)

## Apa Itu DracinAPI?

**DracinAPI** adalah REST API terpadu untuk mengakses data drama China (dracin) dan drama pendek dari **42 platform** sekaligus. Satu API key untuk akses ke DramaBox, ShortMax, ReelShort, iDrama, FlexTV, dan 37 provider lainnya.

Package ini adalah **SDK Python resmi** untuk [DracinAPI](https://dracinapi.com).

### Fitur Utama

- **42 provider** drama pendek & drama China
- **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`

## Instalasi

```bash
pip install dracinapi
```

## Mulai Cepat

```python
from dracinapi import DracinAPI

# Daftar gratis di https://dracinapi.com/register
api = DracinAPI("API_KEY_KAMU")

# Cari drama di DramaBox
results = api.search("dramabox", "cinta")
for drama in results:
    print(f"{drama['title']} — {drama['episodes']} episode")

# Ambil detail drama
drama = api.detail("dramabox", "2047")
print(drama["title"], drama["desc"])

# Ambil daftar episode
eps = api.episodes("dramabox", "2047")
print(f"Total episode: {eps['total']}")

# Play streaming HLS
stream = api.play("dramabox", "2047", 1)
print(f"HLS URL: {stream['hlsUrl']}")

# Trending drama
trending = api.feed("shortmax")
for drama in trending:
    print(drama["title"])

# Cek status provider
status = api.status()
```

## API Reference

### `DracinAPI(api_key, base_url="https://dracinapi.com")`

Buat instance DracinAPI. Dapatkan API key gratis di [dracinapi.com/register](https://dracinapi.com/register).

### `api.search(provider, keyword) → list`

Cari drama di provider tertentu. [Docs →](https://dracinapi.com/docs/search-api)

### `api.detail(provider, drama_id) → dict`

Ambil detail drama lengkap. [Docs →](https://dracinapi.com/docs/drama-api)

### `api.episodes(provider, drama_id) → dict`

Ambil daftar episode. [Docs →](https://dracinapi.com/docs/episode-api)

### `api.play(provider, drama_id, episode) → dict`

Ambil URL streaming HLS. [Docs →](https://dracinapi.com/docs/stream-api)

### `api.feed(provider) → list`

Ambil drama trending. [Docs →](https://dracinapi.com/docs/feed-api)

### `api.status() → dict`

Cek status 42 provider. [Docs →](https://dracinapi.com/docs/provider-api)

## 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 |

[Lihat harga lengkap →](https://dracinapi.com/pricing)

## Links

- **Website**: [dracinapi.com](https://dracinapi.com)
- **Dokumentasi**: [dracinapi.com/docs](https://dracinapi.com/docs)
- **Daftar Gratis**: [dracinapi.com/register](https://dracinapi.com/register)
- **Harga**: [dracinapi.com/pricing](https://dracinapi.com/pricing)
- **Provider**: [dracinapi.com/providers](https://dracinapi.com/providers)
- **Blog**: [dracinapi.com/blog](https://dracinapi.com/blog)
- **Status**: [dracinapi.com/status](https://dracinapi.com/status)
- **GitHub**: [github.com/apidracin/dracinapi](https://github.com/apidracin/dracinapi)
- **npm**: [npmjs.com/package/dracinapi](https://www.npmjs.com/package/dracinapi)

## License

MIT © [DracinAPI](https://dracinapi.com)
