Keamanan

Batas & Kuota API

Cek penggunaan dan batas rate limiting

Ringkasan Batas

20 / hari
Upload Harian
Upload file + konten private per IP (termasuk upload kode)
100 / jam
Request API
Request API umum per IP
10 MB
Ukuran File
Maksimal ukuran per file (Redis)

Endpoint Tersedia

GET
/api/check-limit

Cek batas penggunaan harian

GET
/api/usage

Dapatkan statistik penggunaan API (request per hari, unique IPs, dll)

GET
/api/health

Cek kesehatan API dan status endpoint

GET
/api/stats

Statistik platform (total file, storage, dll)

Cek Penggunaan

curl

curl "https://upload.ylizidev.tech/api/check-limit"

Header Response

X-RateLimit-LimitTotal request yang diizinkan
X-RateLimit-RemainingSisa request yang tersedia
X-RateLimit-ResetWaktu reset limit (timestamp)

Penanganan Error

Response Sukses

{
  "used": 3,
  "remaining": 17,
  "limit": 20,
  "reset": 1721234567
}

Response Rate Limited

{
  "message": "Rate limit exceeded",
  "used": 20,
  "remaining": 0,
  "limit": 20
}