@extends('layouts.admin') @section('title', 'API Documentation') @section('content')
Access our powerful API to integrate movie data and episodes into your own applications.
Total Hits
{{ number_format($token_hits) }}
Last Used
{{ $last_used_at->diffForHumans() }}
New Token Generated:
{{ $token }}
Warning: For security, this token will only be shown once. Please store it safely.
/api/movies
Returns a paginated list of all movies along with a count of their completely downloaded episodes.
limit (optional): Number of movies per page. Default 12.page (optional): Current page number.
{
"success": true,
"data": [
{
"id": 1,
"resource_id": 1,
"external_id": "42000006096",
"title": "Asalku dari Zaman Kuno",
"cover": "https://hwztchapter...",
"chapter_count": 73,
"tags": ["Perjalanan Waktu", "Modern"],
"play_count": "5M",
"episodes_count": 73
}
],
"meta": {
"current_page": 1,
"last_page": 5,
"per_page": 12,
"total": 60
}
}
/api/movies/{id}
Returns the details of a specific movie. This endpoint fully eager-loads the actual episodes array of the movie but only includes episodes that have been successfully downloaded to the server. It also parses a ready-to-use download_url pointing directly to your local storage.
{
"success": true,
"data": {
"id": 1,
"title": "Asalku dari Zaman Kuno",
"episodes": [
{
"id": 101,
"movie_id": 1,
"external_id": "ep_1",
"title": "Episode 1",
"status": "completed",
"local_path": "episodes/1/episode_ep_1.mp4",
"download_url": "https://yourdomain.com/storage/episodes/1/episode_ep_1.mp4"
}
]
}
}