Feed

Bảng tin "Dành cho bạn" của người dùng hiện tại

Changed on

Xếp hạng theo: người đang theo dõi, mã quan tâm (watchlist, cảnh báo giá, mã xem gần đây), nhóm đã tham gia, độ hot, chất lượng, độ mới (theo giờ thị trường), biến động giá trong phiên. Mỗi bài có feedReason / feedReasonCode. offset = 0 lấy bảng tin mới nếu bản đang có cũ quá 2 phút; refresh = true luôn xếp hạng lại (kéo để làm mới). Trang sau cắt từ cùng một bản xếp hạng (tối đa 200 bài) nên không trùng, không sót dù request rơi vào máy chủ nào.

get/feed/for-you

Request

Query parameters

offsetinteger

Vị trí bản ghi đầu tiên (mặc định 0)

limitinteger

Số bản ghi tối đa (mặc định 20, tối đa 100)

refreshboolean

true = xếp hạng lại ngay

lang'vi' | 'en'

Ngôn ngữ dữ liệu (tuỳ chọn). Mặc định tiếng Việt; en = tiếng Anh, phần chưa có bản dịch trả tiếng Việt. (vi, en)

Response

Thành công (danh sách rỗng = hết bảng tin)

postIDinteger
userNamestring
titlestring
descriptionstring
summarystring
hasSummaryboolean
typeinteger
newsTypeinteger
videoUrlstring
videoThumbnailUrlstring
videoWidthinteger
videoHeightinteger
languagestring
isSourceContentFullboolean
postSourceUrlstring
contentstring
originalContentstring
contentURLstring
isAIGeneratedboolean
datestring date-time
priorityinteger
hasImageboolean
hasFileboolean
linkstring
linkImagestring
linkTitlestring
linkDescriptionstring
sentimentinteger
approvedboolean
isTopboolean
isExpertIdeaboolean
likedboolean
totalLikesinteger
totalRepliesinteger
totalSharesinteger
replyToPostIDinteger
referToPostIDinteger
roomIDinteger
roomNamestring
isRoomStickyboolean
videoTypeinteger
isVideoboolean
isEmagazineboolean
isInfographicboolean
lastRepliedDatestring date-time
isLivestreamboolean
livestreamStartedboolean
livestreamEndedboolean
streamingUrlstring
streamingKeystring
youtubeStreamingUrlstring
youtubeStreamingKeystring
facebookStreamingUrlstring
facebookStreamingKeystring
livestreamActionboolean
livestreamActionTitlestring
livestreamActionUrlstring
livestreamActionRoutestring
repliesDisabledboolean
repliesModerationRequiredboolean
pendingApprovalboolean
feedReasonstring

Lý do bài xuất hiện trong bảng tin cá nhân hoá, ví dụ "Về HPG trong danh mục theo dõi". Chỉ có ở feed/for-you; các API khác không trả trường này.

feedReasonCodestring

Mã lý do: follow, affinity, watchlist, alert, recent, interest, room, trending, expert, disclosure, explore, own

Changes