# 怎麼區分小紅書的影片筆記和圖文筆記？

> 小紅書影片筆記和圖文筆記的連結長得一樣。看 type 欄位，或者搜尋時用 type=video、type=image 過濾，並瞭解兩種筆記各返回什麼：一種是全部圖片，一種只有封面。

網頁版：https://okdata.online/zh-hant/answers/xiaohongshu-note-type-video-image/

**簡短回答：**從連結看不出來，兩種筆記都是同一個 /explore/<id> 地址。要看 type 欄位：okdata 返回的每篇筆記都標了 video 或 image；或者小紅書筆記搜尋時加 type=video 或 type=image 過濾，每頁 $0.035。筆記詳情（$0.035）對圖文筆記給出全部圖片，對影片筆記只給封面。

小紅書筆記分兩種。圖文筆記是一組可以左右滑的圖片，加標題和正文，小紅書自己的資料裡把它叫作 normal 筆記；影片筆記是一段影片，加標題和正文。在 App 裡一眼就能分清，到了資料裡卻很容易漏掉：兩種都開啟 `xiaohongshu.com/explore/<24 位 ID>`，點贊、收藏、評論這些數一樣都有，而且兩種都帶圖片，因為影片筆記有封面。“下載筆記全部圖片”的程式碼碰到影片筆記，會悄悄只存下一張封面；比較圖文和影片效果的分析，如果從沒把兩種分開，結論也是錯的。解決辦法是讀筆記型別，每篇筆記都帶著。

## 型別在哪裡

| 位置 | 圖文筆記 | 影片筆記 |
|---|---|---|
| 連結 | `/explore/<id>` | `/explore/<id>`（沒有區別） |
| okdata 資料裡的 `type` | `image` | `video` |
| `images` | 全部圖片，取能拿到的最大尺寸 | 只有封面 |
| 影片檔案地址 | 不適用 | 不返回 |
| 點贊、收藏、評論、分享 | 有 | 有 |
| `metrics.views` | null | null |

## 三種區分辦法

1. **搜尋時過濾。**[小紅書筆記搜尋](/zh/apis/xiaohongshu/notes/search/)支援 `type=video` 或 `type=image`（預設 `all`），和 App 搜尋篩選裡“影片”“圖文”的選項一致。某個關鍵詞只要一種時用它。
2. **單篇筆記看 `type`。**[筆記詳情](/zh/apis/xiaohongshu/notes/get/)對單個 ID 或連結返回 `type`。
3. **博主筆記列表裡看 `type`。**[博主筆記列表](/zh/apis/xiaohongshu/users/notes/list/)每篇都帶 `type`，下 brief 之前就能算出這個博主的內容構成，比如七成是圖文。

| 任務 | 呼叫次數 | 費用 |
|---|---|---|
| 某個關鍵詞的一頁影片筆記 | 1 | $0.035 |
| 同一個詞兩種型別各翻 5 頁 | 10 | $0.35 |
| 博主最近 20 篇筆記及型別 | 1 | $0.03 |

## 示例：同一個關鍵詞下比較圖文和影片

```python
import os, statistics, requests

URL = "https://api.okdata.online/v1/xiaohongshu/notes/search"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}

for kind in ["image", "video"]:
    body = requests.get(URL, headers=H, timeout=60,
                        params={"query": "防曬霜 推薦", "type": kind, "sort": "popular",
                                "fields": "id,type,metrics.likes,metrics.favorites"}).json()
    notes = body["data"]["items"]
    saves = [n["metrics"]["favorites"] or 0 for n in notes]
    print(kind, len(notes), "篇，收藏中位數：", statistics.median(saves) if saves else None)
```

## 限制

- 不返回影片檔案地址。影片筆記在 `images` 裡給封面，影片本身拿不到。
- `type` 說的是筆記，不是博主。要找以某一種內容為主的博主，蒲公英達人搜尋有自己的 `type` 篩選，見[蒲公英圖文和影片筆記報價](/zh/answers/pgy-creator-price-image-video/)。
- 兩種筆記的資料欄位相同，比較時看收藏和評論，沒有播放量。圖文筆記的全部原圖怎麼下載，見[小紅書筆記圖片](/zh/answers/xiaohongshu-note-images-api/)。

## 用到的介面

- [小紅書筆記搜尋](https://okdata.online/zh/apis/xiaohongshu/notes/search/) `xiaohongshu.notes.search`：$0.035/次 · 每頁約 20 篇筆記
- [小紅書筆記詳情](https://okdata.online/zh/apis/xiaohongshu/notes/get/) `xiaohongshu.notes.get`：$0.035/次
- [小紅書博主筆記列表](https://okdata.online/zh/apis/xiaohongshu/users/notes/list/) `xiaohongshu.users.notes.list`：$0.03/次 · 每頁約 20 篇筆記

## 更多小紅書內容

- [小紅書 API](https://okdata.online/zh/apis/xiaohongshu/)
- [小紅書 API Python 教程：筆記、博主和評論（2026）](https://okdata.online/zh/guides/xiaohongshu-api-python/)
- [怎麼按關鍵詞批次匯出小紅書評論](https://okdata.online/zh/guides/xiaohongshu-note-comments/)
- [怎麼在小紅書蒲公英按報價和閱讀量篩達人](https://okdata.online/zh/guides/xiaohongshu-pgy-creator-rates/)
- [怎麼搜尋小紅書筆記並匯出成 CSV 表格](https://okdata.online/zh/guides/xiaohongshu-search-export-notes/)
- [怎麼批次獲取小紅書筆記裡的全部原圖？](https://okdata.online/zh/answers/xiaohongshu-note-images-api/)
- [怎麼區分小紅書的影片筆記和圖文筆記？](https://okdata.online/zh/answers/xiaohongshu-note-type-video-image/)
- [海外品牌怎麼監控小紅書上的品牌討論？](https://okdata.online/zh/answers/monitor-rednote-brand-mentions-outside-china/)
- [抖音、小紅書、影片號的資料有沒有一個 API 能統一拿到？](https://okdata.online/zh/answers/douyin-xiaohongshu-wechat-channels-one-api/)
- [人在海外，怎麼讓 AI 讀到國內版小紅書的資料？](https://okdata.online/zh/answers/xiaohongshu-data-for-agents-outside-china/)
- [怎麼搭一個小紅書爆款筆記庫，用來找選題、拆爆文？](https://okdata.online/zh/answers/xiaohongshu-viral-notes-library/)
- [自己爬還是按次呼叫資料介面：成本、維護和風險](https://okdata.online/zh/compare/scraping-vs-data-api/)
- [怎麼選社交媒體資料 API（2026）](https://okdata.online/zh/compare/social-media-data-apis/)
- [社媒資料 MCP 伺服器：自己部署還是用託管的](https://okdata.online/zh/compare/social-media-data-mcp-servers/)

## 資料來源

- [Spider_XHS: download code branches on the note type 'video' (issue #3)](https://github.com/cv-cat/Spider_XHS/issues/3) (讀取於 2026-11-12)
- [XHS-Downloader README: separate switches for image (圖文/圖集) and video works](https://github.com/JoeanAmier/XHS-Downloader) (讀取於 2026-11-12)

這個問題出現過的地方（讀取於 2026-11-12）：

- https://github.com/cv-cat/Spider_XHS/issues/3
- https://github.com/JoeanAmier/XHS-Downloader/issues/441

更新於 2026-11-12
