AI 向け

オブジェクト

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.

フィールド種類view から説明
idstringcompactノート ID。
urlstring | nullcompactLink to the note, with the access token that makes it open.
typestring | nullcompact画像ノートまたは動画ノート。
titlestring | nullcompactノートのタイトル。
textstring | nullstandardノートの本文。 · compact では省略される場合あり
published_atstring | nullcompact公開日時。
imagesstring[] | nullstandard画像リンク(順番どおり)。
creator_idstring | nullcompactクリエイターの PGY ID。
creator_namestring | nullcompactクリエイター名。
brandstring | nullcompactThe sponsoring brand, in the platform's words; null when it is not a reported sponsored note.
brand_idstring | nullstandardそのブランドの Xiaohongshu アカウント ID。ない場合は null。
metricsPgyNoteMetricscompactPGY でのノートの数値。
component_clicksPgyComponentClicks | nullstandardClick-through bands of the components the brand added; null when there are none.
extオブジェクト全体プラットフォーム固有の追加情報。view=full の場合のみ返されます。 · view=full の場合のみ

PgyNoteMetrics

フィールド種類説明
impressionsinteger | nullインプレッション数。
viewsinteger | null閲覧数。
likesinteger | nullいいね数。
favoritesinteger | null保存数。
commentsinteger | nullコメント数。
sharesinteger | nullシェア数。
followsinteger | nullノートがもたらした新規フォロワー数。

PgyComponentClicks

フィールド種類説明
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.

PgyNote を返すエンドポイント

一度つなげば、あとは聞くだけ。

新しいキーには $0.20 の無料クレジットが付きます。AI に1文貼るだけで接続できます。

無料で始める
AI につなぐ

これを AI エージェントに貼り付けてください

https://okdata.online/agents.md を読んで、okdata を設定してください。キーは環境変数 OKDATA_API_KEY に入っています。

Claude Code、Cursor、Codex など、リンクを開ける AI エージェントなら、読んで自分で設定します。

MCP サーバーhttps://api.okdata.online/mcp