# PgyNote

> 蒲公英里的一篇筆記：正文、圖片、達人、合作品牌和資料。

網頁版：https://okdata.online/zh/docs/objects/pgy_note/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | 筆記 ID。 |
| `url` | string \| null | 筆記連結，帶可直接開啟的訪問令牌。 |
| `type` | string \| null | 圖文筆記或影片筆記。 |
| `title` | string \| null | 筆記標題。 |
| `text` | string \| null | 筆記正文。 |
| `published_at` | string \| null | 釋出時間。 |
| `images` | string[] \| null | 圖片地址，按筆記順序。 |
| `creator_id` | string \| null | 達人的蒲公英 ID。 |
| `creator_name` | string \| null | 達人暱稱。 |
| `brand` | string \| null | 報備的合作品牌，平台原文；非報備合作筆記為 null。 |
| `brand_id` | string \| null | 該品牌的小紅書帳號 ID；沒有時為 null。 |
| `metrics` | PgyNoteMetrics | 蒲公英給出的筆記資料。 |
| `component_clicks` | PgyComponentClicks \| null | 品牌元件的點選率檔位；沒有時為 null。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

### PgyNoteMetrics

| 欄位 | 型別 | 說明 |
|---|---|---|
| `impressions` | integer \| null | 曝光數。 |
| `views` | integer \| null | 閱讀數。 |
| `likes` | integer \| null | 點贊數。 |
| `favorites` | integer \| null | 收藏數。 |
| `comments` | integer \| null | 評論數。 |
| `shares` | integer \| null | 分享數。 |
| `follows` | integer \| null | 筆記帶來的新增關注。 |

### PgyComponentClicks

| 欄位 | 型別 | 說明 |
|---|---|---|
| `comment_area` | string \| null | 評論區元件的點選率檔位：normal（2% 以下）、high（2%-10%）或 very_high（10% 以上）；沒有該元件時為 null。 |
| `content` | string \| null | 正文元件的點選率檔位：normal（2% 以下）、high（2%-10%）或 very_high（10% 以上）；沒有該元件時為 null。 |
| `note_bottom` | string \| null | 筆記底部元件的點選率檔位：normal（2% 以下）、high（2%-10%）或 very_high（10% 以上）；沒有該元件時為 null。 |

## 返回 PgyNote 的介面

- [小紅書蒲公英筆記資料](https://okdata.online/zh/apis/xiaohongshu/pgy/notes/get/) (`xiaohongshu.pgy.notes.get`): $0.04/次

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `ext` 里加上平台特有欄位。

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