# How do I install Xiaohongshu, Douyin and WeChat data skills in OpenClaw?

> Install okdata's Xiaohongshu, Douyin and WeChat Official Account skills from ClawHub, put the key in ~/.openclaw/.env, then ask OpenClaw for notes, comments and hot searches in one sentence.

Canonical page: https://okdata.online/answers/openclaw-xiaohongshu-douyin-skill/

**Short answer: **Run `openclaw skills install @conn-ho/okdata-xiaohongshu` (and okdata-douyin, okdata-wechat-mp), put your okdata key in ~/.openclaw/.env as OKDATA_API_KEY, restart the Gateway, then ask in plain words. One page of Xiaohongshu note search is $0.02 for about 20 notes, the Douyin hot search board is $0.002, and a realistic first week of 46 calls comes to $0.704.

An OpenClaw user filed a request on GitHub: when the agent gets a Douyin or Xiaohongshu link, it opens a browser by default, and he has to add "use the skill" every time. That only helps if a dependable data skill is installed. okdata publishes one each for Xiaohongshu, Douyin and WeChat Official Accounts on ClawHub. They call an API for public data, so no platform account, cookie or QR login is involved.

## Set it up once

Install the skills. OpenClaw's docs give `openclaw skills install @owner/<slug>`, and okdata's skills are under conn-ho:

```bash
openclaw skills install @conn-ho/okdata-xiaohongshu
openclaw skills install @conn-ho/okdata-douyin
openclaw skills install @conn-ho/okdata-wechat-mp
openclaw skills install @conn-ho/okdata
```

The last one is the general skill: it lets the agent pick from all 265 endpoints on 30 platforms, TikTok, YouTube, Instagram, X, Reddit and Amazon among them. Skills go into the workspace `skills/` folder; `--global` puts them in `~/.openclaw/skills` for every local agent. If your version rejects the `@conn-ho/` prefix, drop it. We checked every skill named here with `clawhub inspect` on November 18; ClawHub's scan verdict was clean for all of them.

Then get a key in the [console](/console/) (a new key comes with $0.10 of credit), add `OKDATA_API_KEY=okd_...` to `~/.openclaw/.env`, and run `openclaw gateway restart`. OpenClaw reads that file at startup without overriding variables already set. If the agent runs in a sandbox, make sure the variable reaches it.

Last, in a new session, ask: "Follow https://okdata.online/agents.md to check that okdata is connected; the key is in OKDATA_API_KEY. Make no paid call; tell me the balance." [agents.md](/agents.md) is a four-step checklist the agent works through.

## Then ask in plain words

Name the skill or say "use okdata", so the agent does not reach for the browser first.

| You say | Endpoint | Cost |
|---|---|---|
| "Use okdata-xiaohongshu to search 露营 装备, most popular, one page; list the 5 most-liked notes" | [Xiaohongshu note search](/apis/xiaohongshu/notes/search/) | $0.02 |
| "What are people saying under this note? Read two pages of comments" | [Xiaohongshu note comments](/apis/xiaohongshu/notes/comments/list/), about 10 a page | $0.04 |
| "Show today's top 20 on Douyin hot search" | [Douyin hot search board](/apis/douyin/trends/list/), about 50 entries | $0.002 |
| "List the newest page of articles from Official Account gh_xxxx and read two in full" | [Official Account article history](/apis/wechat_mp/accounts/articles/list/) plus 2 × [article detail](/apis/wechat_mp/articles/get/) | $0.06 |

Search Chinese platforms in Chinese; the notes and videos are written in it.

## A first week, priced

A small outdoor-gear team checks Douyin hot search every morning, searches a few keywords on Xiaohongshu and Douyin, reads comments, and follows three rivals' Official Accounts:

| Job | Calls | Cost |
|---|---|---|
| Douyin hot search, daily | 7 | $0.014 |
| Xiaohongshu: 5 keywords × 2 pages, then comments on 10 notes | 20 | $0.40 |
| Douyin: 3 keyword searches, then comments on 5 videos | 8 | $0.07 |
| WeChat: find 3 accounts by name ([live search](/apis/wechat/accounts/search/)), newest page each, read 5 articles | 11 | $0.22 |
| The week | 46 | $0.704 |

Pay per call, no subscription; every endpoint has its own price on the [pricing page](/pricing/). Your model's own tokens are separate.

## The same calls in Python

```python
import os, requests

API = "https://api.okdata.online"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}

def get(path, **params):
    body = requests.get(API + path, headers=H, params=params, timeout=60).json()
    if body["code"] != "ok":
        raise RuntimeError(f"{path}: {body['code']} {body['message']}")
    return body["data"]["items"]

for t in get("/v1/douyin/trends/list", fields="rank,name,heat")[:10]:
    print(t["rank"], t["name"], t["heat"])

notes = get("/v1/xiaohongshu/notes/search", query="露营 装备", sort="popular", fields="id,url,title,metrics.likes")
top = max(notes, key=lambda n: n["metrics"]["likes"] or 0)
for c in get("/v1/xiaohongshu/notes/comments/list", id=top["id"], fields="text,likes"):
    print(c["likes"], c["text"])
```

