# PgyCreatorCostHistory

> 蒲公英達人一段時間內的成本和筆記中位數，以及逐日資料。

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

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

| 欄位 | 型別 | 說明 |
|---|---|---|
| `creator_id` | string | 蒲公英達人 ID。 |
| `days` | integer | 資料覆蓋最近多少天。 |
| `currency` | string \| null | 成本的貨幣（ISO 4217）。 |
| `date` | string \| null | 資料截止日：中國時間（UTC+8）的一個自然日，寫成該日期的 UTC 零點。 |
| `cpm` | number \| null | 千次曝光成本（元）；沒有時為 null。 |
| `cpe` | number \| null | 單次互動成本（元）；沒有時為 null。 |
| `cpv` | number \| null | 單次閱讀成本（元），按趨勢圖口徑；沒有時為 null。 |
| `shop_visit_cost` | number \| null | 筆記帶來每個進店訪客的成本（元）；沒有時為 null。 |
| `median_impressions` | integer \| null | 筆記曝光中位數。 |
| `median_reads` | integer \| null | 筆記閱讀中位數。 |
| `median_engagements` | integer \| null | 筆記互動中位數。 |
| `median_shop_visits` | integer \| null | 筆記帶來進店人數的中位數；沒帶來的計為 0。 |
| `points` | PgyCostPoint[] | 逐日資料，從早到晚。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

### PgyCostPoint

| 欄位 | 型別 | 說明 |
|---|---|---|
| `date` | string | 日期：中國時間（UTC+8）的一個自然日，寫成該日期的 UTC 零點。 |
| `cpm` | number \| null | 千次曝光成本（元）；沒有時為 null。 |
| `cpe` | number \| null | 單次互動成本（元）；沒有時為 null。 |
| `cpv` | number \| null | 單次閱讀成本（元），按趨勢圖口徑；沒有時為 null。 |
| `shop_visit_cost` | number \| null | 筆記帶來每個進店訪客的成本（元）；沒有時為 null。 |
| `median_impressions` | integer \| null | 筆記曝光中位數。 |
| `median_reads` | integer \| null | 筆記閱讀中位數。 |
| `median_engagements` | integer \| null | 筆記互動中位數。 |
| `median_shop_visits` | integer \| null | 筆記帶來進店人數的中位數；沒帶來的計為 0。 |

## 返回 PgyCreatorCostHistory 的介面

- [小紅書蒲公英達人核心資料趨勢](https://okdata.online/zh/apis/xiaohongshu/pgy/creators/costs/history/) (`xiaohongshu.pgy.creators.costs.history`): $0.04/次

## 各 view 返回的欄位

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

- compact：`creator_id`, `days`, `currency`, `date`, `cpm`, `cpe`, `cpv`, `shop_visit_cost`, `median_impressions`, `median_reads`, `median_engagements`, `median_shop_visits`, `points`
- standard：—
- full：`ext`
