# 如何识别小红书搜索导出用的是示例还是真实数据

[规范网址](https://social2api.com/guides/rednote-validate-real-data-marker/)

入库前检查 mode 与 provider，把 demo 导出用作字段测试。

## Agent 提示词

~~~~text
请在 Social2api 使用小红书笔记搜索 API，执行以下任务。
目标：让研究归档免混入示例结果。
输入与对照示例：导入前模式拦截。把 `mode=demo, requestCount=0` 的返回送到测试表，正式采样表仅接收 `mode=live` 的任务输出。
公开查询可先用免密钥合成示例；实时取数需要权限和部署支持。
按以下步骤完成：在小红书工作台运行一次「示例」并核对页面模式 自动脚本只接收 mode 为 live 的研究记录 把样例 CSV 与真实研究文件分开标注
交付能核对的结果和必要字段：mode、provider、requestCount、文件批次。注明来源或限制，并以本页为操作参考。
https://social2api.com/guides/rednote-validate-real-data-marker/
~~~~

[查看小红书搜索接口](https://social2api.com/docs/api/rednote-notes-search/)

## 本页用到的 Social2api 接口

| 接口与参数文档 | 用途 |
| --- | --- |
| [小红书公开笔记搜索](https://social2api.com/docs/api/rednote-notes-search/) · POST /api/run · task=rednote | 按关键词搜索公开笔记，并可用发布日期和结果条数收窄范围。 |
| [运行取数任务](https://social2api.com/docs/api/run/) · POST /api/run | 用同一接口运行三种平台任务，返回标准化列、结果行、提示和实际上游请求数。 |

## 在 Social2api 使用小红书笔记搜索 API

1. 在小红书工作台运行一次「示例」并核对页面模式
2. 自动脚本只接收 mode 为 live 的研究记录
3. 把样例 CSV 与真实研究文件分开标注

## 复制请求并试跑

核对响应的 mode 为 demo 且 requestCount 为 0，再用这份合成响应验收正式采样表的导入拦截。

这条请求使用合成样例，免登录、免 API Key，上游请求数为 0。要查真实数据，将 mode 改为 live，换成实际输入，并在 Authorization 中提供有相应任务权限的 Bearer API Key。可用 maxRequests 限制实时上游请求数。

~~~~bash
curl --fail-with-body -sS 'https://social2api.com/api/run' \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "task": "rednote",
  "mode": "demo",
  "params": {
    "query": "城市骑行",
    "limit": 4,
    "since": "2026-01-01",
    "until": "2026-01-15"
  }
}
JSON
~~~~

## 操作示例与核对

导入前模式拦截。把 `mode=demo, requestCount=0` 的返回送到测试表，正式采样表仅接收 `mode=live` 的任务输出。

## 需要核对的字段

mode、provider、requestCount、文件批次。

## 接口文档

- [小红书公开笔记搜索](https://social2api.com/docs/api/rednote-notes-search/)
- [运行取数任务](https://social2api.com/docs/api/run/)

## 相关用户讨论

- [用户讨论 · 小红书 · 有没有稳定的小红书批量采集方法？](https://www.reddit.com/r/DataHoarder/comments/1mp1t8p/has_anyone_had_success_scraping_chinese/)
- [相邻平台类比 · Instagram · Pull Instagram statistics into google spreadsheet](https://www.reddit.com/r/socialmedia/comments/q5rosw/pull_instagram_statistics_into_google_spreadsheet/)

## 相关指南和问答

- [如何按关键词搜索小红书笔记并导出 CSV](https://social2api.com/guides/xiaohongshu-keyword-search-export/)

[查看小红书搜索接口](https://social2api.com/docs/api/rednote-notes-search/)
