Everything in DramaAPI leads to one endpoint: play. It turns a provider slug, a series id and an episode number into a playable media URL. This guide explains exactly what comes back, how kind: hls differs from kind: mp4, which player to use on each platform, why the URLs expire, and how subtitles arrive as WebVTT. If your question is how to get a ReelShort stream URL (or a DramaBox, ShortMax or GoodShort one) this is the page.
The play endpoint
GET https://dramaapi.live/{provider}/api/v1/play/{seriesId}/{episodeNumber}
X-API-Key: YOUR_KEY
provider is a slug such as reelshort or dramabox, seriesId comes from search, home or detail, and episodeNumber is the number field from the episodes endpoint. Example:
curl -H 'X-API-Key: YOUR_KEY' \
https://dramaapi.live/reelshort/api/v1/play/abc123/1
{
"status": true,
"streamUrl": "https://cdn.example/.../index.m3u8",
"kind": "hls",
"subtitles": [
{ "lang": "en", "url": "https://.../en.vtt" }
]
}
Three fields matter: streamUrl is the media, kind tells you how to play it, and subtitles is present only when the provider has captions. If you get HTTP 503 with {"status": false, "error": "..."}, that episode has no playable source right now; show a message and move on rather than retrying in a tight loop.
kind: hls (m3u8)
Most providers, including ReelShort, ShortMax, GoodShort, DramaWave and MoboReels, return an HLS playlist: an .m3u8 text file that lists short video segments. An m3u8 short drama stream cannot be dropped into a plain <video src> in Chrome or Firefox; you need an HLS library or a native player:
- Browser: hls.js attaches to a normal HTML5
<video>element. Safari and iOS can play HLS natively viasrc. - Android: ExoPlayer (Media3) handles HLS out of the box with
MediaItem.fromUri(streamUrl). - iOS / macOS: AVPlayer plays HLS natively:
AVPlayer(url: URL(string: streamUrl)!). - Desktop / CLI: VLC, mpv and ffmpeg all accept the m3u8 URL directly.
Browser snippet with hls.js
<video id='player' controls playsinline></video>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/hls.min.js'></script>
<script>
async function playEpisode(provider, seriesId, episode) {
const res = await fetch(
`https://dramaapi.live/${provider}/api/v1/play/${seriesId}/${episode}`,
{ headers: { 'X-API-Key': 'YOUR_KEY' } }
);
const data = await res.json();
if (!data.status) {
alert('No source right now: ' + data.error);
return;
}
const video = document.getElementById('player');
if (data.kind === 'hls') {
if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = data.streamUrl; // Safari, iOS
} else if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(data.streamUrl);
hls.attachMedia(video);
}
} else {
video.src = data.streamUrl; // kind === 'mp4'
}
// subtitles, if the provider has any
for (const track of data.subtitles || []) {
const el = document.createElement('track');
el.kind = 'subtitles';
el.srclang = track.lang;
el.label = track.lang.toUpperCase();
el.src = track.url;
video.appendChild(el);
}
video.play();
}
playEpisode('reelshort', 'abc123', 1);
</script>
In production call DramaAPI from your backend and pass only the resulting streamUrl to the browser, so your X-API-Key never ships in client-side code.
kind: mp4 (direct file)
DramaBox and NetShort return a progressive MP4 instead of a playlist. That is the simplest case: every browser, ExoPlayer, AVPlayer and <video> tag can play it directly, and you can download it with a single GET.
<video controls playsinline src='https://.../episode-1.mp4'></video>
Because the two kinds need different handling, always branch on kind rather than guessing from the file extension. The snippet above already does this.
Stream URLs expire: fetch on demand
Every streamUrl and subtitle URL is signed by the upstream CDN and stops working after a limited window. The practical rules:
- Call
playwhen the user presses play, not when you build the episode list. - Do not store stream URLs in your database or cache them across sessions. Cache series metadata and episode lists instead; those are stable.
- If a stored URL starts returning 403 or 410 from the CDN, simply call
playagain to get a fresh one. - For autoplay-next, request the next episode's URL a few seconds before the current one ends, not minutes earlier.
One play call per episode start fits comfortably inside the free tier's 1,000-request allowance while you prototype.
Subtitles come back as WebVTT
When captions exist, subtitles is an array of { lang, url } objects pointing at .vtt files. Coverage depends on the provider: DramaWave exposes up to 31 languages, WeTV up to 12, DramaNova 6 and MoboReels 1. Providers without captions omit the field, so always default to an empty list.
WebVTT is the native subtitle format for the HTML5 <track> element, so in the browser you attach each entry as shown above. ExoPlayer accepts VTT through MediaItem.SubtitleConfiguration with MimeTypes.TEXT_VTT, and AVPlayer can load sidecar VTT through an AVMutableComposition or by muxing it into the HLS master playlist. Subtitle URLs expire together with the stream URL, so fetch them in the same play call.
Doing it from Python or JavaScript
from dramaapi import DramaAPI
api = DramaAPI('YOUR_KEY')
play = api.play('dramabox', 'xyz789', 1)
print(play['kind'], play['streamUrl']) # mp4 https://....mp4
print([t['lang'] for t in play.get('subtitles', [])])
import { DramaAPI } from 'dramaapi';
const api = new DramaAPI('YOUR_KEY');
const { kind, streamUrl, subtitles = [] } = await api.play('dramabox', 'xyz789', 1);
console.log(kind, streamUrl, subtitles.map(t => t.lang));
Both SDKs raise or return the same status: false body on a 503, so wrap the call in the same check. For the complete list of fields see the API reference; for a full Python walkthrough see How to Use the Short Drama API in Python.
Next steps
- Get a free API key and paste the hls.js snippet into an HTML file.
- Walk through the full flow in the quickstart.
- Find series across all 20 platforms with the global search guide.
- Build a server-side client with the Python guide.
Drama