小红书(Xiaohongshu,也叫 RedNote 或 RED)、抖音和微博是中国消费者发现产品、评价产品和讨论品牌的地方,内容大多是中文。无论是小红书数据抓取、抖音数据采集还是微博搜索,Lovely Router 都只需一次 API 调用:发送一个关键词,即可以 JSON 形式拿回笔记、视频和帖子,按结果计费。它专为做中国市场调研的品牌和代理机构打造,无论你是在海外筹备进入中国市场,还是在国内追踪竞品、KOL 和品牌舆情。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
Research Xiaohongshu (RedNote) notes, Douyin videos and Weibo posts for brand and market research. Search with Chinese keywords; translate what you report into my language. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the brand, product or topic and what you want to learn>工作原理
选择关键词
搜索你的客户实际使用的词:露营、咖啡、某个产品品类或品牌名。抖音和微博也支持英文查询和品牌名。
运行搜索
把关键词发送到
POST /v1/tools/{id}/run,并用max_results设置上限。运行会预留它的最高费用,并以 JSON 返回结果。阅读、翻译、总结
结果以原始语言返回。用同一个密钥把它们发给某个模型,即可翻译成英文,或用英文总结、打标签。
一次请求搜索小红书笔记
小红书搜索每次调用执行一个 operation。search_notes 返回某个关键词下的笔记;下面这次运行请求点赞最多的 20 篇露营笔记:
curl https://lovelyrouter.com/v1/tools/xiaohongshu-search/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {"operation": "search_notes", "keyword": "露营", "sort_type": "like_count_descending"},
"max_results": 20
}'每篇笔记都是 items 中的一项,采用工具自己的格式;先运行一次小规模搜索,看清有哪些字段,再在此基础上开发。超过 60 秒仍在进行的运行会返回 202;轮询方法参阅运行工具。
抖音的用法相同。下面这次运行返回过去一周点赞最多的咖啡视频,最多 50 条:
curl https://lovelyrouter.com/v1/tools/douyin-search/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{"input": {"keywords": ["咖啡"], "sort": "most_liked", "publishTime": "one_week"}, "max_results": 50}'各工具返回什么
按关键词获取小红书笔记。
按关键词获取抖音视频。
按关键词获取微博帖子。
按关键词或话题标签搜索 TikTok 视频:文案、播放、点赞、分享、作者、音乐。
搜索网页:最多 50 条结果,包含标题、URL、日期、站点、简短摘要和供模型阅读的长摘要(需要时可附带网页正文)。支持运算符:site:、-site:、"精确短语"、-词、lang:、after:、before:。
小红书(RedNote)。 xiaohongshu-search 在 operation 设为 search_notes 时返回某个关键词下的笔记。sort_type 可按 general、time_descending 排序,也可按点赞、评论或收藏最多排序(like_count_descending、comment_count_descending、collect_count_descending)。它的输入结构还列出了其他操作,其中包括 get_note_detail 和 get_note_comments(需要 note_id)、get_user_info 和 list_user_notes(需要 user_id),以及 search_products(需要 keyword);选择其中一个,只填写它用到的字段。字段说明提供中英文两种。
抖音。 抖音搜索根据一个或多个 keywords 返回视频。中文、英文、话题标签、品牌名和 emoji 都可以。每个关键词单独搜索,不同关键词之间的重复结果会被去除;一个贴近实际的关键词通常能得到几百条不重复的视频。可按 general、most_liked 或 latest 排序,并把 publishTime 限定为 one_day、one_week 或 half_year。
微博。 微博搜索每次调用执行一个 operation:
| 操作 | 输入 | 返回 |
|---|---|---|
searchWeibo | keyword(中文、英文或中英混合)、maxPages | 该关键词下的帖子,每页约 14 条 |
userDetail | userId | 粉丝数、关注数、微博数、认证原因、所在地、性别、简介 |
userFans、userFollowers | userId、maxPages | 该用户的粉丝列表或关注者列表,每页约 20 个用户 |
数字形式的 userId 可以在个人主页 URL(weibo.com/u/{ID})中找到,也在搜索结果的 userId 或 user_id 字段中。
常见用法
用中文品类词运行 xiaohongshu-search,并设置 "sort_type": "like_count_descending"。让模型用英文列出热门笔记中出现的品牌、价位和吐槽点。
用你的品牌或品类运行 searchWeibo,设置 "maxPages": 3,挑出反复出现的 userId,再逐个运行 userDetail,获取粉丝数和认证原因。
每周用几个相关关键词运行 douyin-search,设置 "publishTime": "one_week" 和 "sort": "most_liked",比较每周排在前面的视频。
用 TikTok 搜索以英文搜索同一主题,并设置 "US" 等 location,把内容形式和开头钩子与抖音热门视频进行对比。
网页搜索支持 lang:zh 运算符,可查找中文文章和新闻,每次搜索 $0.0009。
个人数据
在许多地方,创作者资料和粉丝列表都属于个人数据。无论你和数据中涉及的人身处何地,你都有责任合法使用所收集的内容;参阅可接受使用政策。
连接 MCP 服务器后,一条提示词就能完成第一个用法:“在小红书上搜索关于露营、点赞最多的 30 篇笔记,在微博上搜索关于露营装备的帖子,然后用英文总结大家最常提到哪些品牌和产品。每次运行都要设置 max_results。”
费用说明
每次运行按结果计费:一篇笔记、一条视频或一条帖子各算一个结果,微博另收每次调用费;上方卡片显示当前价格。启动运行时会预留它的最高费用,即每次调用费加上每条结果费乘以 max_results,结束后按实际返回的结果结算。失败或超时的运行只为已交付的结果付费,启动时就被拒绝的运行不产生任何费用。
没有订阅。从 $5 起充值,同一个余额也用来支付负责翻译和总结的模型。各工具的价格参阅价格页。
常见问题
可以用中文搜索吗?+
可以。抖音关键词可以是中文、英文、话题标签、品牌名或 emoji,微博支持中文、英文和中英混合查询。小红书工具自带的示例搜索的就是“露营”。
小红书就是 RedNote 吗?+
是的。小红书(Xiaohongshu)也被称为 RedNote、RED 或 XHS。xiaohongshu-search 工具搜索的就是它的笔记,其输入结构中也使用了所有这些名称。
需要中国手机号或这些平台的账号吗?+
不需要。输入中不包含任何小红书、抖音或微博账号。你只需用 Lovely Router API 密钥和包含关键词或 ID 的 JSON 输入,就能调用这三个工具。
除了搜索结果,还能获取创作者资料和评论吗?+
微博可以:userDetail 返回用户资料,userFans 和 userFollowers 返回用户的粉丝列表和关注者列表。小红书工具的输入结构列出了按 note_id 获取笔记详情和评论、按 user_id 获取用户资料和笔记的操作,通过 operation 字段选择。
结果会以英文返回吗?+
不会,结果以原始语言返回。你可以通过同一个密钥,用任意对话模型翻译或总结它们。对于中文团队,GET /v1/tools?lang=zh 会以中文返回目录中的工具名称和描述。
如何计费?+
按返回的结果计费,从预付费余额中扣除,微博工具另收每次调用费。一次运行的费用永远不会超过每次调用费加上每条结果价格乘以 max_results。