Viewing Live status and statistics
    • PDF

    Viewing Live status and statistics

    • PDF

    Article summary

    Available in Classic and VPC

    It is an API to view the current status of Live (before, during, and after Live) and statistic information (views, number of likes, and so on). For the use flow of B2B PRISM Live Studio, see On-air process.

    Requests

    The request format is as follows:

    GET {serviceApiDomain}/prism/v1/service/live/{liveId}
    

    Request headers

    NameTypeDescriptionRequired
    x-prism-access-tokenStringAccess Token issued through OAuth2.0 authorizationY

    Request path parameters

    The description of the parameters is as follows:

    NameTypeDescriptionRequired
    liveIdStringLive IDY

    Responses

    This is a description of the response format.

    Note

    For the basic response format, see the Basic format for API responses.

    NameTypeDescriptionRequired
    liveObjectLive objectY

    live dto

    The description of the live dto is as follows:

    이름타입설명필수 여부
    liveIdString라이브 ID. 방송 조회 시 사용됨Y
    titleString라이브 제목을 지원하지 않는 서비스에서는 채널 이름을 전달해 주어야 함Y
    descriptionString라이브 설명N
    reservedAtDate
  • 라이브 예약시간
  • 예약 라이브가 아닌 경우 라이브 생성 시간
  • ISO 8601 형식으로 응답
  • Y
    startAtDate
  • 라이브 시작 시간
  • ISO 8601 형식으로 응답
  • N
    rtmpPathString
  • 송출 RTMP URL
  • rtmp:// 또는 rtmps:// 로 시작
  • 라이브 시작 후에만 제공되는 서비스에서는, 라이브 시작 후에만 rtmpPath를 제공
  • Y
    statusEnumeration [RESERVED, ONAIR, END]
  • 라이브 상태
  • 상태 관리를 하지 않는 서비스의 경우, ON_AIR를 기본값으로 제공
  • Y
    scopeEnumeration [PUBLIC, LIMITED, PRIVATE]
  • 라이브 공개 범위
  • PUBLIC: 공개, LIMITED: 일부 공개, PRIVATE: 비공개
  • Y
    liveLinkString
  • 해당 라이브를 볼 수 있는 서비스 링크
  • 없다면, 채널 홈 링크
  • Y
    liveStatObject라이브 통계 정보N

    liveStat dto

    The description of the liveStat dto is as follows:

    이름타입설명필수 여부
    viewCountNumber방송 시작부터 누적된 시청자 수
    viewerCountNumber
  • 현재 시청자 수
  • 시청자 수 기준 1분 단위로 권장
  • likeCountNumber방송 시작부터 누적된 좋아요 수
    chatCountNumber방송 시작부터 누적된 채팅 수

    Examples

    Introduces examples of syntax.

    Request examples

    An example of the syntax is as follows:

    curl -X GET {serviceApiDomain}/prism/v1/service/live/{liveId}
        -H "x-prism-access-token: {access-token}"
    

    Response examples

    An example of the syntax is as follows:

    {
        "success": true,
        "errorCode": 0,
        "errorName": null,
        "message": null,
        "data": {
            "channelId": 27155,
            "live": {
                "liveId": 57082,
                "title": "This is PRISM Live.",
                "description": "A description of the live.",
                "reservedAt": "2023-12-13T02:00:00+09:00",
                "startAt": null,
                "rtmpPath": "rtmp://global.rtmp.lip2.navercorp.com:8080/relay/scr14i1tgvvxl4av1a1x3i3u6dha",
                "status": "RESERVED",
                "liveLink": "https://example.com/1391275",
                "scope": "PUBLIC",
                "liveStat": {
                    "viewCount": 153,
                    "viewerCount": 55,
                    "likeCount": 34,
                    "chatCount": 15
                }
            }
        }
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.