API KEY Check Key

Docs API đấu Key

Endpoint kiểm tra key:

https://keybanquyen.chauthebao.net/api/check.php

Response mẫu

{
  "success": true,
  "status": "valid",
  "message": "Key hợp lệ thời hạn còn 30 ngày",
  "api_key": "KEY-XXXX",
  "expire_at": "2026-05-27",
  "days_left": 30
}

JavaScript

fetch('https://keybanquyen.chauthebao.net/api/check.php?api_key=KEY-CUA-BAN')
  .then(res => res.json())
  .then(data => console.log(data));

PHP

$key = "KEY-CUA-BAN";
$url = "https://keybanquyen.chauthebao.net/api/check.php?api_key=" . urlencode($key);
$data = json_decode(file_get_contents($url), true);

if ($data["status"] === "valid") {
    echo "Key hợp lệ";
}

Python

import requests
r = requests.get("https://keybanquyen.chauthebao.net/api/check.php", params={"api_key":"KEY-CUA-BAN"})
print(r.json())

NodeJS

const res = await fetch("https://keybanquyen.chauthebao.net/api/check.php?api_key=KEY-CUA-BAN");
const data = await res.json();
console.log(data);

cURL

curl "https://keybanquyen.chauthebao.net/api/check.php?api_key=KEY-CUA-BAN"