Dokumentasi sederhana untuk mengakses video API
Gunakan API key: public
GET https://api.crot.lol/v2/videos?key=public
https://api.crot.lolGET /v2/videos
| 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) |
GET https://api.crot.lol/v2/videos?key=public&page=1&limit=20&sort=popular
{
"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
}
}
GET /v2/videos/{id}
GET https://api.crot.lol/v2/videos/123?key=public
{
"status": "success",
"data": {
"id": 123,
"title": "Sample Video",
"description": "Video description",
"length": 3600,
"views": 1500,
"embed_url": "/e/123",
"download_url": "/d/123",
...
}
}
https://play.simplepaste.site/e/123https://play.simplepaste.site/d/123
GET /v2/categories
GET https://api.crot.lol/v2/categories?key=public
{
"status": "success",
"data": [
{
"id": 1,
"name": "Action",
"slug": "action"
}
]
}
GET /v2/tags
GET https://api.crot.lol/v2/tags?key=public
{
"status": "success",
"data": [
{
"id": 5,
"name": "Thriller",
"slug": "thriller"
}
]
}
| Code | Keterangan |
|---|---|
| 200 | Sukses |
| 400 | Request salah |
| 401 | API key tidak valid |
| 404 | Data tidak ditemukan |
| 429 | Terlalu banyak request |