# PgyNote

> One note as PGY shows it: text, pictures, creator, sponsoring brand and figures.

Canonical page: https://okdata.online/docs/objects/pgy_note/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | 노트 ID. |
| `url` | string \| null | Link to the note, with the access token that makes it open. |
| `type` | string \| null | 이미지 노트 또는 비디오 노트. |
| `title` | string \| null | 노트 제목. |
| `text` | string \| null | 노트 본문. |
| `published_at` | string \| null | 발행 시각. |
| `images` | string[] \| null | 이미지 링크(순서대로). |
| `creator_id` | string \| null | 크리에이터의 PGY ID. |
| `creator_name` | string \| null | 크리에이터 이름. |
| `brand` | string \| null | The sponsoring brand, in the platform's words; null when it is not a reported sponsored note. |
| `brand_id` | string \| null | 해당 브랜드의 Xiaohongshu 계정 ID. 없으면 null. |
| `metrics` | PgyNoteMetrics | PGY 기준 노트 수치. |
| `component_clicks` | PgyComponentClicks \| null | Click-through bands of the components the brand added; null when there are none. |
| `ext` | object | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |

### PgyNoteMetrics

| Field | Type | Description |
|---|---|---|
| `impressions` | integer \| null | 노출 수. |
| `views` | integer \| null | 열람 수. |
| `likes` | integer \| null | 좋아요 수. |
| `favorites` | integer \| null | 저장 수. |
| `comments` | integer \| null | 댓글 수. |
| `shares` | integer \| null | 공유 수. |
| `follows` | integer \| null | 노트로 늘어난 신규 팔로워 수. |

### PgyComponentClicks

| Field | Type | Description |
|---|---|---|
| `comment_area` | string \| null | Click-through band of the comment-area component: normal (under 2%), high (2-10%) or very_high (over 10%); null when the note has none. |
| `content` | string \| null | Click-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_bottom` | string \| null | Click-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

- [Xiaohongshu PGY 노트 지표](https://okdata.online/apis/xiaohongshu/pgy/notes/get/) (`xiaohongshu.pgy.notes.get`): $0.04 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `url`, `type`, `title`, `published_at`, `creator_id`, `creator_name`, `brand`, `metrics`
- standard: `text`, `images`, `brand_id`, `component_clicks`
- full: `ext`
