Setiap service compose membawa label com.kokunime.probe: app โ /api/health, redis โ redis-cli ping.
Akses instan tanpa perlu API key atau registrasi akun.
Mendukung Access-Control-Allow-Origin: * untuk frontend web klien.
Header Stale-While-Revalidate untuk latensi sub-15ms.
Tersedia format JSON, RSS XML, JSON Feed, dan OpenAPI.
/api/healthCek uptime server, latensi koneksi upstream (ms), dan status operasional sistem scraper.
/api/healthcurl -X GET "https://kokunime.netlify.app/api/health" \
-H "Accept: application/json"/api/statusSnapshot ringkas tanpa auth: status ok/degraded (503 saat degraded), uptime, memori, event-loop lag, circuit upstream, Redis.
/api/statuscurl -X GET "https://kokunime.netlify.app/api/status" \
-H "Accept: application/json"/api/admin/indexStatus local search index (size, Redis) dengan Bearer ADMIN_TOKEN/METRICS_TOKEN. Warm-up via POST {pages,genres}. Tanpa token terkonfigurasi โ 404.
/api/admin/indexcurl -X GET "https://kokunime.netlify.app/api/admin/index" \
-H "Accept: application/json"/api/admin/link-health?slug={slug}Snapshot kesehatan mirror unduhan terakhir untuk satu anime. GET membaca cache; POST {slug,max} menjalankan pemeriksaan live (maks 30 URL) dan menyimpan hasilnya. Butuh Bearer ADMIN_TOKEN/METRICS_TOKEN.
/api/admin/link-health?slug=naruto-batch-sub-indocurl -X GET "https://kokunime.netlify.app/api/admin/link-health?slug=naruto-batch-sub-indo" \
-H "Accept: application/json"/api/metricsSnapshot Prometheus text (counter, histogram latensi, status circuit upstream, Redis). Hanya aktif bila METRICS_TOKEN diisi.
/api/metricscurl -X GET "https://kokunime.netlify.app/api/metrics" \
-H "Accept: application/json"/api/randomMendapatkan dan mengarahkan (307 redirect) secara acak ke salah satu anime di katalog.
/api/randomcurl -X GET "https://kokunime.netlify.app/api/random" \
-H "Accept: application/json"/api/search?q={query}Pencarian anime real-time ke upstream scraper, ditambah local catalog index (fuzzy) dan query syntax: `genre:action,adventure`, `-kata` untuk exclude, `fields=title,link` untuk proyeksi atribut.
curl -X GET "https://kokunime.netlify.app/api/search?q=naruto" \
-H "Accept: application/json"/api/suggest?q={query}Autocomplete hingga 8 judul dari local catalog index โ tanpa upstream call. Kosong saat index belum di-warm-up.
curl -X GET "https://kokunime.netlify.app/api/search?q=naruto" \
-H "Accept: application/json"/api/search-indexDump ringkas dari catalog index server untuk disimpan browser: pencarian instan dan offline memakai data ini, digabung dengan judul yang sudah pernah dilihat di perangkat. Kosong saat index belum di-warm-up.
/api/search-indexcurl -X GET "https://kokunime.netlify.app/api/search-index" \
-H "Accept: application/json"/api/genresMengambil daftar lengkap seluruh kategori genre anime yang tersedia di katalog Kokunime.
/api/genrescurl -X GET "https://kokunime.netlify.app/api/genres" \
-H "Accept: application/json"/api/genres/{genre}Mengambil daftar anime berdasarkan kategori genre tertentu dengan paginasi.
curl -X GET "https://kokunime.netlify.app/api/genres/action" \
-H "Accept: application/json"/api/seasonsMengambil daftar musim penayangan anime (Winter, Spring, Summer, Fall) dari tahun ke tahun.
/api/seasonscurl -X GET "https://kokunime.netlify.app/api/seasons" \
-H "Accept: application/json"/api/seasons/{season}Mengambil daftar anime berdasarkan musim rilis tertentu dengan paginasi (?page= atau ?cursor=).
curl -X GET "https://kokunime.netlify.app/api/seasons/winter-2024" \
-H "Accept: application/json"/api/trendingJudul paling banyak dilihat beberapa hari terakhir (view tracker sendBeacon, menghormati DNT). Kosong = belum ada data.
/api/trendingcurl -X GET "https://kokunime.netlify.app/api/trending" \
-H "Accept: application/json"/api/anime/{slug}Mengambil metadata detail lengkap anime (judul, poster, sinopsis, produser, skor, trailer, download).
curl -X GET "https://kokunime.netlify.app/api/anime/naruto-batch-sub-indo" \
-H "Accept: application/json"/api/anime/{slug}/downloadMengambil daftar tautan download per resolusi (360p, 480p, 720p, 1080p) dan platform cloud mirror.
curl -X GET "https://kokunime.netlify.app/api/anime/naruto-batch-sub-indo/download" \
-H "Accept: application/json"/api/anime/{slug}/episodesDaftar episode terstruktur: mirror per resolusi/platform sudah dipisah dari judul batch, plus flag is_torrent.
curl -X GET "https://kokunime.netlify.app/api/anime/naruto-batch-sub-indo" \
-H "Accept: application/json"/api/anime/bulkMengambil banyak metadata anime sekaligus (GET: ?slugs=a,b atau POST body {slugs,fields}). Mendukung fields= dan ETag/304.
curl -X GET "https://kokunime.netlify.app/api/anime/bulk?slugs=naruto-batch-sub-indo,bleach-batch-sub-indo" \
-H "Accept: application/json"/api/check-linksCek tautan mati massal untuk koleksi pribadi: setiap slug dicek ke katalog (maks 30 per request) dan dijawab dengan flag ok.
curl -X GET "https://kokunime.netlify.app/api/check-links?slugs=naruto-batch-sub-indo,bleach-batch-sub-indo" \
-H "Accept: application/json"/feed.xmlRSS / Atom XML Feed resmi Kokunime yang mendukung filter parameter genre dan season.
/feed.xmlcurl -X GET "https://kokunime.netlify.app/feed.xml" \
-H "Accept: application/json"/feed.jsonJSON Feed v1.1 resmi untuk integrasi pembaca feed modern.
/feed.jsoncurl -X GET "https://kokunime.netlify.app/feed.json" \
-H "Accept: application/json"Deprecation: true plus Sunset: <tanggal RFC 1123> yang menunjuk ke endpoint pengganti.fields= bila ingin payload minimal.