Coze · OpenAPI
Douyin and Xiaohongshu data in Coze
Coze can create a plugin from an OpenAPI file. Import a per-platform file such as https://xtikapi.com/openapi/xiaohongshu.json, choose Service auth with your key in a header, and every endpoint becomes a tool your bots and workflows can call.
Get an API keyImport as a plugin
Steps follow the Coze docs on coze.cn.
- In your workspace library, create a plugin and choose Import.
- Choose URL and enter https://xtikapi.com/openapi/xiaohongshu.json (or another platform).
- Auth: Service → Service token / API key. Location: Header. Parameter name: Authorization. Service token: Bearer, a space, then your key.
- Imported tools start disabled and must pass a debug run before you publish: run each with a real parameter, check data comes back, then enable it.
- Publish the plugin and add it to your bot or workflow.
Location: Header
Parameter name: Authorization
Service token: Bearer YOUR_API_KEYWhat people build with it
A bot that summarises the comments on a link
A bot with the Xiaohongshu comments tool. Send a note link and it reads two pages of comments before summarising.
Endpoints: Xiaohongshu comments API ($0.02)
Cost: 2 calls per request, $0.04.
Morning trending-list workflow
Workflow: Douyin trending + Weibo hot search → LLM picks what matters to your industry → morning brief.
Endpoints: Douyin trending topics API ($0.002), Weibo hot search API ($0.002)
Cost: 2 calls a day: $0.12 a month.
OpenAPI file for each platform
- Douyin34 endpoints
https://xtikapi.com/openapi/douyin.json - Xiaohongshu16 endpoints
https://xtikapi.com/openapi/xiaohongshu.json - TikTok24 endpoints
https://xtikapi.com/openapi/tiktok.json - Kuaishou9 endpoints
https://xtikapi.com/openapi/kuaishou.json - Bilibili10 endpoints
https://xtikapi.com/openapi/bilibili.json - Weibo12 endpoints
https://xtikapi.com/openapi/weibo.json - Zhihu16 endpoints
https://xtikapi.com/openapi/zhihu.json - WeChat Official Accounts7 endpoints
https://xtikapi.com/openapi/wechat_mp.json - WeChat Channels10 endpoints
https://xtikapi.com/openapi/wechat_channels.json - YouTube12 endpoints
https://xtikapi.com/openapi/youtube.json - Instagram9 endpoints
https://xtikapi.com/openapi/instagram.json - X16 endpoints
https://xtikapi.com/openapi/x.json - Reddit11 endpoints
https://xtikapi.com/openapi/reddit.json - Threads5 endpoints
https://xtikapi.com/openapi/threads.json - Xingtu14 endpoints
https://xtikapi.com/openapi/xingtu.json - Pugongying15 endpoints
https://xtikapi.com/openapi/pugongying.json - WeChat Search1 endpoint
https://xtikapi.com/openapi/wechat.json - Telegram5 endpoints
https://xtikapi.com/openapi/telegram.json - LinkedIn3 endpoints
https://xtikapi.com/openapi/linkedin.json
Questions
Why one file per platform?
229 endpoints in one plugin is too many, and bots pick wrong more often. Each file holds at most 30 endpoints, so import only the platforms you need. One file per platform: https://xtikapi.com/openapi/douyin.json, /openapi/xiaohongshu.json and so on. Platforms with more than 30 endpoints continue in -2.json.
Debugging returns 401. Why?
The service token must read "Bearer <key>" with a space after Bearer; the bare key gets a 401. Also check the key has not been deleted or hit its spend limit.
Can Coze add the MCP server directly?
We have not verified an external-MCP route in Coze yet, so this page only covers plugin import. ChatGPT, Claude, Cursor, Dify and n8n use the MCP server directly; see the MCP page.
What does it cost in Coze?
Coze bills you as usual; XTikAPI charges per call, from $0.002 depending on the endpoint. You pay only when the platform answers; errors and timeouts are free. New accounts get $0.50 of trial credit with no card.
Do I need a Douyin or Xiaohongshu account?
No. No platform login, cookie or QR scan, only an XTikAPI API key. It reads public data, so none of your own accounts can be banned for automation.
Can a runaway workflow drain my balance?
Give this tool its own key with a spend limit in the console; at the limit that key stops and your other keys keep working. The balance is prepaid, so it stops at zero and never runs into debt.
Which platforms can it read?
19 platforms and 229 endpoints: Douyin, Xiaohongshu, TikTok, Kuaishou, Bilibili, Weibo, WeChat, Zhihu, YouTube, Instagram, X, Reddit and more. Posts, comments, accounts and trends come back in one shape, so switching platforms does not break the steps after it.
Sources
The steps follow Coze's own docs: