For AI

Object

PgyNote object

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.

FieldTypeFrom viewDescription
idstringcompactNote ID.
urlstring | nullcompactLink to the note, with the access token that makes it open.
typestring | nullcompactImage note or video note.
titlestring | nullcompactThe note's title.
textstring | nullstandardThe note's text. · may be cut in compact
published_atstring | nullcompactWhen it was published.
imagesstring[] | nullstandardPicture links in order.
creator_idstring | nullcompactThe creator's PGY ID.
creator_namestring | nullcompactThe creator's name.
brandstring | nullcompactThe sponsoring brand, in the platform's words; null when it is not a reported sponsored note.
brand_idstring | nullstandardThat brand's Xiaohongshu account ID; null when none.
metricsPgyNoteMetricscompactThe note's figures on PGY.
component_clicksPgyComponentClicks | nullstandardClick-through bands of the components the brand added; null when there are none.
extobjectfullPlatform-specific extras. Only returned with view=full. · only with view=full

PgyNoteMetrics

FieldTypeDescription
impressionsinteger | nullImpressions.
viewsinteger | nullReads.
likesinteger | nullLikes.
favoritesinteger | nullSaves.
commentsinteger | nullComments.
sharesinteger | nullShares.
followsinteger | nullNew followers the note brought.

PgyComponentClicks

FieldTypeDescription
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.

Endpoints that return a PgyNote

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

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