Allmine API
Live Streams

Canlı yayın izleyicilerini getir

Belirli bir aktif canlı yayındaki audience katılımcılarını sayfalı olarak döndürür. Her kullanıcı için takip durumu (`isFollowing`) bilgisi içerir.

GET
/api/v1/live-stream/{id}/viewers

Belirli bir aktif canlı yayındaki audience katılımcılarını sayfalı olarak döndürür. Her kullanıcı için takip durumu (isFollowing) bilgisi içerir.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Path Parameters

id*string

Canlı yayın kimliği

Query Parameters

page?number

Sayfa numarası

Default1
Range1 <= value
limit?number

Sayfa başına öğe sayısı (maksimum 100)

Default20
Range1 <= value <= 100
search?string

İzleyici araması (name, surname, username)

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/live-stream/64d15f9e2e6c8f4d5a123456/viewers"
{
  "isSuccess": true,
  "statusCode": 200,
  "data": {
    "list": [
      {
        "_id": "64d15f9e2e6c8f4d5a654321",
        "username": "johndoe",
        "name": "John",
        "surname": "Doe",
        "profilePhoto": {
          "_id": "507f1f77bcf86cd799439012",
          "url": "https://example.com/uploads/images/profile.jpg",
          "type": "image",
          "variants": {
            "40": "https://cdn.example.com/profiles/user/40.webp",
            "76": "https://cdn.example.com/profiles/user/76.webp"
          },
          "createdAt": "2024-01-15T10:30:00.000Z",
          "updatedAt": "2024-01-15T12:30:00.000Z"
        },
        "followersCount": 42,
        "followingCount": 17,
        "expertise": "designer",
        "isFollowing": true,
        "joinedAt": "2026-02-18T09:30:00.000Z"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "totalPages": 5,
      "totalItems": 45,
      "itemsPerPage": 10,
      "hasNextPage": true,
      "hasPrevPage": false
    },
    "participantAudienceTotal": 128
  },
  "errors": [],
  "timestamp": "2026-05-22T16:11:27.035Z"
}
{
  "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": 404,
  "data": null,
  "errors": [
    "Resource not found"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}