Skip to main content

dramaapi (Python)

Python client for DramaAPI: one REST API for 20+ short-drama platforms (DramaBox, ReelShort, ShortMax, GoodShort, DramaWave, MoboReels and more). No dependencies beyond the standard library.

pip install dramaapi
from dramaapi import DramaAPI, DramaAPIError

api = DramaAPI("YOUR_KEY")          # or set DRAMAAPI_KEY

hit = api.search("billionaire", lang="en")["results"][0]
print(hit["title"], hit["provider"], hit["totalEpisodes"])

for ep in api.iter_episodes(hit["provider"], hit["id"]):
    print(ep["number"], ep["title"])

try:
    play = api.play(hit["provider"], hit["id"], 1)
    print(play["format"], play["streamUrl"])
    for sub in play.get("subtitles", []):
        print(sub["language"], sub["url"])
except DramaAPIError as e:
    print(e.code, e.message)        # 503: episode not playable on the source
Method Endpoint
status() GET /api/status
providers() GET /api/providers
search(keyword, provider=None, lang=None, page=1, limit=20) GET /api/v1/search
home(provider, lang=None, page=1, limit=20) GET /{provider}/api/v1/home
detail(provider, series_id) GET /{provider}/api/v1/detail/{id}
episodes(provider, series_id, page=1, limit=100) GET /{provider}/api/v1/episodes/{id}
iter_episodes(provider, series_id) pages through every episode
play(provider, series_id, episode) GET /{provider}/api/v1/play/{id}/{ep}

Errors raise DramaAPIError with .code (401 bad key, 404 unknown series, 429 quota used, 503 not playable). Stream URLs are often signed for about an hour, so call play() again rather than storing them.

Free 3-day key: https://dramaapi.live/register · Full reference: https://dramaapi.live/docs

MIT licensed.

Metadata

Release files for dramaapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dramaapi 0.1.0
File Size Uploaded Provenance Actions
dramaapi-0.1.0.tar.gz 6.2 kB Without provenance Details for dramaapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dramaapi 0.1.0
File Interpreter ABI Platform Actions
dramaapi-0.1.0-py3-none-any.whl Python 3 none any Details for dramaapi-0.1.0-py3-none-any.whl

Total release size: 11.6 kB

Release files / dramaapi-0.1.0.tar.gz

Download URL dramaapi-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
70cb0a0b1eed1df386887fe2998b34f4086121139e8e3474bfcb4c475bf8f9f5
BLAKE2b-256 checksum
How to use checksums
b55d59e228f26eb1b76bbab2df5217fc2d72f575ce5314fdcadee41107150d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / dramaapi-0.1.0-py3-none-any.whl

Download URL dramaapi-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1a1cf208c9fd97fe1d1c73394c4b620b257ef090e6b3ef38bd509161fe9606f
BLAKE2b-256 checksum
How to use checksums
0d9c1bd6aea34f68e886f0ad05eb16019f126dc21eb004dc385412735f3f1c2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for dramaapi 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page