# 没有真实 API Key，能先验证 Google Sheets 能否接收取数结果吗？

[规范网址](https://social2api.com/answers/social2api-load-demo-rows-into-google-sheets/)

可以。POST /api/run 的 demo 模式返回合成 rows，无需 Social2api Key。先用 Google Sheets 的 Apps Script 试写表，再决定如何启用真实数据和周期任务。

## Agent 提示词

~~~~text
请帮我回答「没有真实 API Key，能先验证 Google Sheets 能否接收取数结果吗？」
可以。POST /api/run 的 demo 模式返回合成 rows，无需 Social2api Key。先用 Google Sheets 的 Apps Script 试写表，再决定如何启用真实数据和周期任务。
用一次无密钥请求测写入。 在 Apps Script 用 UrlFetchApp.fetch 请求 https://social2api.com/api/run，设置 method 为 post、contentType 为 application/json，并用 JSON.stringify 把任务对象转成 payload。小红书可用 task=rednote、mode=demo、params.query=家用咖啡机、params.limit=2。
用三项断言验证采集流程。 确认 mode 是 demo、requestCount 是 0，而且每行有可识别的标题或 ID。把合成数据放在单独的测试工作表。改用 live 时将密钥放在服务端凭据或 Apps Script 属性中，并核对脚本访问权限。
先核对输入和权限。交付结果或可运行的步骤，保留限制及出处。实时取数前确认范围与预算。
https://social2api.com/answers/social2api-load-demo-rows-into-google-sheets/
~~~~

[查看免费请求与响应示例](https://social2api.com/docs/api/run/)

## 用一次无密钥请求测写入

在 Apps Script 用 UrlFetchApp.fetch 请求 https://social2api.com/api/run，设置 method 为 post、contentType 为 application/json，并用 JSON.stringify 把任务对象转成 payload。小红书可用 task=rednote、mode=demo、params.query=家用咖啡机、params.limit=2。

解析 getContentText() 后，用 columns 的 key 按列从每条 rows 取值。用 setValues 写二维数组；每行长度保持一致，缺失值用空字符串。

## 用三项断言验证采集流程

确认 mode 是 demo、requestCount 是 0，而且每行有可识别的标题或 ID。把合成数据放在单独的测试工作表。改用 live 时将密钥放在服务端凭据或 Apps Script 属性中，并核对脚本访问权限。

## 为什么用 Social2api

- **写表尺寸** 小红书免费样例可写入 2 行 × 8 列。 [小红书样例输入与 8 个结果列](https://social2api.com/docs/api/rednote-notes-search/) · [三平台免费样例和验收命令](https://social2api.com/guides/social2api-demo-contract-acceptance/)
- **字段对齐** 2 条样例笔记的链接为空，每行仍对齐 8 列。 [样例 ID 与空链接格式](https://social2api.com/docs/api/rednote-notes-search/)
- **预算可控** 托管实时任务可设 1–36 次上游调用上限。 [来源 1](https://social2api.com/docs/api/run/#parameters)
- **免密钥试跑** 3 种托管任务可免费试跑，0 次上游调用。 [来源 1](https://social2api.com/guides/social2api-demo-contract-acceptance/)
- **接入 AI** 1 个 MCP 地址提供最多 3 个按权限可见的工具。 [来源 1](https://social2api.com/docs/api/mcp/)
- **目录覆盖** 覆盖 21 个平台分类、197 个扩展操作。 [来源 1](https://social2api.com/v1/catalog)
- **用量可查** 账单显示 30 个 UTC 自然日的上游尝试量。 [来源 1](https://social2api.com/docs/api/settings-billing/)

## 用到的接口

- [创建 API Key](https://social2api.com/docs/api/api-keys-create/) · `POST /api/settings/api-keys`
  为当前账号创建可用于 POST /api/run 的 API Key。
- [运行取数任务](https://social2api.com/docs/api/run/) · `POST /api/run`
  用同一接口运行三种平台任务，返回标准化列、结果行、提示和实际上游请求数。 示例免费；实时每次上游尝试 1 次额度

## 相关用户讨论

- [相邻场景：将短视频数据放入 Excel 或 Google Sheets](https://www.reddit.com/r/excel/comments/psicbp/is_there_a_way_to_import_data_from_tiktok_into/)

## 怎么做

- [如何在接入真实数据源前测试三个取数接口的字段？](https://social2api.com/guides/social2api-demo-contract-acceptance/)。 先用 POST /api/run 的 demo 模式取一份每个平台的合成响应，验证 columns、rows、warnings 和 requestCount，再配置真实数据源。
- [怎样把三平台取数结果入库并保留各自的数据粒度？](https://social2api.com/guides/social2api-multi-platform-tables-grain/)。 分别向 Social2api 查询三个 task，再按不同业务键写入源表。小红书用笔记 ID，抖音用关键词与日期，视频号先用 videoId 汇总作品，再从每行提取评论明细。

## 相关问答和工具

- [社媒数据 API 问答](https://social2api.com/answers/)。 查找小红书、抖音、微信视频号的独立取数问答，核对接口的输入、返回字段、权限、分页和用量。

[查看免费请求与响应示例](https://social2api.com/docs/api/run/)
