Leaderboard
İstek atan kullanıcının izlenme süresi ve sıralamasını getir
Kullanıcının toplam izlenme süresini ve en çok izlenenler listesindeki sırasını döndürür.
Kullanıcının toplam izlenme süresini ve en çok izlenenler listesindeki sırasını döndürür.
Authorization
JWT-auth AuthorizationBearer <token>
Paste the JWT access token without the Bearer prefix.
In: header
Query Parameters
days?number
Hesaplama için kullanılacak gün sayısı (varsayılan: 30)
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/leaderboard/my-watch-time-rank"{
"isSuccess": true,
"statusCode": 200,
"data": {
"userId": "64d15f9e2e6c8f4d5a123456",
"rank": 1,
"totalWatchTimeMs": 3600000,
"totalWatchTimeSeconds": 3600,
"totalWatchTimeMinutes": 60,
"totalWatchTimeHours": 1,
"totalUsers": 150
},
"errors": [],
"timestamp": "2026-05-22T16:11:27.418Z"
}{
"isSuccess": false,
"statusCode": 400,
"data": null,
"errors": [
"Validation failed"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 401,
"data": null,
"errors": [
"Authentication required"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 403,
"data": null,
"errors": [
"Insufficient permissions"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 500,
"data": null,
"errors": [
"Internal server error"
],
"timestamp": "2026-05-22T16:11:27.418Z"
}