Chuyển tới nội dung chính

v2.livestream.get_session_detail

GET /api/v2/livestream/get_session_detail

Get basic information about the live streaming room, including cover, title, description, type (test live or normal live), create time, update time, stream url, etc. (For TW, ID, TH, PH, MY, SG, VN)

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/livestream/get_session_detail

Tham số chung

TênKiểuMẫuMô tả
partner_idint1Partner ID được cấp khi đăng ký thành công. Bắt buộc cho mọi yêu cầu.
timestamptimestamp1610000000Dùng để xác định thời điểm của yêu cầu. Bắt buộc cho mọi yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token truy cập API, dùng để xác định quyền của bạn. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
user_idint1Shopee's unique identifier for a user.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by(depends on different APIs) partner_id, api path, timestamp, access_token, user_id and partner_key via HMAC-SHA256 hashing algorithm.

Tham số Request

TênKiểuBắt buộcMẫuMô tả
session_idint64True6236215The identifier of livestream session.

Tham số Response

TênKiểuMẫuMô tả
errorstringCho biết loại lỗi nếu có lỗi xảy ra. Để trống nếu không có lỗi.
messagestringCho biết chi tiết lỗi nếu có lỗi xảy ra. Để trống nếu không có lỗi.
request_idstringe3e3e7f3360690a5b55f0689f8a4e801Mã định danh cho yêu cầu API, dùng để theo dõi lỗi.
responseobjectDetail informations you are querying.
session_idint646236215The identifier of livestream session.
titlestringtest titleThe title of the livestream session.
descriptionstringtest descriptionThe description of the livestream session.
cover_image_urlstringhttps://cf.shopee.sg/file/id-11134104-7r98o-m9y7ly25ngg927The cover image URL of the livestream session.
statusint321The status of the livestream session, the enumeration values are as follows: 0 - Initial 1 - Ongoing 2 - Ended
share_urlstringhttps://live.test.shopee.co.id/share?from=live&session=6905656The share link of the livestream session.
is_testbooleanfalseIndicate whether this livestream session if for testing purpose only.
create_timeint641747651742003The creation time of the livestream session. It's unix timestamp in seconds.
update_timeint641747651742003The update time of the livestream session. It's unix timestamp in seconds.
start_timeint641747651742003The start time of the livestream session, 0 if session is not started yet. It's unix timestamp in seconds.
end_timeint641747651742003The end time of livestream session, 0 if session is not ended yet. It's unix timestamp in seconds.
stream_url_listobject
push_urlstringrtmp://push-zl.lvb.test.shopee.co.id/liveThe push stream url for the livestream session.
push_keystringid-test-1987885338002432-6905656?zlSecret=61ef843a6d8e48357ac3d94db52447bf&zlTime=682FF4B1&pushDomain=push-zl.lvb.test.shopee.co.id&cdnID=ZENLAYER&session_id=6905656The push stream key for the livestream session.
play_urlstringhttp://play-zl.livestream.test.shopee.co.id/live/id-test-1987885338002432-6905656.flv?auditkey=1.0~9EzaSlc1o3iNfkh\_yixD-7yKuXaLPvJNR3CXbUw\_8mN08xmA2QEcpACaVOBSP61kDO4cbhwVwM5B10kAms4mgKsTQJS-ji50MBDkH-m81cE~e298bae2599bf1447f21131e2d73a6baf97bd9edcbe460a17e09cdce2c80c40d&cdnID=ZENLAYER&expire\_ts=1747714157The pull stream url of the livestream session.
domain_idint6457The identifier of the stream domain, need to be passed in request for v2.livestream.start_session.