DrakorIndo API Code Examples Ready-to-run examples for all DrakorIndo endpoints. Paste your API key to try live requests directly in the browser. Your API Key Active Paste your API key to authenticate the "Try" buttons and inject it into code examples. Get your key → sk_live_afb4c24ea8c44d30a06c67ecc67a8f85a46a0987c8d899bc Save Clear Try It Live Browse GET /api/drakor?per_page=5 Send GET /api/drakor?type=series&per_page=5 Send GET /api/drakor?type=movie&per_page=5 Send GET /api/drakor/popular?type=series&per_page=5 Send GET /api/drakor/popular?type=movie&per_page=5 Send GET /api/drakor/trending?per_page=5 Send GET /api/drakor/alphabet Send GET /api/drakor/alphabet?letter=V&per_page=5 Send Detail & Episodes GET /api/drakor/42 Send GET /api/drakor/42/episodes?per_page=5 Send GET /api/drakor/42/episodes?per_page=5&expires_in=7200 Send Search GET /api/drakor/search?q=love&per_page=5 Send GET /api/drakor/search?q=my+name&type=series&per_page=5 Send GET /api/drakor/search?q=squid&type=movie&per_page=5 Send cURL cURL Examples Copy API_KEY="sk_live_afb4c24ea8c44d30a06c67ecc67a8f85a46a0987c8d899bc" BASE="https://api.splay.id" # -- Browse -- curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor?per_page=20&type=series" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor?per_page=20&type=movie" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/popular?type=series&per_page=10" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/trending?per_page=10" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/alphabet" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/alphabet?letter=V&type=series" # -- Detail & episodes -- curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/42" curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/42/episodes?per_page=50&expires_in=7200" # -- Search -- curl -H "Authorization: Bearer $API_KEY" "$BASE/api/drakor/search?q=vincenzo&type=series" JavaScript / TypeScript Full Example Copy const BASE = "https://api.splay.id"; const API_KEY = "sk_live_afb4c24ea8c44d30a06c67ecc67a8f85a46a0987c8d899bc"; const headers = { Authorization: `Bearer ${API_KEY}` }; // -- List series -- const { data, meta } = await fetch( `${BASE}/api/drakor?type=series&per_page=20`, { headers } ).then(r => r.json()); console.log(`${meta.total} Korean drama series`); data.forEach(d => console.log(`[${d.id}] ${d.title} — ${d.chapter_count} eps`)); // -- Drama detail -- const { data: drama } = await fetch(`${BASE}/api/drakor/42`, { headers }).then(r => r.json()); console.log(drama.title, drama.raw_data?.korean_title); console.log("Director:", drama.raw_data?.director); console.log("Rating:", drama.raw_data?.rating); // -- Episodes with signed URLs (2h TTL) -- const { data: eps } = await fetch( `${BASE}/api/drakor/42/episodes?per_page=50&expires_in=7200`, { headers } ).then(r => r.json()); const ep1 = eps[0]; // Pick best available quality const url = ep1.qualities?.["1080p"] ?? ep1.qualities?.["720p"] ?? ep1.video_url; console.log(`Ep 1 → ${url}`); // -- Search -- const search = await fetch( `${BASE}/api/drakor/search?q=the+glory&type=series&per_page=5`, { headers } ).then(r => r.json()); console.log(`Found ${search.meta.total} results`); search.data.forEach(d => console.log(` ${d.title}`)); Python Full Example Copy import requests BASE = "https://api.splay.id" API_KEY = "sk_live_afb4c24ea8c44d30a06c67ecc67a8f85a46a0987c8d899bc" headers = {"Authorization": f"Bearer {API_KEY}"} # -- List Korean drama series -- res = requests.get(f"{BASE}/api/drakor", params={"type": "series", "per_page": 20}, headers=headers) body = res.json() print(f"{body['meta']['total']} series, {body['meta']['total_pages']} pages") for d in body["data"]: print(f" [{d['id']}] {d['title']} — {d['chapter_count']} eps") # -- Drama detail + raw_data -- detail = requests.get(f"{BASE}/api/drakor/42", headers=headers).json()["data"] raw = detail.get("raw_data", {}) print(f" {detail['title']}") print(f" Korean: {raw.get('korean_title')}") print(f" Director: {raw.get('director')}") print(f" Rating: {raw.get('rating')}/10") print(f" Cast: {', '.join(c['actor'] for c in raw.get('cast', [])[:3])}") # -- All episodes with 2h signed URLs -- page, all_eps = 1, [] while True: r = requests.get( f"{BASE}/api/drakor/42/episodes", params={"page": page, "per_page": 50, "expires_in": 7200}, headers=headers ).json() all_eps.extend(r["data"]) if page >= r["meta"]["total_pages"]: break page += 1 for ep in all_eps: url = (ep.get("qualities") or {}).get("1080p") or ep.get("video_url") print(f" Ep {ep['episode_index']}: {url[:60]}...") # -- Search -- results = requests.get( f"{BASE}/api/drakor/search", params={"q": "vincenzo", "type": "series", "per_page": 5}, headers=headers ).json() print(f" Search: {results['meta']['total']} results") for d in results["data"]: print(f" {d['title']}") PHP Full Example Copy true, CURLOPT_HTTPHEADER => ["Authorization: Bearer $apiKey", "Accept: application/json"], CURLOPT_TIMEOUT => 10, ]); $body = curl_exec($ch); curl_close($ch); return json_decode($body, true) ?? []; } // -- List series -- $list = drakor("/api/drakor", $API_KEY, ["type" => "series", "per_page" => 10]); foreach ($list["data"] as $d) { echo "[{$d['id']}] {$d['title']} — {$d['chapter_count']} eps "; } // -- Drama detail -- $detail = drakor("/api/drakor/42", $API_KEY); $drama = $detail["data"]; $raw = $drama["raw_data"] ?? []; echo "{$drama['title']} ({$raw['korean_title']}) "; echo "Director: {$raw['director']}, Rating: {$raw['rating']} "; // -- Episodes -- $eps = drakor("/api/drakor/42/episodes", $API_KEY, ["per_page" => 50, "expires_in" => 7200]); foreach ($eps["data"] as $ep) { $url = $ep["qualities"]["720p"] ?? $ep["video_url"]; echo "Ep {$ep['episode_index']}: $url "; } // -- Search -- $search = drakor("/api/drakor/search", $API_KEY, ["q" => "my name", "type" => "series"]); echo "Found {$search['meta']['total']} results ";