<?php
header('Content-Type: application/json; charset=utf-8');
header('Access-Control-Allow-Origin: *');

$response = [
    "message" => "مرحباً بك في Drama Live API",
    "version" => "2.0",
    "endpoints" => [
        "search_series" => "/api/search_series.php?name=اسم_المسلسل",
        "search_movie" => "/api/search_movie.php?name=اسم_الفيلم",
        "status" => "/api/status.php"
    ],
    "example" => "https://iptv.xonegold.com/dramalive/api/search_series.php?name=المحامية"
];

echo json_encode($response, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
?>