## MCP instead of, or next to, the skills

OpenClaw can save a remote MCP server: `openclaw mcp set okdata '{"url":"https://api.okdata.online/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer ${OKDATA_API_KEY}"}}'`. Keep the single quotes so the reference is stored and resolved from the environment. The skills tell the agent which endpoint answers which question and what it costs; with MCP connected it calls through MCP, otherwise over HTTP. See the [MCP page](/mcp/).

Not on OpenClaw? `npx skills add okdataapi/skills` installs the set into Claude Code, Codex and other agents that read SKILL.md. Related: [writing your own Claude Code skill](/answers/agent-skill-social-media-data/), [WorkBuddy](/answers/workbuddy-douyin-xiaohongshu-wechat-data/), [Doubao](/answers/doubao-douyin-xiaohongshu-data/) and [Qwen](/answers/qwen-douyin-xiaohongshu-data/).

## Endpoints used

- [Xiaohongshu note search](https://okdata.online/apis/xiaohongshu/notes/search/) `xiaohongshu.notes.search`: $0.02 per call · about 20 notes per page
- [Xiaohongshu note comments](https://okdata.online/apis/xiaohongshu/notes/comments/list/) `xiaohongshu.notes.comments.list`: $0.02 per call · about 10 comments per page
- [Douyin hot search board](https://okdata.online/apis/douyin/trends/list/) `douyin.trends.list`: $0.002 per call · about 50 board entries per page
- [Douyin video search](https://okdata.online/apis/douyin/videos/search/) `douyin.videos.search`: $0.02 per call · about 20 videos per page
- [Douyin video comments](https://okdata.online/apis/douyin/videos/comments/list/) `douyin.videos.comments.list`: $0.002 per call · about 20 comments per page
- [WeChat Official Account live search](https://okdata.online/apis/wechat/accounts/search/) `wechat.accounts.search`: $0.02 per call · about 8 accounts per page
- [Official Account article history](https://okdata.online/apis/wechat_mp/accounts/articles/list/) `wechat_mp.accounts.articles.list`: $0.02 per call · about 10 articles per page
- [Official Account article detail](https://okdata.online/apis/wechat_mp/articles/get/) `wechat_mp.articles.get`: $0.02 per call

## More about Xiaohongshu (RedNote)

- [Xiaohongshu (RedNote) API](https://okdata.online/apis/xiaohongshu/)
- [Douyin API in Python: videos, profiles and comments (2026)](https://okdata.online/guides/douyin-api-python/)
- [How to export Douyin video comments in bulk](https://okdata.online/guides/douyin-video-comments/)
- [WeChat Official Account API in Python for RAG (2026)](https://okdata.online/guides/wechat-official-account-api-python/)
- [How to get a WeChat Official Account's articles and full text](https://okdata.online/guides/wechat-official-account-articles/)
- [Xiaohongshu API in Python: notes, profiles and comments (2026)](https://okdata.online/guides/xiaohongshu-api-python/)
- [How to export Xiaohongshu comments for a keyword](https://okdata.online/guides/xiaohongshu-note-comments/)
- [How to shortlist Xiaohongshu PGY creators by rate and reads](https://okdata.online/guides/xiaohongshu-pgy-creator-rates/)
- [How to search Xiaohongshu notes and export them to CSV](https://okdata.online/guides/xiaohongshu-search-export-notes/)
- [How do I get Douyin, Xiaohongshu and WeChat data into Qwen?](https://okdata.online/answers/qwen-douyin-xiaohongshu-data/)
- [How can Doubao read Douyin and Xiaohongshu data?](https://okdata.online/answers/doubao-douyin-xiaohongshu-data/)
- [How do I connect Douyin, Xiaohongshu and WeChat data in WorkBuddy?](https://okdata.online/answers/workbuddy-douyin-xiaohongshu-wechat-data/)
- [Can Tencent Yuanbao read Douyin and Xiaohongshu data?](https://okdata.online/answers/yuanbao-douyin-xiaohongshu-data/)
- [How do I use an LLM to find customer pain points in Douyin and Xiaohongshu comments?](https://okdata.online/answers/llm-comment-pain-points-douyin-xiaohongshu/)

## Sources

Where people asked this (read 2026-11-18): 

- https://github.com/openclaw/openclaw/issues/61819
- https://docs.openclaw.ai/zh-CN/tools/skills
- https://docs.openclaw.ai/zh-CN/clawhub/quickstart
- https://docs.openclaw.ai/zh-CN/help/environment
- https://docs.openclaw.ai/zh-CN/cli/mcp
- https://docs.openclaw.ai/cli/mcp/transports

Updated 2026-11-18
