📹 Public Video API

Dokumentasi sederhana untuk mengakses video API

🔑 Autentikasi

Gunakan API key: public

GET https://api.crot.lol/v2/videos?key=public
Base URL: https://api.crot.lol
Rate Limit: 600 request per menit

📺 List Video

GET /v2/videos

Parameter:

Nama Tipe Keterangan
key required API key (gunakan: public)
page optional Nomor halaman (default: 1)
limit optional Jumlah per halaman (max: 100, default: 15)
search optional Cari video berdasarkan judul/deskripsi
category optional Filter berdasarkan category slug
tags optional Filter berdasarkan tags (pisah dengan koma)
sort optional latest, oldest, random, popular
start_date optional Filter dari tanggal (dd-mm-yyyy)
end_date optional Filter sampai tanggal (dd-mm-yyyy)

Contoh:

GET https://api.crot.lol/v2/videos?key=public&page=1&limit=20&sort=popular

Response:

{
  "status": "success",
  "data": [
    {
      "id": 123,
      "title": "Sample Video",
      "length": 3600,
      "views": 1500,
      "thumbnail_url": "https://...",
      "categories": [...],
      "tags": [...]
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 20,
    "total_pages": 10,
    "total_items": 200
  }
}

🎬 Detail Video

GET /v2/videos/{id}

Contoh:

GET https://api.crot.lol/v2/videos/123?key=public

Response:

{
  "status": "success",
  "data": {
    "id": 123,
    "title": "Sample Video",
    "description": "Video description",
    "length": 3600,
    "views": 1500,
    "embed_url": "/e/123",
    "download_url": "/d/123",
    ...
  }
}
Full URL:
Embed: https://play.simplepaste.site/e/123
Download: https://play.simplepaste.site/d/123

📁 List Categories

GET /v2/categories

Contoh:

GET https://api.crot.lol/v2/categories?key=public

Response:

{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Action",
      "slug": "action"
    }
  ]
}

🏷️ List Tags

GET /v2/tags

Contoh:

GET https://api.crot.lol/v2/tags?key=public

Response:

{
  "status": "success",
  "data": [
    {
      "id": 5,
      "name": "Thriller",
      "slug": "thriller"
    }
  ]
}

⚠️ Error Codes

Code Keterangan
200 Sukses
400 Request salah
401 API key tidak valid
404 Data tidak ditemukan
429 Terlalu banyak request
⚠️ Perhatian: Jangan melebihi 600 request per menit!
Public Video API v2.0.0
free hit counter