Pour l'IA

Objet

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

ChampTypeDe viewDescription
idstringcompactID de la note.
urlstring | nullcompactLink to the note, with the access token that makes it open.
typestring | nullcompactNote image ou note vidéo.
titlestring | nullcompactLe titre de la note.
textstring | nullstandardLe texte de la note. · peut être tronqué en compact
published_atstring | nullcompactDate de publication.
imagesstring[] | nullstandardLiens des images, dans l'ordre.
creator_idstring | nullcompactL'ID PGY du créateur.
creator_namestring | nullcompactLe nom du créateur.
brandstring | nullcompactThe sponsoring brand, in the platform's words; null when it is not a reported sponsored note.
brand_idstring | nullstandardID du compte Xiaohongshu de cette marque ; null s'il n'y en a pas.
metricsPgyNoteMetricscompactLes chiffres de la note sur PGY.
component_clicksPgyComponentClicks | nullstandardClick-through bands of the components the brand added; null when there are none.
extobjetfullDonnées propres à la plateforme. Renvoyées uniquement avec view=full. · uniquement avec view=full

PgyNoteMetrics

ChampTypeDescription
impressionsinteger | nullImpressions.
viewsinteger | nullLectures.
likesinteger | nullJ'aime.
favoritesinteger | nullEnregistrements.
commentsinteger | nullCommentaires.
sharesinteger | nullPartages.
followsinteger | nullNouveaux abonnés apportés par la note.

PgyComponentClicks

ChampTypeDescription
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 qui renvoient un objet PgyNote

Connectez-vous une fois, puis demandez simplement.

Chaque nouvelle clé inclut $0.20 pour essayer. Une phrase suffit pour connecter votre agent.

Commencer gratuitement
Connectez votre IA

Collez ceci dans votre agent

Lis https://okdata.online/agents.md et configure okdata pour moi ; ma clé est dans la variable d'environnement OKDATA_API_KEY.

Claude Code, Cursor, Codex et les autres agents capables d'ouvrir un lien se configurent à partir de celui-ci.

Serveur MCPhttps://api.okdata.online/mcp