Dành cho AI

Đối tượng

Đối tượng PgyNote

One note as PGY shows it: text, pictures, creator, sponsoring brand and figures. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.

TrườngLoạiTheo viewMô tả
idstringcompactID bài note.
urlstring | nullcompactLink to the note, with the access token that makes it open.
typestring | nullcompactGhi chú ảnh hoặc ghi chú video.
titlestring | nullcompactTiêu đề bài note.
textstring | nullstandardNội dung bài note. · có thể bị cắt bớt ở chế độ compact
published_atstring | nullcompactThời điểm xuất bản.
imagesstring[] | nullstandardLiên kết ảnh theo thứ tự.
creator_idstring | nullcompactID PGY của creator.
creator_namestring | nullcompactTên creator.
brandstring | nullcompactThe sponsoring brand, in the platform's words; null when it is not a reported sponsored note.
brand_idstring | nullstandardID tài khoản Xiaohongshu của thương hiệu đó; null nếu không có.
metricsPgyNoteMetricscompactSố liệu của bài note trên PGY.
component_clicksPgyComponentClicks | nullstandardClick-through bands of the components the brand added; null when there are none.
extobjectfullDữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full

PgyNoteMetrics

TrườngLoạiMô tả
impressionsinteger | nullLượt hiển thị.
viewsinteger | nullLượt đọc.
likesinteger | nullLượt thích.
favoritesinteger | nullLượt lưu.
commentsinteger | nullBình luận.
sharesinteger | nullLượt chia sẻ.
followsinteger | nullSố người theo dõi mới mà bài note mang lại.

PgyComponentClicks

TrườngLoạiMô tả
comment_areastring | nullClick-through band of the comment-area component: normal (under 2%), high (2-10%) or very_high (over 10%); null when the note has none.
contentstring | nullClick-through band of the in-text component: normal (under 2%), high (2-10%) or very_high (over 10%); null when the note has none.
note_bottomstring | nullClick-through band of the component at the end of the note: normal (under 2%), high (2-10%) or very_high (over 10%); null when the note has none.

Các endpoint trả về PgyNote

Kết nối một lần, sau đó chỉ cần hỏi.

Mỗi khóa mới đi kèm $0.20 để dùng thử. Một câu là kết nối được agent của bạn.

Bắt đầu miễn phí
Kết nối AI của bạn

Dán câu này vào agent của bạn

Đọc https://okdata.online/agents.md và thiết lập okdata cho tôi; khóa của tôi nằm trong biến môi trường OKDATA_API_KEY.

Claude Code, Cursor, Codex và các agent khác có thể mở liên kết sẽ tự thiết lập từ đó.

MCP serverhttps://api.okdata.online/mcp